Passed
Push — feature-family-log ( 455fa6...893bac )
by Laurent
01:43
created
server/src/Core/Infrastructure/Kernel.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,24 +16,24 @@
 block discarded – undo
16 16
     protected function configureContainer(ContainerConfigurator $container): void
17 17
     {
18 18
         $container->import('../../../config/{packages}/*.yaml');
19
-        $container->import('../../../config/{packages}/' . $this->environment . '/*.yaml');
19
+        $container->import('../../../config/{packages}/'.$this->environment.'/*.yaml');
20 20
 
21
-        if (\is_file(\dirname(__DIR__, 3) . '/config/services.yaml')) {
21
+        if (\is_file(\dirname(__DIR__, 3).'/config/services.yaml')) {
22 22
             $container->import('../../../config/services.yaml');
23
-            $container->import('../../../config/{services}_' . $this->environment . '.yaml');
24
-        } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/services.php')) {
23
+            $container->import('../../../config/{services}_'.$this->environment.'.yaml');
24
+        } elseif (\is_file($path = \dirname(__DIR__, 3).'/config/services.php')) {
25 25
             (require $path)($container->withPath($path), $this);
26 26
         }
27 27
     }
28 28
 
29 29
     protected function configureRoutes(RoutingConfigurator $routes): void
30 30
     {
31
-        $routes->import('../../../config/{routes}/' . $this->environment . '/*.yaml');
31
+        $routes->import('../../../config/{routes}/'.$this->environment.'/*.yaml');
32 32
         $routes->import('../../../config/{routes}/*.yaml');
33 33
 
34
-        if (\is_file(\dirname(__DIR__, 3) . '/config/routes.yaml')) {
34
+        if (\is_file(\dirname(__DIR__, 3).'/config/routes.yaml')) {
35 35
             $routes->import('../../../config/routes.yaml');
36
-        } elseif (\is_file($path = \dirname(__DIR__, 3) . '/config/routes.php')) {
36
+        } elseif (\is_file($path = \dirname(__DIR__, 3).'/config/routes.php')) {
37 37
             (require $path)($routes->withPath($path), $this);
38 38
         }
39 39
     }
Please login to merge, or discard this patch.
server/src/Core/Domain/Common/Model/Dependent/Taxes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     public static function fromPercent(string $name): self
44 44
     {
45 45
         \preg_match('/^(\d*)(,(\d*?)) %$/u', \trim($name), $str);
46
-        $float = $str[1] . '.' . $str[3];
46
+        $float = $str[1].'.'.$str[3];
47 47
 
48 48
         return new self((float) $float);
49 49
     }
Please login to merge, or discard this patch.
server/src/Core/Domain/Common/Model/VO/ContactAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     public function getValue(): string
53 53
     {
54
-        return $this->address . "\n" . $this->zipCode . ' ' . $this->town . ', ' . $this->country;
54
+        return $this->address."\n".$this->zipCode.' '.$this->town.', '.$this->country;
55 55
     }
56 56
 
57 57
     public function address(): string
Please login to merge, or discard this patch.
src/Administration/Infrastructure/Settings/Form/Type/SettingsType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
             ->add('currency', ChoiceType::class, [
32 32
                 'constraints' => new NotNull(),
33 33
                 'choices' => Currency::CURRENCY,
34
-                'choice_label' => function ($choice, $key, $value) {
34
+                'choice_label' => function($choice, $key, $value) {
35 35
                     return \ucfirst($value);
36 36
                 },
37 37
             ])
38 38
             ->add('locale', ChoiceType::class, [
39 39
                 'constraints' => new NotNull(),
40 40
                 'choices' => Locale::LOCALE,
41
-                'choice_label' => function ($choice, $key, $value) {
41
+                'choice_label' => function($choice, $key, $value) {
42 42
                     return \strtoupper($value);
43 43
                 },
44 44
             ])
Please login to merge, or discard this patch.
server/src/Inventory/Infrastructure/Controller/PrepareController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     public function __invoke(): BinaryFileResponse
26 26
     {
27 27
         $projectDir = $this->getParameter('kernel.project_dir');
28
-        $dataInventoryFolder = $projectDir . '/data/Inventory';
29
-        $prepareFile = new \SplFileInfo($dataInventoryFolder . '/prepare.pdf');
28
+        $dataInventoryFolder = $projectDir.'/data/Inventory';
29
+        $prepareFile = new \SplFileInfo($dataInventoryFolder.'/prepare.pdf');
30 30
 
31 31
         return new BinaryFileResponse($prepareFile);
32 32
     }
Please login to merge, or discard this patch.
Administration/Infrastructure/Finders/Doctrine/DoctrineCompanyFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
         $result = $this->connection->executeQuery($query)->fetchAllAssociative();
95 95
 
96 96
         return new Companies(
97
-            ...\array_map(static function (array $company) {
97
+            ...\array_map(static function(array $company) {
98 98
                 return new CompanyModel(
99 99
                     $company['uuid'],
100 100
                     $company['name'],
Please login to merge, or discard this patch.
src/Administration/Infrastructure/Finders/Doctrine/DoctrineUserFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
         $result = $this->connection->executeQuery($query)->fetchAllAssociative();
105 105
 
106 106
         return new Users(
107
-            ...\array_map(static function (array $user) {
107
+            ...\array_map(static function(array $user) {
108 108
                 return new UserReadModel(
109 109
                     $user['uuid'],
110 110
                     $user['username'],
Please login to merge, or discard this patch.
src/Administration/Infrastructure/FamilyLog/Mapper/FamilyLogModelMapper.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,21 +25,21 @@  discard block
 block discarded – undo
25 25
     {
26 26
         foreach ($familyLogs as $key => $familyLog) {
27 27
             if ('1' === $familyLog['level']) {
28
-                ${'parent' . $key} = FamilyLog::create(
28
+                ${'parent'.$key} = FamilyLog::create(
29 29
                     FamilyLogUuid::fromString($familyLog['uuid']),
30 30
                     NameField::fromString($familyLog['label']),
31 31
                     (int) $familyLog['level']
32 32
                 );
33
-                $parent = ${'parent' . $key};
33
+                $parent = ${'parent'.$key};
34 34
             } else {
35
-                ${'parent' . $key} = FamilyLog::create(
35
+                ${'parent'.$key} = FamilyLog::create(
36 36
                     FamilyLogUuid::fromString($familyLog['uuid']),
37 37
                     NameField::fromString($familyLog['label']),
38 38
                     (int) $familyLog['level'],
39
-                    ${'parent' . ($key - 1)}
39
+                    ${'parent'.($key - 1)}
40 40
                 );
41
-                unset(${'parent' . ($key - 1)});
42
-                $parent = ${'parent' . $key};
41
+                unset(${'parent'.($key - 1)});
42
+                $parent = ${'parent'.$key};
43 43
             }
44 44
         }
45 45
 
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
             );
60 60
         }
61 61
 
62
-        \usort($data, static function ($a, $b) {
62
+        \usort($data, static function($a, $b) {
63 63
             return \strcmp($a['level'], $b['level']);
64 64
         });
65 65
 
66 66
         foreach ($data as $datum) {
67
-            \array_map(static function (FamilyLog $familyLog) use ($datum, $familyLogs): void {
67
+            \array_map(static function(FamilyLog $familyLog) use ($datum, $familyLogs): void {
68 68
                 if (null !== $datum['parent_id'] && ($datum['uuid'] === $familyLog->uuid())) {
69 69
                     $familyLog->attributeParent($familyLogs[$datum['parent_id']]);
70 70
                 }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         }
73 73
 
74 74
         return new FamilyLogs(
75
-            ...\array_map(function (FamilyLog $familyLog) {
75
+            ...\array_map(function(FamilyLog $familyLog) {
76 76
                 return $this->createReadModelFromDomain($familyLog);
77 77
             }, \array_values($familyLogs))
78 78
         );
Please login to merge, or discard this patch.
Administration/Infrastructure/Finders/Doctrine/DoctrineSupplierFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
         $results = $this->connection->executeQuery($query)->fetchAllAssociative();
119 119
 
120 120
         return new Suppliers(
121
-            ...\array_map(static function (array $supplier) {
121
+            ...\array_map(static function(array $supplier) {
122 122
                 $familyLog = FamilyLog::create(
123 123
                     FamilyLogUuid::fromString($supplier['familyLogId']),
124 124
                     NameField::fromString($supplier['label']),
Please login to merge, or discard this patch.