Passed
Branch develop (cad0a8)
by Susi
01:54
created
Category
bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 // env config
13 13
 // Determine the .env file in package directory ($baseBath === __DIR__) and getcwd()
14 14
 // this prevent path errors in case of global composer installation and package requirement
15
-foreach([$basePath . DIRECTORY_SEPARATOR . '.env', getcwd() . DIRECTORY_SEPARATOR . '.env'] as $file) {
15
+foreach ([$basePath . DIRECTORY_SEPARATOR . '.env', getcwd() . DIRECTORY_SEPARATOR . '.env'] as $file) {
16 16
     if (file_exists($file)) {
17 17
         $dotenv = new Dotenv\Dotenv($basePath);
18 18
         $dotenv->load();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 $application->add(new ShowCommand());
37 37
 $application->add(new CornifyCommand());
38 38
 
39
-if(true === $phar) {
39
+if (true === $phar) {
40 40
     $application->add(new UpdateCommand());
41 41
     $application->add(new RollbackCommand());
42 42
 }
Please login to merge, or discard this patch.
Classes/Commands/BaseCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         if ($input->hasOption('config-path') && !empty($input->getOption('config-path'))) {
38 38
             $_ENV['configurationPath'] = $input->getOption('config-path');
39 39
         }
40
-        if($input->hasArgument('indexName')) {
40
+        if ($input->hasArgument('indexName')) {
41 41
             $container->setParameter('index.name', $input->getArgument('indexName'));
42 42
         } else {
43 43
             $container->setParameter('index.name', null);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
     protected function execute(InputInterface $input, OutputInterface $output)
55 55
     {
56
-        while(!(isset($_ENV['configurationPath']) && file_exists($_ENV['configurationPath']))) {
56
+        while (!(isset($_ENV['configurationPath']) && file_exists($_ENV['configurationPath']))) {
57 57
             $this->askForConfigDir($input, $output);
58 58
         }
59 59
         $_ENV['configurationPath'] = rtrim($_ENV['configurationPath'], DIRECTORY_SEPARATOR) . '/';
Please login to merge, or discard this patch.
Classes/Commands/Index/RemapCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     {
54 54
         parent::execute($input, $output);
55 55
         $force = false;
56
-        if($input->getOption('force')) {
56
+        if ($input->getOption('force')) {
57 57
             $force = true;
58 58
         }
59 59
         if ($input->hasArgument('indexName') && null !== $indexName = $input->getArgument('indexName')) {
Please login to merge, or discard this patch.
Classes/Utility/ConfigurationParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         $this->logger->debug('Found: ' . var_export($filesInFolder, true));
51 51
         foreach ($filesInFolder as $indexName) {
52 52
             $subFolder = $this->configFolder . $indexName;
53
-            if(is_dir($subFolder) === true && file_exists($subFolder . '/' . self::INDEX_CONF_FILENAME)) {
53
+            if (is_dir($subFolder) === true && file_exists($subFolder . '/' . self::INDEX_CONF_FILENAME)) {
54 54
                 $indices[strtolower($indexName)] = $this->getIndexConfiguration($indexName);
55 55
             }
56 56
         }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         foreach ($configFiles as $configFile) {
85 85
             $filePath = $directory . $configFile;
86 86
             $pathInfo = pathinfo($filePath);
87
-            if($pathInfo['extension'] === 'yaml') {
87
+            if ($pathInfo['extension'] === 'yaml') {
88 88
                 $configs[$pathInfo['filename']] = $this->getConfig($filePath);
89 89
             }
90 90
         }
Please login to merge, or discard this patch.