Completed
Push — master ( 31b5db...524ecf )
by Michael
03:26
created
lib/Event/EveApiEventInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains EveApiEventInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Event/LogEventInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * LogEventInterface.php
5 5
  *
Please login to merge, or discard this patch.
lib/Event/EveApiPreserverInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains EveApiPreserverInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Network/GuzzleNetworkRetriever.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains GuzzleNetworkRetriever class.
5 5
  *
Please login to merge, or discard this patch.
lib/Console/Command/ConfigFileTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains trait ConfigFileTrait.
5 5
  *
Please login to merge, or discard this patch.
lib/Console/Command/NetworkCache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains NetworkCache class.
5 5
  *
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
         $data->setEveApiName($apiName)
137 137
             ->setEveApiSectionName($sectionName)
138 138
             ->setEveApiArguments($posts);
139
-        $mess = 'Starting ' . $this->getName() . ' of';
139
+        $mess = 'Starting '.$this->getName().' of';
140 140
         $mess = $this->createEveApiMessage($mess, $data);
141 141
         $this->getYem()
142 142
             ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
143 143
         if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
144
-            $output->writeln('<info>' . $mess . '</info>');
144
+            $output->writeln('<info>'.$mess.'</info>');
145 145
         }
146 146
         foreach (['retrieve', 'preserve'] as $eventName) {
147 147
             $this->emitEvents($data, $eventName, 'Yapeal.EveApi.Raw');
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             $this->getYem()
153 153
                 ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
154 154
             if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
155
-                $output->writeln('<error>' . $mess . '</error>');
155
+                $output->writeln('<error>'.$mess.'</error>');
156 156
             }
157 157
             return 2;
158 158
         }
Please login to merge, or discard this patch.
lib/Console/Command/VerbosityToStrategyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains trait VerbosityToStrategyTrait.
5 5
  *
Please login to merge, or discard this patch.
lib/Console/Command/DatabaseInitializer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains DatabaseInitializer class.
5 5
  *
@@ -150,9 +150,9 @@  discard block
 block discarded – undo
150 150
             if ('Database' === $dir && $this->dropDatabase) {
151 151
                 // Add drop database file if requested.
152 152
                 $fileList[] = $this->getFpn()
153
-                    ->normalizeFile($path . $dir . '/DropDatabase.sql');
153
+                    ->normalizeFile($path.$dir.'/DropDatabase.sql');
154 154
             }
155
-            foreach (new \DirectoryIterator($path . $dir . '/') as $fileInfo) {
155
+            foreach (new \DirectoryIterator($path.$dir.'/') as $fileInfo) {
156 156
                 // Add file path if it's a sql create file.
157 157
                 if ($fileInfo->isFile()
158 158
                     && 'sql' === $fileInfo->getExtension()
Please login to merge, or discard this patch.
lib/Console/Command/AbstractDatabaseCommon.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * Contains AbstractDatabaseCommon class.
5 5
  *
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
          */
121 121
         $statements = str_replace(array_keys($replacements), array_values($replacements), explode(';', $sqlStatements));
122 122
         // 5 is a 'magic' number that I think is shorter than any legal SQL statement.
123
-        $statements = array_filter($statements, function ($value) {
123
+        $statements = array_filter($statements, function($value) {
124 124
             return 5 <= strlen(trim($value));
125 125
         });
126 126
         $progress = null;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
                     $progress->finish();
149 149
                     $output->writeln('');
150 150
                 }
151
-                $mess = $sql . PHP_EOL;
151
+                $mess = $sql.PHP_EOL;
152 152
                 $mess .= sprintf(
153 153
                     'Sql failed in %1$s on statement %2$s with (%3$s) %4$s',
154 154
                     $fileName,
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         $base = 'Yapeal.Sql.';
184 184
         foreach (['class', 'database', 'hostName', 'password', 'platform', 'tablePrefix', 'userName'] as $option) {
185 185
             if (!empty($options[$option])) {
186
-                $dic[$base . $option] = $options[$option];
186
+                $dic[$base.$option] = $options[$option];
187 187
             }
188 188
         }
189 189
         return $this;
Please login to merge, or discard this patch.