Skip to content

Commit 4ddaa36

Browse files
committed
FOUR-29068 Fix php-cs-fixer observations.
1 parent 8ebc17c commit 4ddaa36

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

ProcessMaker/Models/ScriptDockerNayraTrait.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
use ProcessMaker\Exception\ScriptException;
1212
use ProcessMaker\Facades\Docker;
1313
use ProcessMaker\ScriptRunners\Base;
14-
use RuntimeException;
15-
use Psr\Container\NotFoundExceptionInterface;
1614
use Psr\Container\ContainerExceptionInterface;
15+
use Psr\Container\NotFoundExceptionInterface;
16+
use RuntimeException;
1717
use UnexpectedValueException;
1818

1919
/**
2020
* Execute a docker container copying files to interchange information.
2121
*/
2222
trait ScriptDockerNayraTrait
2323
{
24-
2524
private $schema = 'http';
2625

2726
/**
@@ -72,6 +71,7 @@ public function handleNayraDocker(string $code, array $data, array $config, $tim
7271
]);
7372
throw new ScriptException($result);
7473
}
74+
7575
return $result;
7676
}
7777

@@ -108,6 +108,7 @@ private function getDockerLogs($instanceName)
108108
if ($status) {
109109
return 'Error getting logs from Nayra Docker: ' . implode("\n", $logs);
110110
}
111+
111112
return implode("\n", $logs);
112113
}
113114

@@ -225,7 +226,7 @@ private static function findNayraAddresses($docker, $instanceName, $times): bool
225226
. ($nayraDockerNetwork
226227
? "'{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"
227228
: "'{{ .NetworkSettings.IPAddress }}'"
228-
)
229+
)
229230
. " {$instanceName}_nayra 2>/dev/null",
230231
$output,
231232
$status
@@ -236,6 +237,7 @@ private static function findNayraAddresses($docker, $instanceName, $times): bool
236237
}
237238
if ($ip) {
238239
self::setNayraAddresses([$ip]);
240+
239241
return true;
240242
}
241243
}
@@ -299,6 +301,7 @@ public static function clearNayraAddresses()
299301
private static function isCacheArrayStore(): bool
300302
{
301303
$cacheDriver = Cache::getFacadeRoot()->getStore();
304+
302305
return $cacheDriver instanceof ArrayStore;
303306
}
304307

0 commit comments

Comments
 (0)