Completed
Push — master ( 524ecf...598fe1 )
by Michael
02:48
created
lib/Log/MessageBuilderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     protected function createEveApiMessage($messagePrefix, EveApiReadWriteInterface $data)
51 51
     {
52
-        $mess = $messagePrefix . ' Eve API %1$s/%2$s';
52
+        $mess = $messagePrefix.' Eve API %1$s/%2$s';
53 53
         $subs = [lcfirst($data->getEveApiSectionName()), $data->getEveApiName()];
54 54
         if ($data->hasEveApiArgument('keyID')) {
55 55
             $mess .= ' for keyID = %3$s';
Please login to merge, or discard this patch.
lib/Sql/PreserverTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
      * @param array               $columnDefaults
131 131
      * @param \SimpleXMLElement[] $rows
132 132
      *
133
-     * @return array
133
+     * @return string[]
134 134
      */
135 135
     protected function processXmlRows(array $columnDefaults, array $rows)
136 136
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
             ->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
170 170
         $mess = implode(',', $columns);
171 171
         if (512 < strlen($mess)) {
172
-            $mess = substr($mess, 0, 512) . '...';
172
+            $mess = substr($mess, 0, 512).'...';
173 173
         }
174 174
         $this->getYem()
175 175
             ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $mess);
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
             }
227 227
         }
228 228
         $required = array_reduce($columnDefaults,
229
-            function ($carry, $item) {
229
+            function($carry, $item) {
230 230
                 return $carry + (int)(null === $item);
231 231
             },
232 232
             0);
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             return $this;
235 235
         }
236 236
         uksort($columnDefaults,
237
-            function ($alpha, $beta) {
237
+            function($alpha, $beta) {
238 238
                 $alpha = strtolower($alpha);
239 239
                 $beta = strtolower($beta);
240 240
                 if ($alpha < $beta) {
Please login to merge, or discard this patch.
lib/Sql/CommonSqlQueries.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@
 block discarded – undo
372 372
     }
373 373
     /**
374 374
      * @param string $tableName
375
-     * @param array  $columnNameList
375
+     * @param string[]  $columnNameList
376 376
      * @param string $rowCount
377 377
      *
378 378
      * @return string
Please login to merge, or discard this 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 CommonSqlQueries class.
5 5
  *
@@ -381,11 +381,11 @@  discard block
 block discarded – undo
381 381
     public function getUpsert($tableName, array $columnNameList, $rowCount)
382 382
     {
383 383
         $columns = implode('","', $columnNameList);
384
-        $rowPrototype = '(' . implode(',', array_fill(0, count($columnNameList), '?')) . ')';
384
+        $rowPrototype = '('.implode(',', array_fill(0, count($columnNameList), '?')).')';
385 385
         $rows = implode(',', array_fill(0, $rowCount, $rowPrototype));
386 386
         $updates = [];
387 387
         foreach ($columnNameList as $column) {
388
-            $updates[] = '"' . $column . '"=VALUES("' . $column . '")';
388
+            $updates[] = '"'.$column.'"=VALUES("'.$column.'")';
389 389
         }
390 390
         $updates = implode(',', $updates);
391 391
         $sql = sprintf(
Please login to merge, or discard this patch.
lib/EveApi/CommonEveApiTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                 ->triggerLogEvent('Yapeal.Log.log', Logger::WARNING, $this->createEveApiMessage($mess, $data));
182 182
             return false;
183 183
         }
184
-        if (strtotime($expires[0]['expires'] . '+00:00') < time()) {
184
+        if (strtotime($expires[0]['expires'].'+00:00') < time()) {
185 185
             $mess = 'Expired UtilCachedUntil record found for';
186 186
             $this->getYem()
187 187
                 ->triggerLogEvent('Yapeal.Log.log', Logger::DEBUG, $this->createEveApiMessage($mess, $data));
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         if ('' === $currentTime) {
289 289
             return $this;
290 290
         }
291
-        $dateTime = gmdate('Y-m-d H:i:s', strtotime($currentTime . '+00:00') + $data->getCacheInterval());
291
+        $dateTime = gmdate('Y-m-d H:i:s', strtotime($currentTime.'+00:00') + $data->getCacheInterval());
292 292
         $row = [
293 293
             'accountKey' => $data->hasEveApiArgument('accountKey') ? $data->getEveApiArgument('accountKey') : '0',
294 294
             'apiName' => $data->getEveApiName(),
Please login to merge, or discard this patch.
lib/Configuration/XslWiring.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     public function wire(ContainerInterface $dic)
51 51
     {
52 52
         if (empty($dic['Yapeal.Xsl.Transformer'])) {
53
-            $dic['Yapeal.Xsl.Transformer'] = function () use ($dic) {
53
+            $dic['Yapeal.Xsl.Transformer'] = function() use ($dic) {
54 54
                     return new $dic['Yapeal.Xsl.transform']($dic['Yapeal.Xsl.dir']);
55 55
                 };
56 56
         }
Please login to merge, or discard this patch.
lib/Configuration/LogWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.Log.Strategy'])) {
52
-            $dic['Yapeal.Log.Strategy'] = function () use ($dic) {
52
+            $dic['Yapeal.Log.Strategy'] = function() use ($dic) {
53 53
                 return new $dic['Yapeal.Log.Handlers.strategy']((int)$dic['Yapeal.Log.threshold']);
54 54
            };
55 55
         }
56 56
         if (empty($dic['Yapeal.Log.Logger'])) {
57
-            $dic['Yapeal.Log.Logger'] = function () use ($dic) {
57
+            $dic['Yapeal.Log.Logger'] = function() use ($dic) {
58 58
                 $group = [];
59 59
                 $lineFormatter = new LineFormatter(null, 'Ymd His.u', true, true);
60 60
                 $lineFormatter->includeStacktraces();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     $handler->setFormatter($lineFormatter);
67 67
                     $group[] = $handler;
68 68
                 }
69
-                $handler = new $dic['Yapeal.Log.Handlers.stream']($dic['Yapeal.Log.dir'] . $dic['Yapeal.Log.fileName'],
69
+                $handler = new $dic['Yapeal.Log.Handlers.stream']($dic['Yapeal.Log.dir'].$dic['Yapeal.Log.fileName'],
70 70
                     100);
71 71
                 $group[] = $handler->setFormatter($lineFormatter);
72 72
                 return new $dic['Yapeal.Log.Handlers.class']($dic['Yapeal.Log.channel'], [
Please login to merge, or discard this patch.
lib/Configuration/FileSystemWiring.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,13 +49,13 @@
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.FileSystem.CachePreserver'])) {
52
-            $dic['Yapeal.FileSystem.CachePreserver'] = function () use ($dic) {
52
+            $dic['Yapeal.FileSystem.CachePreserver'] = function() use ($dic) {
53 53
                 return new $dic['Yapeal.FileSystem.Handlers.preserve']($dic['Yapeal.FileSystem.Cache.dir'],
54 54
                     $dic['Yapeal.FileSystem.Cache.preserve']);
55 55
             };
56 56
         }
57 57
         if (empty($dic['Yapeal.FileSystem.CacheRetriever'])) {
58
-            $dic['Yapeal.FileSystem.CacheRetriever'] = function () use ($dic) {
58
+            $dic['Yapeal.FileSystem.CacheRetriever'] = function() use ($dic) {
59 59
                 return new $dic['Yapeal.FileSystem.Handlers.retrieve']($dic['Yapeal.FileSystem.Cache.dir'],
60 60
                     $dic['Yapeal.FileSystem.Cache.retrieve']);
61 61
             };
Please login to merge, or discard this patch.
lib/Configuration/NetworkWiring.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public function wire(ContainerInterface $dic)
50 50
     {
51 51
         if (empty($dic['Yapeal.Network.Client'])) {
52
-            $dic['Yapeal.Network.Client'] = function ($dic) {
52
+            $dic['Yapeal.Network.Client'] = function($dic) {
53 53
                 $appComment = $dic['Yapeal.Network.appComment'];
54 54
                 $appName = $dic['Yapeal.Network.appName'];
55 55
                 $appVersion = $dic['Yapeal.Network.appVersion'];
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 ];
80 80
                 // Clean up any extra spaces and EOL chars from Yaml.
81 81
                 array_walk($headers,
82
-                    function (&$value) {
82
+                    function(&$value) {
83 83
                         $value = trim(str_replace(' ', '', (string)$value));
84 84
                     });
85 85
                 if ('' !== $userAgent) {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             };
97 97
         }
98 98
         if (empty($dic['Yapeal.Network.Retriever'])) {
99
-            $dic['Yapeal.Network.Retriever'] = function ($dic) {
99
+            $dic['Yapeal.Network.Retriever'] = function($dic) {
100 100
                 return new $dic['Yapeal.Network.Handlers.retrieve']($dic['Yapeal.Network.Client'],
101 101
                     $dic['Yapeal.Network.Cache:retrieve']);
102 102
             };
Please login to merge, or discard this patch.
lib/Container/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             throw new \InvalidArgumentException('Extension service definition is not a Closure or invokable object.');
88 88
         }
89 89
         $factory = $this->values[$id];
90
-        $extended = function ($c) use ($callable, $factory) {
90
+        $extended = function($c) use ($callable, $factory) {
91 91
             return $callable($factory($c), $c);
92 92
         };
93 93
         if (isset($this->factories[$factory])) {
Please login to merge, or discard this patch.