Skip to content

Commit ddb8ae7

Browse files
committed
Ran php-cs-fixer
1 parent 9fdd99a commit ddb8ae7

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

src/Adapter/Docker/Factory.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,7 @@ public function __invoke(array $configuration): Configurator\SatelliteBuilderInt
3535
if (isset($configuration['docker']['copy'])) {
3636
foreach ($configuration['docker']['copy'] as $copy) {
3737
if (!file_exists($copy['from'])) {
38-
throw new FileOrDirectoryNotFoundException(
39-
strtr(
40-
'Unable to find the file or the directory at path %path%',
41-
[
42-
'path' => $copy['from']
43-
]
44-
)
45-
);
38+
throw new FileOrDirectoryNotFoundException(strtr('Unable to find the file or the directory at path %path%', ['path' => $copy['from']]));
4639
}
4740

4841
if (is_file($copy['from'])) {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Kiboko\Component\Satellite\Adapter\Docker;
46

5-
class FileOrDirectoryNotFoundException extends \RuntimeException
6-
{
7-
}
7+
class FileOrDirectoryNotFoundException extends \RuntimeException {}

src/Adapter/Docker/Satellite.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,15 @@ private function sortFiles(): void
9292
uksort($this->files, function ($a, $b) {
9393
if (is_numeric($a) && is_numeric($b)) {
9494
return $a - $b;
95-
} elseif (is_numeric($a)) {
95+
}
96+
if (is_numeric($a)) {
9697
return -1;
97-
} elseif (is_numeric($b)) {
98+
}
99+
if (is_numeric($b)) {
98100
return 1;
99-
} else {
100-
return strcmp($a, $b);
101101
}
102+
103+
return strcmp($a, $b);
102104
});
103105
}
104106
}

0 commit comments

Comments
 (0)