@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | return $this; |
58 | 58 | } |
59 | 59 | if (!is_string($name)) { |
60 | - $mess = 'Name MUST be string but was given ' . gettype($name); |
|
60 | + $mess = 'Name MUST be string but was given '.gettype($name); |
|
61 | 61 | throw new InvalidArgumentException($mess); |
62 | 62 | } |
63 | 63 | $this->eveApiArguments[$name] = (string)$value; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $name = (string)$name; |
91 | 91 | if (!array_key_exists($name, $this->eveApiArguments)) { |
92 | - $mess = 'Unknown argument ' . $name; |
|
92 | + $mess = 'Unknown argument '.$name; |
|
93 | 93 | throw new DomainException($mess); |
94 | 94 | } |
95 | 95 | return $this->eveApiArguments[$name]; |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function getHash() |
153 | 153 | { |
154 | - $hash = $this->getEveApiName() . $this->getEveApiSectionName(); |
|
154 | + $hash = $this->getEveApiName().$this->getEveApiSectionName(); |
|
155 | 155 | $arguments = $this->getEveApiArguments(); |
156 | 156 | ksort($arguments); |
157 | 157 | foreach ($arguments as $key => $value) { |
158 | 158 | if ('mask' === $key) { |
159 | 159 | continue; |
160 | 160 | } |
161 | - $hash .= $key . $value; |
|
161 | + $hash .= $key.$value; |
|
162 | 162 | } |
163 | 163 | return hash('md5', $hash); |
164 | 164 | } |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | public function setEveApiName($value) |
229 | 229 | { |
230 | 230 | if (!is_string($value)) { |
231 | - $mess = 'Name MUST be string but was given ' . gettype($value); |
|
231 | + $mess = 'Name MUST be string but was given '.gettype($value); |
|
232 | 232 | throw new InvalidArgumentException($mess); |
233 | 233 | } |
234 | 234 | $this->eveApiName = $value; |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | public function setEveApiSectionName($value) |
246 | 246 | { |
247 | 247 | if (!is_string($value)) { |
248 | - $mess = 'Section name MUST be string but was given ' . gettype($value); |
|
248 | + $mess = 'Section name MUST be string but was given '.gettype($value); |
|
249 | 249 | throw new InvalidArgumentException($mess); |
250 | 250 | } |
251 | 251 | $this->eveApiSectionName = $value; |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | $xml = ''; |
266 | 266 | } |
267 | 267 | if (!is_string($xml)) { |
268 | - $mess = 'Xml MUST be string but was given ' . gettype($xml); |
|
268 | + $mess = 'Xml MUST be string but was given '.gettype($xml); |
|
269 | 269 | throw new InvalidArgumentException($mess); |
270 | 270 | } |
271 | 271 | $this->eveApiXml = $xml; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | $statements = str_replace(array_keys($replacements), array_values($replacements), explode(';', $sqlStatements)); |
125 | 125 | // 5 is a 'magic' number that I think is shorter than any legal SQL statement. |
126 | - $statements = array_filter($statements, function ($value) { |
|
126 | + $statements = array_filter($statements, function($value) { |
|
127 | 127 | return 5 <= strlen(trim($value)); |
128 | 128 | }); |
129 | 129 | $progress = null; |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | $progress->finish(); |
152 | 152 | $output->writeln(''); |
153 | 153 | } |
154 | - $mess = $sql . PHP_EOL; |
|
154 | + $mess = $sql.PHP_EOL; |
|
155 | 155 | $mess .= sprintf( |
156 | 156 | 'Sql failed in %1$s on statement %2$s with (%3$s) %4$s', |
157 | 157 | $fileName, |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $dic = $this->getDic(); |
183 | 183 | foreach (['class', 'database', 'hostName', 'password', 'platform', 'tablePrefix', 'userName'] as $option) { |
184 | 184 | if (!empty($options[$option])) { |
185 | - $dic[$base . $option] = $options[$option]; |
|
185 | + $dic[$base.$option] = $options[$option]; |
|
186 | 186 | } |
187 | 187 | } |
188 | 188 | if (!empty($options['configFile'])) { |
@@ -154,18 +154,18 @@ |
||
154 | 154 | } |
155 | 155 | $name = strtolower($name); |
156 | 156 | foreach ([ |
157 | - 'descr' => 'xs:string', |
|
158 | - 'name' => 'eveNameType', |
|
159 | - 'balance' => 'eveISKType', |
|
160 | - 'isk' => 'eveISKType', |
|
161 | - 'tax' => 'eveISKType', |
|
162 | - 'timeefficiency' => 'xs:unsignedByte', |
|
163 | - 'date' => 'eveNEDTType', |
|
164 | - 'time' => 'eveNEDTType', |
|
165 | - 'until' => 'eveNEDTType', |
|
166 | - 'errorcode' => 'xs:unsignedShort', |
|
167 | - 'level' => 'xs:unsignedShort' |
|
168 | - ] as $search => $replace) { |
|
157 | + 'descr' => 'xs:string', |
|
158 | + 'name' => 'eveNameType', |
|
159 | + 'balance' => 'eveISKType', |
|
160 | + 'isk' => 'eveISKType', |
|
161 | + 'tax' => 'eveISKType', |
|
162 | + 'timeefficiency' => 'xs:unsignedByte', |
|
163 | + 'date' => 'eveNEDTType', |
|
164 | + 'time' => 'eveNEDTType', |
|
165 | + 'until' => 'eveNEDTType', |
|
166 | + 'errorcode' => 'xs:unsignedShort', |
|
167 | + 'level' => 'xs:unsignedShort' |
|
168 | + ] as $search => $replace) { |
|
169 | 169 | if (false !== strpos($name, $search)) { |
170 | 170 | return $replace; |
171 | 171 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'className' => lcfirst($data->getEveApiName()), |
96 | 96 | 'tables' => $this->tables, |
97 | 97 | 'sectionName' => lcfirst($this->sectionName), |
98 | - 'version' => gmdate('YmdHis', $sec) . sprintf('.%0-3s', floor($mSec * 1000)) |
|
98 | + 'version' => gmdate('YmdHis', $sec).sprintf('.%0-3s', floor($mSec * 1000)) |
|
99 | 99 | ]; |
100 | 100 | try { |
101 | 101 | $contents = $this->getTwig() |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $columns[$colName] = $this->inferTypeFromName($colName); |
183 | 183 | } |
184 | 184 | uksort($columns, |
185 | - function ($alpha, $beta) { |
|
185 | + function($alpha, $beta) { |
|
186 | 186 | $alpha = strtolower($alpha); |
187 | 187 | $beta = strtolower($beta); |
188 | 188 | if ($alpha < $beta) { |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $tables[$tableName] = ['attributes' => $columns]; |
196 | 196 | } |
197 | 197 | uksort($tables, |
198 | - function ($alpha, $beta) { |
|
198 | + function($alpha, $beta) { |
|
199 | 199 | $alpha = strtolower($alpha); |
200 | 200 | $beta = strtolower($beta); |
201 | 201 | if ($alpha < $beta) { |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | $columns[$name] = $this->inferTypeFromName($name, true); |
232 | 232 | } |
233 | 233 | uksort($columns, |
234 | - function ($alpha, $beta) { |
|
234 | + function($alpha, $beta) { |
|
235 | 235 | $alpha = strtolower($alpha); |
236 | 236 | $beta = strtolower($beta); |
237 | 237 | if ($alpha < $beta) { |
@@ -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) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | { |
107 | 107 | $names = ['Config', 'Error', 'Event', 'Log', 'Sql', 'Xml', 'Xsd', 'Xsl', 'Cache', 'Network', 'EveApi']; |
108 | 108 | foreach ($names as $name) { |
109 | - $className = __NAMESPACE__ . '\\' . $name . 'Wiring'; |
|
109 | + $className = __NAMESPACE__.'\\'.$name.'Wiring'; |
|
110 | 110 | if (class_exists($className, true)) { |
111 | 111 | /** |
112 | 112 | * @var WiringInterface $class |
@@ -115,11 +115,11 @@ discard block |
||
115 | 115 | $class->wire($this->dic); |
116 | 116 | continue; |
117 | 117 | } |
118 | - $methodName = 'wire' . $name; |
|
118 | + $methodName = 'wire'.$name; |
|
119 | 119 | if (method_exists($this, $methodName)) { |
120 | 120 | $this->$methodName(); |
121 | 121 | } else { |
122 | - $mess = 'Could NOT find class or method for ' . $name; |
|
122 | + $mess = 'Could NOT find class or method for '.$name; |
|
123 | 123 | throw new \LogicException($mess); |
124 | 124 | } |
125 | 125 | } |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | do { |
144 | 144 | $settings = preg_replace_callback( |
145 | 145 | $regEx, |
146 | - function ($match) use ($settings, $dic) { |
|
146 | + function($match) use ($settings, $dic) { |
|
147 | 147 | if (!empty($settings[$match['name']])) { |
148 | 148 | return $settings[$match['name']]; |
149 | 149 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | if (PREG_NO_ERROR !== $lastError) { |
165 | 165 | $constants = array_flip(get_defined_constants(true)['pcre']); |
166 | 166 | $lastError = $constants[$lastError]; |
167 | - $mess = 'Received preg error ' . $lastError; |
|
167 | + $mess = 'Received preg error '.$lastError; |
|
168 | 168 | throw new \DomainException($mess); |
169 | 169 | } |
170 | 170 | } while ($count > 0); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $rdi->setFlags($flags); |
184 | 184 | /** @noinspection SpellCheckingInspection */ |
185 | 185 | $rcfi = new \RecursiveCallbackFilterIterator( |
186 | - $rdi, function (\SplFileInfo $current, $key, \RecursiveDirectoryIterator $rdi) { |
|
186 | + $rdi, function(\SplFileInfo $current, $key, \RecursiveDirectoryIterator $rdi) { |
|
187 | 187 | if ($rdi->hasChildren()) { |
188 | 188 | return true; |
189 | 189 | } |
@@ -218,16 +218,16 @@ discard block |
||
218 | 218 | $dic['Yapeal.baseDir'] = $path; |
219 | 219 | } |
220 | 220 | if (empty($dic['Yapeal.libDir'])) { |
221 | - $dic['Yapeal.libDir'] = $path . 'lib/'; |
|
221 | + $dic['Yapeal.libDir'] = $path.'lib/'; |
|
222 | 222 | } |
223 | 223 | $configFiles = [ |
224 | - $fpn->normalizeFile(__DIR__ . '/yapeal_defaults.yaml'), |
|
225 | - $fpn->normalizeFile($dic['Yapeal.baseDir'] . 'config/yapeal.yaml') |
|
224 | + $fpn->normalizeFile(__DIR__.'/yapeal_defaults.yaml'), |
|
225 | + $fpn->normalizeFile($dic['Yapeal.baseDir'].'config/yapeal.yaml') |
|
226 | 226 | ]; |
227 | 227 | $vendorPos = strpos($path, 'vendor/'); |
228 | 228 | if (false !== $vendorPos) { |
229 | 229 | $dic['Yapeal.vendorParentDir'] = substr($path, 0, $vendorPos); |
230 | - $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'] . 'config/yapeal.yaml'); |
|
230 | + $configFiles[] = $fpn->normalizeFile($dic['Yapeal.vendorParentDir'].'config/yapeal.yaml'); |
|
231 | 231 | } |
232 | 232 | $settings = []; |
233 | 233 | // Process each file in turn so any substitutions are done in a more |
@@ -270,8 +270,8 @@ discard block |
||
270 | 270 | basename($subscriber, '.php') |
271 | 271 | ); |
272 | 272 | if (!isset($dic[$service])) { |
273 | - $dic[$service] = function () use ($dic, $service) { |
|
274 | - $class = '\\' . str_replace('.', '\\', $service); |
|
273 | + $dic[$service] = function() use ($dic, $service) { |
|
274 | + $class = '\\'.str_replace('.', '\\', $service); |
|
275 | 275 | /** |
276 | 276 | * @var \Yapeal\CommonToolsTrait $callable |
277 | 277 | */ |
@@ -280,27 +280,27 @@ discard block |
||
280 | 280 | ->setPdo($dic['Yapeal.Sql.Connection']); |
281 | 281 | }; |
282 | 282 | } |
283 | - $events = [$service . '.start' => ['startEveApi', 'last']]; |
|
283 | + $events = [$service.'.start' => ['startEveApi', 'last']]; |
|
284 | 284 | if (false === strpos($subscriber, 'Section')) { |
285 | - $events[$service . '.preserve'] = ['preserveEveApi', 'last']; |
|
285 | + $events[$service.'.preserve'] = ['preserveEveApi', 'last']; |
|
286 | 286 | } |
287 | 287 | $mediator->addServiceSubscriberByEventList($service, $events); |
288 | 288 | } |
289 | 289 | } |
290 | 290 | if (empty($dic['Yapeal.EveApi.Creator'])) { |
291 | - $dic['Yapeal.EveApi.Creator'] = function () use ($dic) { |
|
291 | + $dic['Yapeal.EveApi.Creator'] = function() use ($dic) { |
|
292 | 292 | $loader = new \Twig_Loader_Filesystem($dic['Yapeal.EveApi.dir']); |
293 | 293 | $twig = new \Twig_Environment( |
294 | 294 | $loader, ['debug' => true, 'strict_variables' => true, 'autoescape' => false] |
295 | 295 | ); |
296 | 296 | $filter = new \Twig_SimpleFilter( |
297 | - 'ucFirst', function ($value) { |
|
297 | + 'ucFirst', function($value) { |
|
298 | 298 | return ucfirst($value); |
299 | 299 | } |
300 | 300 | ); |
301 | 301 | $twig->addFilter($filter); |
302 | 302 | $filter = new \Twig_SimpleFilter( |
303 | - 'lcFirst', function ($value) { |
|
303 | + 'lcFirst', function($value) { |
|
304 | 304 | return lcfirst($value); |
305 | 305 | } |
306 | 306 | ); |
@@ -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 | } |