Completed
Push — master ( 524ecf...598fe1 )
by Michael
02:48
created
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.
lib/Configuration/SqlWiring.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,17 +52,17 @@  discard block
 block discarded – undo
52 52
     public function wire(ContainerInterface $dic)
53 53
     {
54 54
         if (empty($dic['Yapeal.Sql.CommonQueries'])) {
55
-            $dic['Yapeal.Sql.CommonQueries'] = function ($dic) {
55
+            $dic['Yapeal.Sql.CommonQueries'] = function($dic) {
56 56
                 return new $dic['Yapeal.Sql.Handlers.queries']($dic['Yapeal.Sql.database'],
57 57
                     $dic['Yapeal.Sql.tablePrefix']);
58 58
             };
59 59
         }
60 60
         if (empty($dic['Yapeal.Sql.Connection'])) {
61 61
             if ('mysql' !== $dic['Yapeal.Sql.platform']) {
62
-                $mess = 'Unknown platform, was given ' . $dic['Yapeal.Sql.platform'];
62
+                $mess = 'Unknown platform, was given '.$dic['Yapeal.Sql.platform'];
63 63
                 throw new YapealDatabaseException($mess);
64 64
             }
65
-            $dic['Yapeal.Sql.Connection'] = function ($dic) {
65
+            $dic['Yapeal.Sql.Connection'] = function($dic) {
66 66
                 $dsn = '%1$s:host=%2$s;charset=utf8mb4';
67 67
                 $subs = [$dic['Yapeal.Sql.platform'], $dic['Yapeal.Sql.hostName']];
68 68
                 if (!empty($dic['Yapeal.Sql.port'])) {
@@ -81,20 +81,20 @@  discard block
 block discarded – undo
81 81
                 $database->exec('SET SESSION TIME_ZONE=\'+00:00\'');
82 82
                 $database->exec('SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci');
83 83
                 $database->exec('SET COLLATION_CONNECTION=utf8mb4_unicode_520_ci');
84
-                $database->exec('SET DEFAULT_STORAGE_ENGINE=' . $dic['Yapeal.Sql.engine']);
84
+                $database->exec('SET DEFAULT_STORAGE_ENGINE='.$dic['Yapeal.Sql.engine']);
85 85
                 return $database;
86 86
             };
87 87
         }
88 88
         if (empty($dic['Yapeal.Sql.Creator'])) {
89
-            $dic['Yapeal.Sql.Creator'] = function () use ($dic) {
89
+            $dic['Yapeal.Sql.Creator'] = function() use ($dic) {
90 90
                 $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Sql.dir']);
91 91
                 $twig = new \Twig_Environment($loader,
92 92
                     ['debug' => true, 'strict_variables' => true, 'autoescape' => false]);
93
-                $filter = new \Twig_SimpleFilter('ucFirst', function ($value) {
93
+                $filter = new \Twig_SimpleFilter('ucFirst', function($value) {
94 94
                     return ucfirst($value);
95 95
                 });
96 96
                 $twig->addFilter($filter);
97
-                $filter = new \Twig_SimpleFilter('lcFirst', function ($value) {
97
+                $filter = new \Twig_SimpleFilter('lcFirst', function($value) {
98 98
                     return lcfirst($value);
99 99
                 });
100 100
                 $twig->addFilter($filter);
Please login to merge, or discard this patch.
lib/Log/EventAwareLoggerInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@
 block discarded – undo
42 42
 {
43 43
     /**
44 44
      * @param LogEventInterface $event
45
+     * @return void
45 46
      */
46 47
     public function logEvent(LogEventInterface $event);
47 48
 }
Please login to merge, or discard this 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 WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Configuration/WiringInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@
 block discarded – undo
42 42
 {
43 43
     /**
44 44
      * @param LogEventInterface $event
45
+     * @return void
45 46
      */
46 47
     public function logEvent(LogEventInterface $event);
47 48
 }
Please login to merge, or discard this 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 WiringInterface Interface.
5 5
  *
Please login to merge, or discard this patch.
lib/Xsl/Transformer.php 1 patch
Spacing   +6 added lines, -6 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 Transformer class.
5 5
  *
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function __construct($dir = __DIR__)
56 56
     {
57
-        $this->setRelativeBaseDir($dir . '/');
57
+        $this->setRelativeBaseDir($dir.'/');
58 58
     }
59 59
     /**
60 60
      * @param EveApiEventInterface $event
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
         $arguments = $data->getEveApiArguments();
113 113
         if (!empty($arguments['vCode'])) {
114
-            $arguments['vCode'] = substr($arguments['vCode'], 0, 8) . '...';
114
+            $arguments['vCode'] = substr($arguments['vCode'], 0, 8).'...';
115 115
         }
116 116
         if (!in_array($data->getEveApiName(), ['accountBalance', 'walletJournal', 'walletTransactions'], true)) {
117 117
             unset($arguments['accountKey']);
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
         $json = json_encode($arguments);
122 122
         $xml = str_replace(["encoding='UTF-8'?>\r\n<eveapi", "encoding='UTF-8'?>\n<eveapi"],
123 123
             [
124
-                "encoding='UTF-8'?>\r\n<?yapeal.parameters.json " . $json . "?>\r\n<eveapi",
125
-                "encoding='UTF-8'?>\n<?yapeal.parameters.json " . $json . "?>\n<eveapi"
124
+                "encoding='UTF-8'?>\r\n<?yapeal.parameters.json ".$json."?>\r\n<eveapi",
125
+                "encoding='UTF-8'?>\n<?yapeal.parameters.json ".$json."?>\n<eveapi"
126 126
             ],
127 127
             $xml);
128 128
         $data->setEveApiXml($xml);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                 }
170 170
             }
171 171
             $apiName = $data->getEveApiName();
172
-            $data->setEveApiName('Untransformed_' . $apiName);
172
+            $data->setEveApiName('Untransformed_'.$apiName);
173 173
             // Cache error causing XML.
174 174
             $this->emitEvents($data, 'preserve', 'Yapeal.Xml.Error');
175 175
             $data->setEveApiName($apiName);
Please login to merge, or discard this patch.
lib/EveApi/Char/IndustryJobs.php 1 patch
Spacing   +2 added lines, -2 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 class IndustryJobs.
5 5
  *
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $this->setYem($yem);
76 76
         }
77 77
         $data = $event->getData();
78
-        $data->setEveApiName($data->getEveApiName() . 'History');
78
+        $data->setEveApiName($data->getEveApiName().'History');
79 79
         // Insure history has already been updated first so current data overwrites old data.
80 80
         $this->emitEvents($data, 'start');
81 81
         return parent::startEveApi($event, $eventName, $yem);
Please login to merge, or discard this patch.
lib/FileSystem/CommonFileHandlingTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $fileName = $this->getFpn()
60 60
             ->normalizeFile($fileName);
61 61
         if (!is_readable($fileName) || !is_file($fileName)) {
62
-            $mess = 'Could NOT find accessible file, was given ' . $fileName;
62
+            $mess = 'Could NOT find accessible file, was given '.$fileName;
63 63
             $yem->triggerLogEvent('Yapeal.Log.log', Logger::INFO, $mess);
64 64
             return false;
65 65
         }
@@ -195,17 +195,17 @@  discard block
 block discarded – undo
195 195
     private function isWritablePath(string $path, MediatorInterface $yem): bool
196 196
     {
197 197
         if (!is_readable($path)) {
198
-            $mess = 'Path is NOT readable or does NOT exist, was given ' . $path;
198
+            $mess = 'Path is NOT readable or does NOT exist, was given '.$path;
199 199
             $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $mess);
200 200
             return false;
201 201
         }
202 202
         if (!is_dir($path)) {
203
-            $mess = 'Path is NOT a directory, was given ' . $path;
203
+            $mess = 'Path is NOT a directory, was given '.$path;
204 204
             $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $mess);
205 205
             return false;
206 206
         }
207 207
         if (!is_writable($path)) {
208
-            $mess = 'Path is NOT writable, was given ' . $path;
208
+            $mess = 'Path is NOT writable, was given '.$path;
209 209
             $yem->triggerLogEvent('Yapeal.Log.log', Logger::NOTICE, $mess);
210 210
             return false;
211 211
         }
Please login to merge, or discard this patch.
lib/FileSystem/CacheRetriever.php 1 patch
Spacing   +5 added lines, -5 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 CacheRetriever class.
5 5
  *
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
     public function setCachePath($value = null)
105 105
     {
106 106
         if ($value === null) {
107
-            $value = dirname(dirname(__DIR__)) . '/cache/';
107
+            $value = dirname(dirname(__DIR__)).'/cache/';
108 108
         }
109 109
         if (!is_string($value)) {
110
-            $mess = 'Cache path MUST be string, but was given ' . gettype($value);
110
+            $mess = 'Cache path MUST be string, but was given '.gettype($value);
111 111
             throw new \InvalidArgumentException($mess);
112 112
         }
113 113
         $this->cachePath = $this->getFpn()
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
             return true;
171 171
         }
172 172
         $now = time();
173
-        $current = strtotime($current . '+00:00');
174
-        $until = strtotime($until . '+00:00');
173
+        $current = strtotime($current.'+00:00');
174
+        $until = strtotime($until.'+00:00');
175 175
         // At minimum use cached XML for 5 minutes (300 secs).
176 176
         if (($now - $current) <= 300) {
177 177
             return false;
Please login to merge, or discard this patch.