@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Shopware\Psh\Application; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | namespace Shopware\Psh\Application; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | { |
| 211 | 211 | $countConfigFiles = count($configFiles); |
| 212 | 212 | for ($i = 0; $i < $countConfigFiles; $i++) { |
| 213 | - $configFiles[$i] = str_replace($this->rootDirectory."/", "", $configFiles[$i]); |
|
| 213 | + $configFiles[$i] = str_replace($this->rootDirectory . "/", "", $configFiles[$i]); |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | if (count($configFiles) == 1) { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | |
| 247 | 247 | $scripts = $scriptFinder->getAllScripts(); |
| 248 | 248 | |
| 249 | - $commands = array_map(function (Script $script) { |
|
| 249 | + $commands = array_map(function(Script $script) { |
|
| 250 | 250 | return $script->getName(); |
| 251 | 251 | }, $scripts); |
| 252 | 252 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | |
| 4 | 4 | namespace Shopware\Psh\Listing; |
@@ -1,4 +1,4 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Shopware\Psh\ScriptRuntime; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Shopware\Psh\ScriptRuntime; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Shopware\Psh\Config; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Shopware\Psh\Config; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare(strict_types=1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Shopware\Psh\Config; |
| 4 | 4 | |