@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains EveApiEventInterface Interface. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * LogEventInterface.php |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains EveApiPreserverInterface Interface. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains GuzzleNetworkRetriever class. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains trait ConfigFileTrait. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Contains trait VerbosityToStrategyTrait. |
| 5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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() |
@@ -1,5 +1,5 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; |