Skip to content

Commit 4c7327e

Browse files
committed
fixes for linter
1 parent 9225e19 commit 4c7327e

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

src/Controllers/ConnectedFieldsApiBaseController.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ abstract protected function getTemplateArgs(): array;
3333
* @param null $eg
3434
* @return void
3535
*/
36-
public function controller($eg = null, $args = null): void
36+
public function controller($args = null): void
3737
{
3838
if (empty($eg)) {
3939
$eg = static::EG;
@@ -44,7 +44,6 @@ public function controller($eg = null, $args = null): void
4444

4545
if ($this->isMethodGet()) {
4646
$this->getController(
47-
$eg,
4847
$args,
4948
basename(static::FILE)
5049
);
@@ -67,8 +66,7 @@ public function controller($eg = null, $args = null): void
6766
* @return void
6867
*/
6968
protected function getController(
70-
$eg,
71-
$args = null,
69+
$args,
7270
?string $basename
7371
): void {
7472
if ($this->isHomePage(static::EG)) {
@@ -77,7 +75,7 @@ protected function getController(
7775
'show_doc' => false,
7876
'common_texts' => $this->getCommonText()
7977
]);
80-
} else {
78+
} else {
8179
$currentAPI = ManifestService::getAPIByLink(static::EG);
8280
if ($this->routerService->dsTokenOk() && $currentAPI === $_SESSION['api_type']) {
8381
$displayOptions = [

src/Controllers/Examples/ConnectedFields/Cf001SetConnectedFields.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct()
4040
);
4141
} else {
4242
$_SESSION["apps"] = $filteredAppsJson;
43-
parent::controller(null, ['apps' => $filteredAppsJson]);
43+
parent::controller(['apps' => $filteredAppsJson]);
4444
}
4545
}
4646

@@ -105,7 +105,7 @@ private function getAppById(string $selectedAppId): array
105105
* @return array
106106
*/
107107
public function getTemplateArgs(): array
108-
{
108+
{
109109
return [
110110
'signer_email' => $this->checkInputValues($_POST['signer_email']),
111111
'signer_name' => $this->checkInputValues($_POST['signer_name']),

src/Services/Examples/ConnectedFields/SetConnectedFieldsService.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ public static function filterData(array $data): string
4949
}
5050

5151
foreach ($item['tabs'] as $tab) {
52-
if (
53-
(isset($tab['extensionData']['actionContract']) && str_contains($tab['extensionData']['actionContract'], "Verify")) ||
54-
(isset($tab['tabLabel']) && str_contains($tab['tabLabel'], "connecteddata"))
55-
) {
52+
if ((isset($tab['extensionData']['actionContract'])
53+
&& str_contains($tab['extensionData']['actionContract'], "Verify")) ||
54+
(isset($tab['tabLabel']) && str_contains($tab['tabLabel'], "connecteddata"))) {
5655
return true;
5756
}
5857
}
@@ -85,15 +84,17 @@ public static function sendEnvelope(
8584
$signerName,
8685
$signerEmail,
8786
$pdfDoc,
88-
$demoPath);
87+
$demoPath
88+
);
8989

9090
$options = new \DocuSign\eSign\Api\EnvelopesApi\CreateEnvelopeOptions();
9191
$results = $envelopesApi->createEnvelope($accountId, $envelope, $options);
9292

9393
return $results->getEnvelopeId();
9494
}
9595

96-
public static function makeEnvelopes($app, $signerName, $signerEmail, $pdfDoc, $demoPath): EnvelopeDefinition {
96+
public static function makeEnvelopes($app, $signerName, $signerEmail, $pdfDoc, $demoPath): EnvelopeDefinition
97+
{
9798
$appId = $app['appId'] ?? null;
9899
$extensionGroupId = $app['tabs'][0]['extensionData']['extensionGroupId'] ?? null;
99100
$publisherName = $app['tabs'][0]['extensionData']['publisherName'] ?? null;
@@ -194,4 +195,3 @@ public static function makeEnvelopes($app, $signerName, $signerEmail, $pdfDoc, $
194195
return $envelope;
195196
}
196197
}
197-

0 commit comments

Comments
 (0)