Skip to content

Commit d5aeb00

Browse files
committed
fixes for linter
1 parent 6790903 commit d5aeb00

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/Controllers/NotaryApiBaseController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ abstract protected function getTemplateArgs(): array;
3333
* @param null $eg
3434
* @return void
3535
*/
36-
public function controller($eg = null): void {
36+
public function controller($eg = null): void
37+
{
3738
if (empty($eg)) {
3839
$eg = static::EG;
3940
$this->codeExampleText = $this->getPageText(static::EG);
@@ -67,7 +68,6 @@ protected function getController(
6768
?string $basename
6869
): void {
6970
if ($this->isHomePage($eg)) {
70-
7171
$GLOBALS['twig']->display(
7272
$eg . '.html',
7373
[
@@ -81,7 +81,6 @@ protected function getController(
8181
} else {
8282
$currentAPI = ManifestService::getAPIByLink(static::EG);
8383
if ($this->routerService->dsTokenOk() && $currentAPI === $_SESSION['api_type']) {
84-
8584
$displayOptions = [
8685
'title' => $this->routerService->getTitle($eg),
8786
'source_file' => $basename,

src/Services/Examples/Notary/SendWithThirdPartyNotaryService.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@
1515

1616
class SendWithThirdPartyNotaryService
1717
{
18-
public static function sendWithNotary($signerEmail, $signerName, $envelopesApi, $accountId, $demoPath): mixed {
18+
public static function sendWithNotary($signerEmail, $signerName, $envelopesApi, $accountId, $demoPath): mixed
19+
{
1920
$env = SendWithThirdPartyNotaryService::makeEnvelope($signerEmail, $signerName, $demoPath);
2021

2122
$results = $envelopesApi->createEnvelope($accountId, $env);
2223
return $results;
2324
}
2425

25-
static function makeEnvelope($signerEmail, $signerName, $demoPath): EnvelopeDefinition {
26+
private static function makeEnvelope($signerEmail, $signerName, $demoPath): EnvelopeDefinition
27+
{
2628
$env = new EnvelopeDefinition();
2729
$env->setEmailSubject("Please sign this document set");
2830

@@ -38,7 +40,8 @@ static function makeEnvelope($signerEmail, $signerName, $demoPath): EnvelopeDefi
3840
return $env;
3941
}
4042

41-
static function getDocuments($signerEmail, $signerName,$demoPath): array {
43+
private static function getDocuments($signerEmail, $signerName, $demoPath): array
44+
{
4245
$doc = new Document();
4346
$b64 = base64_encode(SendWithThirdPartyNotaryService::getDocumentExample($signerEmail, $signerName, $demoPath));
4447

@@ -50,7 +53,8 @@ static function getDocuments($signerEmail, $signerName,$demoPath): array {
5053
return [$doc];
5154
}
5255

53-
static function getDocumentExample($signerEmail, $signerName, $demoPath): string {
56+
private static function getDocumentExample($signerEmail, $signerName, $demoPath): string
57+
{
5458
$htmlMarkupFileName = "order_form.html";
5559
$htmlMarkup = file_get_contents($demoPath . $htmlMarkupFileName);
5660
$htmlWithData = str_replace(
@@ -67,7 +71,8 @@ static function getDocumentExample($signerEmail, $signerName, $demoPath): string
6771
return $htmlWithData;
6872
}
6973

70-
static function getSigners($signerEmail, $signerName) {
74+
private static function getSigners($signerEmail, $signerName)
75+
{
7176
$signer = new Signer();
7277
$signer->setClientUserId("1000");
7378
$signer->setEmail($signerEmail);
@@ -96,7 +101,8 @@ static function getSigners($signerEmail, $signerName) {
96101
return [$signer];
97102
}
98103

99-
static function getNotaryRecipients(): array {
104+
private static function getNotaryRecipients(): array
105+
{
100106
$notarySeal = new NotarySeal();
101107
$notarySeal->setXPosition("300");
102108
$notarySeal->setYPosition("235");

0 commit comments

Comments
 (0)