Completed
Push — master ( eaf5ea...97c539 )
by Michael
05:35
created
lib/Configuration/SqlWiring.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     public function wire(ContainerInterface $dic)
55 55
     {
56 56
         if (empty($dic['Yapeal.Sql.CommonQueries'])) {
57
-            $dic['Yapeal.Sql.CommonQueries'] = function ($dic) {
57
+            $dic['Yapeal.Sql.CommonQueries'] = function($dic) {
58 58
                 /**
59 59
                  * @var CommonSqlQueries $csq
60 60
                  */
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         if (empty($dic['Yapeal.Sql.Connection'])) {
79 79
             $replacements = $this->getSqlSubs($dic);
80
-            $dic['Yapeal.Sql.Connection'] = function () use ($dic, $replacements) {
80
+            $dic['Yapeal.Sql.Connection'] = function() use ($dic, $replacements) {
81 81
                 $dsn = $replacements['{dsn}'];
82 82
                 $dsn = str_replace(array_keys($replacements), array_values($replacements), $dsn);
83 83
                 /**
@@ -103,15 +103,15 @@  discard block
 block discarded – undo
103 103
     private function wireCreator(ContainerInterface $dic)
104 104
     {
105 105
         if (empty($dic['Yapeal.Sql.Creator'])) {
106
-            $dic['Yapeal.Sql.Creator'] = function () use ($dic) {
106
+            $dic['Yapeal.Sql.Creator'] = function() use ($dic) {
107 107
                 $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Sql.dir']);
108 108
                 $twig = new \Twig_Environment($loader,
109 109
                     ['debug' => true, 'strict_variables' => true, 'autoescape' => false]);
110
-                $filter = new \Twig_SimpleFilter('ucFirst', function ($value) {
110
+                $filter = new \Twig_SimpleFilter('ucFirst', function($value) {
111 111
                     return ucfirst($value);
112 112
                 });
113 113
                 $twig->addFilter($filter);
114
-                $filter = new \Twig_SimpleFilter('lcFirst', function ($value) {
114
+                $filter = new \Twig_SimpleFilter('lcFirst', function($value) {
115 115
                     return lcfirst($value);
116 116
                 });
117 117
                 $twig->addFilter($filter);
Please login to merge, or discard this patch.
lib/Configuration/EventWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,17 +49,17 @@
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.Event.EveApiEvent'])) {
52
-            $dic['Yapeal.Event.EveApi'] = $dic->factory(function ($dic) {
52
+            $dic['Yapeal.Event.EveApi'] = $dic->factory(function($dic) {
53 53
                 return new $dic['Yapeal.Event.Factories.eveApi']();
54 54
             });
55 55
         }
56 56
         if (empty($dic['Yapeal.Event.LogEvent'])) {
57
-            $dic['Yapeal.Event.LogEvent'] = $dic->factory(function ($dic) {
57
+            $dic['Yapeal.Event.LogEvent'] = $dic->factory(function($dic) {
58 58
                 return new $dic['Yapeal.Event.Factories.log'];
59 59
             });
60 60
         }
61 61
         if (empty($dic['Yapeal.Event.Mediator'])) {
62
-            $dic['Yapeal.Event.Mediator'] = function ($dic) {
62
+            $dic['Yapeal.Event.Mediator'] = function($dic) {
63 63
                 return new $dic['Yapeal.Event.Handlers.mediator']($dic);
64 64
             };
65 65
         }
Please login to merge, or discard this patch.
lib/EveApi/Char/IndustryJobs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
         $data = $event->getData();
78 78
         $apiName = $data->getEveApiName();
79
-        $data->setEveApiName($apiName . 'History');
79
+        $data->setEveApiName($apiName.'History');
80 80
         // Insure history has already been updated first so current data overwrites old data.
81 81
         $this->emitEvents($data, 'start');
82 82
         $data->setEveApiName($apiName)
Please login to merge, or discard this patch.
lib/Cli/Schema/SchemaTimestamp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     public function execute(InputInterface $input, OutputInterface $output): int
74 74
     {
75 75
         list($mSec, $sec) = explode(' ', microtime());
76
-        $output->writeln(gmdate('YmdHis', (int)$sec) . substr($mSec, 1, 4));
76
+        $output->writeln(gmdate('YmdHis', (int)$sec).substr($mSec, 1, 4));
77 77
         return 0;
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
lib/Cli/Network/NetworkCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             ->setEveApiArguments($posts);
137 137
         if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
138 138
             $mess = sprintf('<info>Starting %1$s of', $this->getName());
139
-            $mess = $this->createEveApiMessage($mess, $data) . '</info>';
139
+            $mess = $this->createEveApiMessage($mess, $data).'</info>';
140 140
             $this->getYem()
141 141
                 ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, strip_tags($mess));
142 142
             $output->writeln($mess);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         if (false === $data->getEveApiXml()) {
148 148
             if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
149 149
                 $mess = '<error>Could NOT retrieve Eve Api data of';
150
-                $mess = $this->createEveApiMessage($mess, $data) . '</error>';
150
+                $mess = $this->createEveApiMessage($mess, $data).'</error>';
151 151
                 $this->getYem()
152 152
                     ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, strip_tags($mess));
153 153
                 $output->writeln($mess);
Please login to merge, or discard this patch.
lib/EveApi/Corp/IndustryJobs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         }
77 77
         $data = $event->getData();
78 78
         $apiName = $data->getEveApiName();
79
-        $data->setEveApiName($apiName . 'History');
79
+        $data->setEveApiName($apiName.'History');
80 80
         // Insure history has already been updated first so current data overwrites old data.
81 81
         $this->emitEvents($data, 'start');
82 82
         $data->setEveApiName($apiName)
Please login to merge, or discard this patch.
lib/FileSystem/SafeFileHandlingTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
         if (false === $handle) {
96 96
             return false;
97 97
         }
98
-        $tmpFile = sprintf('%1$s/%2$s.tmp', $path, hash('sha1', $baseFile . random_bytes(8)));
98
+        $tmpFile = sprintf('%1$s/%2$s.tmp', $path, hash('sha1', $baseFile.random_bytes(8)));
99 99
         if (false === $this->safeDataWrite($tmpFile, $data)) {
100 100
             $this->releaseHandle($handle);
101 101
             return false;
Please login to merge, or discard this patch.
lib/Cli/Schema/SchemaCreator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         // First one found wins.
199 199
         foreach ([$platformExt, '.sql'] as $ext) {
200 200
             foreach ($customFiles as $keyName) {
201
-                $contents = $this->safeFileRead($keyName . $ext);
201
+                $contents = $this->safeFileRead($keyName.$ext);
202 202
                 if (false !== $contents) {
203 203
                     $fileList['Custom'][$keyName] = $contents;
204 204
                     break 2;
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
         $fpn = $this->getFpn();
250 250
         $sections = ['Schema', 'Util', 'Account', 'Api', 'Char', 'Corp', 'Eve', 'Map', 'Server'];
251 251
         foreach ($sections as $section) {
252
-            foreach (new \DirectoryIterator($path . $section . '/') as $fileInfo) {
252
+            foreach (new \DirectoryIterator($path.$section.'/') as $fileInfo) {
253 253
                 // Add file path if it's a sql create file for the correct platform.
254 254
                 if ($fileInfo->isFile() && 0 === strpos($fileInfo->getBasename(), 'Create')) {
255 255
                     $baseName = $fileInfo->getBasename();
@@ -257,14 +257,14 @@  discard block
 block discarded – undo
257 257
                     $isSql = $firstDot === strpos($baseName, '.sql');
258 258
                     $isPlatform = $firstDot === strpos($baseName, $platformExt);
259 259
                     $baseName = substr($baseName, 0, $firstDot);
260
-                    $keyName = $fpn->normalizePath($fileInfo->getPath()) . $baseName;
260
+                    $keyName = $fpn->normalizePath($fileInfo->getPath()).$baseName;
261 261
                     $notSet = !array_key_exists($section, $fileList)
262 262
                         || !array_key_exists($keyName, $fileList[$section])
263 263
                         || false === $fileList[$section][$keyName];
264 264
                     if ($isPlatform) {
265
-                        $fileList[$section][$keyName] = $this->safeFileRead($keyName . $platformExt);
265
+                        $fileList[$section][$keyName] = $this->safeFileRead($keyName.$platformExt);
266 266
                     } elseif ($isSql && $notSet) {
267
-                        $fileList[$section][$keyName] = $this->safeFileRead($keyName . '.sql');
267
+                        $fileList[$section][$keyName] = $this->safeFileRead($keyName.'.sql');
268 268
                     }
269 269
                 }
270 270
             }
@@ -287,9 +287,9 @@  discard block
 block discarded – undo
287 287
             return $fileList;
288 288
         }
289 289
         // Add drop database file if requested and exists.
290
-        $keyName = $path . 'Schema/DropSchema';
290
+        $keyName = $path.'Schema/DropSchema';
291 291
         foreach ([$platformExt, '.sql'] as $ext) {
292
-            $contents = $this->safeFileRead($keyName . $ext);
292
+            $contents = $this->safeFileRead($keyName.$ext);
293 293
             if (false !== $contents) {
294 294
                 if (array_key_exists('Schema', $fileList)) {
295 295
                     $schema = array_reverse($fileList['Schema'], true);
Please login to merge, or discard this patch.
lib/Cli/Schema/SchemaUpdater.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         }
114 114
         $this->addDatabaseProcedure($output);
115 115
         foreach ($updateFileList as $keyName => $sqlStatements) {
116
-            $updateVersion = basename($keyName) . '.000';
116
+            $updateVersion = basename($keyName).'.000';
117 117
             if (false === $sqlStatements) {
118 118
                 $mess = sprintf('<error>Could NOT get contents of SQL file %1$s</error>', $keyName);
119 119
                 $yem->triggerLogEvent('Yapeal.Log.log', Logger::INFO, strip_tags($mess));
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     private function getUpdateFileList(string $latestVersion, OutputInterface $output): array
209 209
     {
210
-        $path = $this->getDic()['Yapeal.Sql.dir'] . 'updates/';
210
+        $path = $this->getDic()['Yapeal.Sql.dir'].'updates/';
211 211
         if (!is_readable($path) || !is_dir($path)) {
212 212
             if ($output::VERBOSITY_QUIET !== $output->getVerbosity()) {
213 213
                 $mess = sprintf('<comment>Could NOT access update directory %1$s</comment>', $path);
@@ -226,15 +226,15 @@  discard block
 block discarded – undo
226 226
                 $isSql = $firstDot === strpos($baseName, '.sql');
227 227
                 $isPlatform = $firstDot === strpos($baseName, $platformExt);
228 228
                 $baseName = substr($baseName, 0, $firstDot);
229
-                if (!is_numeric($baseName) || $baseName . '.000' <= $latestVersion) {
229
+                if (!is_numeric($baseName) || $baseName.'.000' <= $latestVersion) {
230 230
                     continue;
231 231
                 }
232
-                $keyName = $path . $baseName;
232
+                $keyName = $path.$baseName;
233 233
                 $notSet = !array_key_exists($keyName, $fileList) || false === $fileList[$keyName];
234 234
                 if ($isPlatform) {
235
-                    $fileList[$keyName] = $this->safeFileRead($keyName . $platformExt);
235
+                    $fileList[$keyName] = $this->safeFileRead($keyName.$platformExt);
236 236
                 } elseif ($isSql && $notSet) {
237
-                    $fileList[$keyName] = $this->safeFileRead($keyName . '.sql');
237
+                    $fileList[$keyName] = $this->safeFileRead($keyName.'.sql');
238 238
                 }
239 239
             }
240 240
         }
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
                 ->execute([$updateVersion]);
273 273
             $pdo->commit();
274 274
         } catch (\PDOException $exc) {
275
-            $mess = sprintf('Database error message was %s', $exc->getMessage()) . PHP_EOL;
275
+            $mess = sprintf('Database error message was %s', $exc->getMessage()).PHP_EOL;
276 276
             $mess .= sprintf('Database "version" update failed for %1$s',
277 277
                 $updateVersion);
278 278
             if ($pdo->inTransaction()) {
Please login to merge, or discard this patch.