Completed
Pull Request — master (#25)
by Benjamin
06:21
created
src/Config/Config.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @return array
39
+     * @return string[]
40 40
      */
41 41
     public function getAllScriptPaths(): array
42 42
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\Config;
Please login to merge, or discard this patch.
src/Config/ConfigLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\Config;
Please login to merge, or discard this patch.
src/Config/YamlConfigFileLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\Config;
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         );
109 109
 
110 110
         $this->configBuilder->setTemplates(
111
-            array_map(function ($template) use ($file) {
111
+            array_map(function($template) use ($file) {
112 112
                 $template['source'] = $this->fixPath($template['source'], $file);
113 113
                 $template['destination'] = $this->fixPath($template['destination'], $file);
114 114
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $paths = $this->extractData(self::KEY_COMMAND_PATHS, $rawConfigData, []);
161 161
 
162
-        return array_map(function ($path) use ($file) {
162
+        return array_map(function($path) use ($file) {
163 163
             return $this->fixPath($path, $file);
164 164
         }, $paths);
165 165
     }
Please login to merge, or discard this patch.
src/ScriptRuntime/ValueProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\ScriptRuntime;
Please login to merge, or discard this patch.
src/ScriptRuntime/ProcessExecutor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\ScriptRuntime;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     protected function runProcess(Process $process)
107 107
     {
108
-        $process->run(function ($type, $response) {
108
+        $process->run(function($type, $response) {
109 109
             if (Process::ERR === $type) {
110 110
                 $this->logger->err($response);
111 111
             } else {
Please login to merge, or discard this patch.
src/Application/ClimateLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Shopware\Psh\Application;
4 4
 
Please login to merge, or discard this patch.
src/Listing/ScriptNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\Listing;
Please login to merge, or discard this patch.
src/Config/ConfigBuilder.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @param array $dynamicVariables
64
+     * @param string|null $dynamicVariables
65 65
      * @return ConfigBuilder
66 66
      */
67 67
     public function setDynamicVariables(array $dynamicVariables): ConfigBuilder
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-     * @param array $constants
74
+     * @param string|null $constants
75 75
      * @return ConfigBuilder
76 76
      */
77 77
     public function setConstants(array $constants): ConfigBuilder
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\Config;
Please login to merge, or discard this patch.
src/Listing/ScriptPathNotValidException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 
4 4
 namespace Shopware\Psh\Listing;
Please login to merge, or discard this patch.