@@ -151,9 +151,9 @@ |
||
151 | 151 | if ('Database' === $dir && $this->dropDatabase) { |
152 | 152 | // Add drop database file if requested. |
153 | 153 | $fileList[] = $this->getFpn() |
154 | - ->normalizeFile($path . $dir . '/DropDatabase.sql'); |
|
154 | + ->normalizeFile($path.$dir.'/DropDatabase.sql'); |
|
155 | 155 | } |
156 | - foreach (new \DirectoryIterator($path . $dir . '/') as $fileInfo) { |
|
156 | + foreach (new \DirectoryIterator($path.$dir.'/') as $fileInfo) { |
|
157 | 157 | // Add file path if it's a sql create file. |
158 | 158 | if ($fileInfo->isFile() |
159 | 159 | && 'sql' === $fileInfo->getExtension() |
@@ -181,7 +181,7 @@ discard block |
||
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 |
||
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(), |
@@ -166,16 +166,16 @@ |
||
166 | 166 | $name = strtolower($name); |
167 | 167 | $column = 'null'; |
168 | 168 | foreach ([ |
169 | - 'descr' => '\'\'', |
|
170 | - 'name' => '\'\'', |
|
171 | - 'balance' => '\'0.0\'', |
|
172 | - 'isk' => '\'0.0\'', |
|
173 | - 'tax' => '\'0.0\'', |
|
174 | - 'timeefficiency' => 'null', |
|
175 | - 'date' => '\'1970-01-01 00:00:01\'', |
|
176 | - 'time' => '\'1970-01-01 00:00:01\'', |
|
177 | - 'until' => '\'1970-01-01 00:00:01\'' |
|
178 | - ] as $search => $replace) { |
|
169 | + 'descr' => '\'\'', |
|
170 | + 'name' => '\'\'', |
|
171 | + 'balance' => '\'0.0\'', |
|
172 | + 'isk' => '\'0.0\'', |
|
173 | + 'tax' => '\'0.0\'', |
|
174 | + 'timeefficiency' => 'null', |
|
175 | + 'date' => '\'1970-01-01 00:00:01\'', |
|
176 | + 'time' => '\'1970-01-01 00:00:01\'', |
|
177 | + 'until' => '\'1970-01-01 00:00:01\'' |
|
178 | + ] as $search => $replace) { |
|
179 | 179 | if (false !== strpos($name, $search)) { |
180 | 180 | return $replace; |
181 | 181 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | */ |
144 | 144 | protected function getNamespace() |
145 | 145 | { |
146 | - return 'Yapeal\EveApi\\' . ucfirst($this->sectionName); |
|
146 | + return 'Yapeal\EveApi\\'.ucfirst($this->sectionName); |
|
147 | 147 | } |
148 | 148 | /** |
149 | 149 | * Used to determine if API is in section that has an owner. |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | if ($this->hasOwner()) { |
210 | 210 | $attributes['ownerID'] = '$ownerID'; |
211 | 211 | } |
212 | - uksort($attributes, function ($alpha, $beta) { |
|
212 | + uksort($attributes, function($alpha, $beta) { |
|
213 | 213 | $alpha = strtolower($alpha); |
214 | 214 | $beta = strtolower($beta); |
215 | 215 | if ($alpha < $beta) { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | if ($this->hasOwner()) { |
252 | 252 | $values['ownerID'] = '$ownerID'; |
253 | 253 | } |
254 | - uksort($values, function ($alpha, $beta) { |
|
254 | + uksort($values, function($alpha, $beta) { |
|
255 | 255 | $alpha = strtolower($alpha); |
256 | 256 | $beta = strtolower($beta); |
257 | 257 | if ($alpha < $beta) { |
@@ -228,24 +228,24 @@ |
||
228 | 228 | } |
229 | 229 | $name = strtolower($name); |
230 | 230 | foreach ([ |
231 | - 'descr' => 'TEXT NOT NULL', |
|
232 | - 'name' => 'CHAR(100) NOT NULL', |
|
233 | - 'balance' => 'DECIMAL(17, 2) NOT NULL', |
|
234 | - 'isk' => 'DECIMAL(17, 2) NOT NULL', |
|
235 | - 'tax' => 'DECIMAL(17, 2) NOT NULL', |
|
236 | - 'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL', |
|
237 | - 'date' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
238 | - 'time' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
239 | - 'until' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
240 | - 'errorcode' => 'SMALLINT(4) UNSIGNED NOT NULL', |
|
241 | - 'level' => 'SMALLINT(4) UNSIGNED NOT NULL', |
|
242 | - 'logoncount' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
243 | - 'logonminutes' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
244 | - 'trainingend' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
245 | - 'skillintraining' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
246 | - 'trainingdestinationsp' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
247 | - 'trainingstartsp' => 'BIGINT(20) UNSIGNED NOT NULL' |
|
248 | - ] as $search => $replace) { |
|
231 | + 'descr' => 'TEXT NOT NULL', |
|
232 | + 'name' => 'CHAR(100) NOT NULL', |
|
233 | + 'balance' => 'DECIMAL(17, 2) NOT NULL', |
|
234 | + 'isk' => 'DECIMAL(17, 2) NOT NULL', |
|
235 | + 'tax' => 'DECIMAL(17, 2) NOT NULL', |
|
236 | + 'timeefficiency' => 'TINYINT(3) UNSIGNED NOT NULL', |
|
237 | + 'date' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
238 | + 'time' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
239 | + 'until' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
240 | + 'errorcode' => 'SMALLINT(4) UNSIGNED NOT NULL', |
|
241 | + 'level' => 'SMALLINT(4) UNSIGNED NOT NULL', |
|
242 | + 'logoncount' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
243 | + 'logonminutes' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
244 | + 'trainingend' => 'DATETIME NOT NULL DEFAULT \'1970-01-01 00:00:01\'', |
|
245 | + 'skillintraining' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
246 | + 'trainingdestinationsp' => 'BIGINT(20) UNSIGNED NOT NULL', |
|
247 | + 'trainingstartsp' => 'BIGINT(20) UNSIGNED NOT NULL' |
|
248 | + ] as $search => $replace) { |
|
249 | 249 | if (false !== strpos($name, $search)) { |
250 | 250 | return $replace; |
251 | 251 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | 'className' => lcfirst($this->apiName), |
105 | 105 | 'tables' => $this->tables, |
106 | 106 | 'sectionName' => lcfirst($this->sectionName), |
107 | - 'version' => gmdate('YmdHis', $sec) . substr($mSec, 1, 4) |
|
107 | + 'version' => gmdate('YmdHis', $sec).substr($mSec, 1, 4) |
|
108 | 108 | ]; |
109 | 109 | try { |
110 | 110 | $contents = $this->getTwig() |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $platform, |
178 | 178 | $suffix)); |
179 | 179 | foreach ($names as $fileName) { |
180 | - if (is_file($this->getDir() . $fileName)) { |
|
180 | + if (is_file($this->getDir().$fileName)) { |
|
181 | 181 | return $fileName; |
182 | 182 | } |
183 | 183 | } |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $columns['ownerID'] = 'BIGINT(20) UNSIGNED NOT NULL'; |
262 | 262 | } |
263 | 263 | uksort($columns, |
264 | - function ($alpha, $beta) { |
|
264 | + function($alpha, $beta) { |
|
265 | 265 | $alpha = strtolower($alpha); |
266 | 266 | $beta = strtolower($beta); |
267 | 267 | if ($alpha < $beta) { |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | $columns['ownerID'] = 'BIGINT(20) UNSIGNED NOT NULL'; |
305 | 305 | } |
306 | 306 | uksort($columns, |
307 | - function ($alpha, $beta) { |
|
307 | + function($alpha, $beta) { |
|
308 | 308 | $alpha = strtolower($alpha); |
309 | 309 | $beta = strtolower($beta); |
310 | 310 | if ($alpha < $beta) { |
@@ -50,19 +50,19 @@ discard block |
||
50 | 50 | public function wire(ContainerInterface $dic) |
51 | 51 | { |
52 | 52 | if (empty($dic['Yapeal.Xsd.Creator'])) { |
53 | - $dic['Yapeal.Xsd.Creator'] = function () use ($dic) { |
|
53 | + $dic['Yapeal.Xsd.Creator'] = function() use ($dic) { |
|
54 | 54 | $loader = new \Twig_Loader_Filesystem($dic['Yapeal.Xsd.dir']); |
55 | 55 | $twig = new \Twig_Environment( |
56 | 56 | $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false] |
57 | 57 | ); |
58 | 58 | $filter = new \Twig_SimpleFilter( |
59 | - 'ucFirst', function ($value) { |
|
59 | + 'ucFirst', function($value) { |
|
60 | 60 | return ucfirst($value); |
61 | 61 | } |
62 | 62 | ); |
63 | 63 | $twig->addFilter($filter); |
64 | 64 | $filter = new \Twig_SimpleFilter( |
65 | - 'lcFirst', function ($value) { |
|
65 | + 'lcFirst', function($value) { |
|
66 | 66 | return lcfirst($value); |
67 | 67 | } |
68 | 68 | ); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | }; |
79 | 79 | } |
80 | 80 | if (empty($dic['Yapeal.Xsd.Validator'])) { |
81 | - $dic['Yapeal.Xsd.Validator'] = function () use ($dic) { |
|
81 | + $dic['Yapeal.Xsd.Validator'] = function() use ($dic) { |
|
82 | 82 | return new $dic['Yapeal.Xsd.validate']($dic['Yapeal.Xsd.dir']); |
83 | 83 | }; |
84 | 84 | } |
@@ -51,13 +51,13 @@ |
||
51 | 51 | { |
52 | 52 | if (empty($dic['Yapeal.Xml.Data'])) { |
53 | 53 | $dic['Yapeal.Xml.Data'] = $dic->factory( |
54 | - function ($dic) { |
|
54 | + function($dic) { |
|
55 | 55 | return new $dic['Yapeal.Xml.data'](); |
56 | 56 | } |
57 | 57 | ); |
58 | 58 | } |
59 | 59 | if (empty($dic['Yapeal.Xml.Error.Subscriber'])) { |
60 | - $dic['Yapeal.Xml.Error.Subscriber'] = function () use ($dic) { |
|
60 | + $dic['Yapeal.Xml.Error.Subscriber'] = function() use ($dic) { |
|
61 | 61 | return new $dic['Yapeal.Xml.Handlers.error'](); |
62 | 62 | }; |
63 | 63 | } |
@@ -50,7 +50,7 @@ |
||
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 | } |
@@ -50,12 +50,12 @@ |
||
50 | 50 | public function wire(ContainerInterface $dic) |
51 | 51 | { |
52 | 52 | if (empty($dic['Yapeal.Error.Strategy'])) { |
53 | - $dic['Yapeal.Error.Strategy'] = function () use ($dic) { |
|
53 | + $dic['Yapeal.Error.Strategy'] = function() use ($dic) { |
|
54 | 54 | return new $dic['Yapeal.Error.Handlers.strategy']((int)$dic['Yapeal.Error.threshold']); |
55 | 55 | }; |
56 | 56 | } |
57 | 57 | if (empty($dic['Yapeal.Error.Logger'])) { |
58 | - $dic['Yapeal.Error.Logger'] = function () use ($dic) { |
|
58 | + $dic['Yapeal.Error.Logger'] = function() use ($dic) { |
|
59 | 59 | /** |
60 | 60 | * @var Logger $logger |
61 | 61 | */ |
@@ -51,7 +51,7 @@ |
||
51 | 51 | if (empty($dic['Yapeal.Log.Strategy'])) { |
52 | 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 | 57 | $dic['Yapeal.Log.Logger'] = function () use ($dic) { |
@@ -49,12 +49,12 @@ discard block |
||
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 |
||
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'], [ |