Completed
Pull Request — master (#106)
by Jan Philipp
05:13 queued 03:24
created
src/Application/ApplicationFactory.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/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/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/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.
src/ScriptRuntime/BashCommand.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\ScriptRuntime;
4 4
 
Please login to merge, or discard this patch.
src/ScriptRuntime/SynchronusProcessCommand.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\ScriptRuntime;
4 4
 
Please login to merge, or discard this patch.
src/ScriptRuntime/DeferredProcessCommand.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\ScriptRuntime;
4 4
 
Please login to merge, or discard this patch.
src/ScriptRuntime/ScriptLoader/ScriptNotSupportedByParser.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\ScriptRuntime\ScriptLoader;
4 4
 
Please login to merge, or discard this patch.
src/ScriptRuntime/ScriptLoader/PshScriptParser.php 1 patch
Spacing   +10 added lines, -10 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\ScriptLoader;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     private function createTokenHandler(ScriptLoader $loader): array
79 79
     {
80 80
         return [
81
-            self::TOKEN_ACTION => function (string $currentLine) use ($loader): string {
81
+            self::TOKEN_ACTION => function(string $currentLine) use ($loader): string {
82 82
                 $scriptName = $this->removeFromStart(self::TOKEN_ACTION, $currentLine);
83 83
                 $actionScript = $this->scriptFinder->findScriptByName($scriptName);
84 84
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                 return '';
89 89
             },
90 90
 
91
-            self::TOKEN_INCLUDE => function (string $currentLine, int $lineNumber, Script $script) use ($loader): string {
91
+            self::TOKEN_INCLUDE => function(string $currentLine, int $lineNumber, Script $script) use ($loader): string {
92 92
                 $path = $this->findInclude($script, $this->removeFromStart(self::TOKEN_INCLUDE, $currentLine));
93 93
                 $includeScript = new Script(pathinfo($path, PATHINFO_DIRNAME), pathinfo($path, PATHINFO_BASENAME));
94 94
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 return '';
99 99
             },
100 100
 
101
-            self::TOKEN_TEMPLATE => function (string $currentLine, int $lineNumber, Script $script): string {
101
+            self::TOKEN_TEMPLATE => function(string $currentLine, int $lineNumber, Script $script): string {
102 102
                 $definition = $this->removeFromStart(self::TOKEN_TEMPLATE, $currentLine);
103 103
                 list($rawSource, $rawDestination) = explode(':', $definition);
104 104
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 return '';
112 112
             },
113 113
 
114
-            self::TOKEN_WAIT => function (string $currentLine, int $lineNumber): string {
114
+            self::TOKEN_WAIT => function(string $currentLine, int $lineNumber): string {
115 115
                 $this->commandBuilder
116 116
                     ->addWaitCommand($lineNumber);
117 117
 
@@ -119,25 +119,25 @@  discard block
 block discarded – undo
119 119
                 return '';
120 120
             },
121 121
 
122
-            self::TOKEN_MODIFIER_IGNORE_ERROR => function (string $currentLine): string {
122
+            self::TOKEN_MODIFIER_IGNORE_ERROR => function(string $currentLine): string {
123 123
                 $this->commandBuilder->setIgnoreError();
124 124
 
125 125
                 return $this->removeFromStart(self::TOKEN_MODIFIER_IGNORE_ERROR, $currentLine);
126 126
             },
127 127
 
128
-            self::TOKEN_MODIFIER_TTY => function (string $currentLine): string {
128
+            self::TOKEN_MODIFIER_TTY => function(string $currentLine): string {
129 129
                 $this->commandBuilder->setTty();
130 130
 
131 131
                 return  $this->removeFromStart(self::TOKEN_MODIFIER_TTY, $currentLine);
132 132
             },
133 133
 
134
-            self::TOKEN_MODIFIER_DEFERRED => function (string $currentLine): string {
134
+            self::TOKEN_MODIFIER_DEFERRED => function(string $currentLine): string {
135 135
                 $this->commandBuilder->setDeferredExecution();
136 136
 
137 137
                 return $this->removeFromStart(self::TOKEN_MODIFIER_DEFERRED, $currentLine);
138 138
             },
139 139
 
140
-            self::TOKEN_WILDCARD => function (string $currentLine, int $lineNumber): string {
140
+            self::TOKEN_WILDCARD => function(string $currentLine, int $lineNumber): string {
141 141
                 $this->commandBuilder
142 142
                     ->addProcessCommand($currentLine, $lineNumber);
143 143
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
             if ($this->startsWith(self::CONCATENATE_PREFIX, $line)) {
223 223
                 $lastValue = array_pop($lines);
224
-                $lines[] = $lastValue  . ' ' . trim($line);
224
+                $lines[] = $lastValue . ' ' . trim($line);
225 225
 
226 226
                 continue;
227 227
             }
Please login to merge, or discard this patch.