Completed
Pull Request — master (#59)
by Jan Philipp
01:34
created
src/ScriptRuntime/SimpleValueProvider.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/ProcessEnvironment.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/TemplateCommand.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/ProcessCommand.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/Config/ScriptPath.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/Listing/ScriptFinder.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\Listing;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $scripts = $this->getAllScripts();
80 80
 
81
-        return array_filter($scripts, function ($key) use ($query) {
81
+        return array_filter($scripts, function($key) use ($query) {
82 82
             return strpos($key, $query) > -1 || levenshtein($key, $query) < 3;
83 83
         }, ARRAY_FILTER_USE_KEY);
84 84
     }
Please login to merge, or discard this patch.
src/Config/ConfigMerger.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/Application/InvalidParameterException.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/Application/Application.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
     }
199 199
 
200 200
     /**
201
-     * @param $string
201
+     * @param string $string
202 202
      */
203 203
     public function notifySuccess($string)
204 204
     {
Please login to merge, or discard this 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\Application;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     protected function printConfigFiles(array $configFiles)
215 215
     {
216 216
         for ($i = 0; $i < count($configFiles); $i++) {
217
-            $configFiles[$i] = str_replace($this->rootDirectory."/", "", $configFiles[$i]);
217
+            $configFiles[$i] = str_replace($this->rootDirectory . "/", "", $configFiles[$i]);
218 218
         }
219 219
 
220 220
         if (count($configFiles) == 1) {
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
         $scripts = $scriptFinder->getAllScripts();
252 252
 
253
-        $commands = array_map(function (Script $script) {
253
+        $commands = array_map(function(Script $script) {
254 254
             return $script->getName();
255 255
         }, $scripts);
256 256
 
Please login to merge, or discard this patch.