@@ -66,16 +66,16 @@ discard block |
||
| 66 | 66 | // current cache and log-counters |
| 67 | 67 | $tpl->assign( |
| 68 | 68 | 'count_hiddens', |
| 69 | - number1000((int) $connection->fetchColumn('SELECT COUNT(*) AS `hiddens` FROM `caches` WHERE `status` = 1')) |
|
| 69 | + number1000((int)$connection->fetchColumn('SELECT COUNT(*) AS `hiddens` FROM `caches` WHERE `status` = 1')) |
|
| 70 | 70 | ); |
| 71 | 71 | $tpl->assign( |
| 72 | 72 | 'count_founds', |
| 73 | - number1000((int) $connection->fetchColumn('SELECT COUNT(*) AS `founds` FROM `cache_logs` WHERE `type` = 1')) |
|
| 73 | + number1000((int)$connection->fetchColumn('SELECT COUNT(*) AS `founds` FROM `cache_logs` WHERE `type` = 1')) |
|
| 74 | 74 | ); |
| 75 | 75 | $tpl->assign( |
| 76 | 76 | 'count_users', |
| 77 | 77 | number1000( |
| 78 | - (int) $connection->fetchColumn( |
|
| 78 | + (int)$connection->fetchColumn( |
|
| 79 | 79 | 'SELECT COUNT(*) AS `users` |
| 80 | 80 | FROM ( |
| 81 | 81 | SELECT DISTINCT `user_id` |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | // get total event count for all countries |
| 94 | 94 | $tpl->assign( |
| 95 | 95 | 'total_events', |
| 96 | - (int) $connection->fetchColumn( |
|
| 96 | + (int)$connection->fetchColumn( |
|
| 97 | 97 | 'SELECT COUNT(*) |
| 98 | 98 | FROM `caches` |
| 99 | 99 | WHERE `type` = 6 |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $options = array_merge($this->defaultOptions, $options); |
| 52 | 52 | |
| 53 | - $childrenClass = (array) $item->getChildrenAttribute('class'); |
|
| 53 | + $childrenClass = (array)$item->getChildrenAttribute('class'); |
|
| 54 | 54 | |
| 55 | 55 | if ($options['listClass']) { |
| 56 | 56 | $childrenClass[] = $options['listClass']; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | // create an array than can be imploded as a class list |
| 145 | - $class = (array) $item->getAttribute('class'); |
|
| 145 | + $class = (array)$item->getAttribute('class'); |
|
| 146 | 146 | |
| 147 | 147 | if ($options['itemClass']) { |
| 148 | 148 | $class[] = $options['itemClass']; |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | $html .= $this->renderLink($item, $options); |
| 184 | 184 | |
| 185 | 185 | // renders the embedded ul |
| 186 | - $childrenClass = (array) $item->getChildrenAttribute('class'); |
|
| 186 | + $childrenClass = (array)$item->getChildrenAttribute('class'); |
|
| 187 | 187 | if ($options['listClass']) { |
| 188 | 188 | $childrenClass[] = $options['listClass']; |
| 189 | 189 | } |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | |
| 230 | 230 | protected function renderLinkElement(ItemInterface $item, array $options) |
| 231 | 231 | { |
| 232 | - $childrenClass = (array) $item->getChildrenAttribute('class'); |
|
| 232 | + $childrenClass = (array)$item->getChildrenAttribute('class'); |
|
| 233 | 233 | |
| 234 | 234 | if ($options['linkClass']) { |
| 235 | 235 | $childrenClass[] = $options['linkClass']; |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | |
| 244 | 244 | protected function renderSpanElement(ItemInterface $item, array $options) |
| 245 | 245 | { |
| 246 | - $childrenClass = (array) $item->getChildrenAttribute('class'); |
|
| 246 | + $childrenClass = (array)$item->getChildrenAttribute('class'); |
|
| 247 | 247 | |
| 248 | 248 | if ($options['textClass']) { |
| 249 | 249 | $childrenClass[] = $options['textClass']; |
@@ -37,6 +37,6 @@ |
||
| 37 | 37 | { |
| 38 | 38 | $value = str_replace(',', '.', $value); |
| 39 | 39 | |
| 40 | - return (float) $value; |
|
| 40 | + return (float)$value; |
|
| 41 | 41 | } |
| 42 | 42 | } |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | $scss = new Compiler(); |
| 127 | 127 | $scss->setIgnoreErrors(true); |
| 128 | 128 | $scss->addImportPath($applicationScssPath); |
| 129 | - $scss->addImportPath(function ($path) use ($projectDir) { |
|
| 129 | + $scss->addImportPath(function($path) use ($projectDir) { |
|
| 130 | 130 | //Check for tilde as this refers to the node_modules dir |
| 131 | 131 | if (strpos($path, '~') === 0) { |
| 132 | 132 | $path = str_replace( |
@@ -56,8 +56,8 @@ |
||
| 56 | 56 | $checkedElements = 0; |
| 57 | 57 | |
| 58 | 58 | foreach ($metrics as $metric) { |
| 59 | - $totalElements += (int) $metric['elements']; |
|
| 60 | - $checkedElements += (int) $metric['coveredelements']; |
|
| 59 | + $totalElements += (int)$metric['elements']; |
|
| 60 | + $checkedElements += (int)$metric['coveredelements']; |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $coverage = ($checkedElements / $totalElements) * 100; |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | */ |
| 119 | 119 | $expressionAst = (new ExpressionLanguage())->parse($violation->getPropertyPath(), [])->getNodes(); |
| 120 | 120 | |
| 121 | - $line = ((int) $expressionAst->nodes['node']->nodes[1]->attributes['value']) + 1; |
|
| 121 | + $line = ((int)$expressionAst->nodes['node']->nodes[1]->attributes['value']) + 1; |
|
| 122 | 122 | |
| 123 | 123 | $linePrefix = $this->translator->trans('field_notes.error.line_prefix', [ |
| 124 | 124 | '%line%' => $line, |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | $databaseArray |
| 189 | 189 | ); |
| 190 | 190 | |
| 191 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 191 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 192 | 192 | |
| 193 | 193 | return $entity; |
| 194 | 194 | } |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | ['id' => $entity->id] |
| 216 | 216 | ); |
| 217 | 217 | |
| 218 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 218 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 219 | 219 | |
| 220 | 220 | return $entity; |
| 221 | 221 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | list($uSec, $sec) = explode(' ', microtime()); |
| 30 | 30 | |
| 31 | - return ((float) $uSec + (float) $sec); |
|
| 31 | + return ((float)$uSec + (float)$sec); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $databaseArray |
| 181 | 181 | ); |
| 182 | 182 | |
| 183 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 183 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 184 | 184 | |
| 185 | 185 | return $entity; |
| 186 | 186 | } |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | ['id' => $entity->id] |
| 208 | 208 | ); |
| 209 | 209 | |
| 210 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 210 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 211 | 211 | |
| 212 | 212 | return $entity; |
| 213 | 213 | } |
@@ -280,27 +280,27 @@ discard block |
||
| 280 | 280 | public function getEntityFromDatabaseArray(array $data) |
| 281 | 281 | { |
| 282 | 282 | $entity = new GeoCacheLogEntity(); |
| 283 | - $entity->id = (int) $data['id']; |
|
| 283 | + $entity->id = (int)$data['id']; |
|
| 284 | 284 | $entity->uuid = $data['uuid']; |
| 285 | - $entity->node = (int) $data['node']; |
|
| 285 | + $entity->node = (int)$data['node']; |
|
| 286 | 286 | $entity->dateCreated = new DateTime($data['date_created']); |
| 287 | 287 | $entity->entryLastModified = new DateTime($data['entry_last_modified']); |
| 288 | 288 | $entity->lastModified = new DateTime($data['last_modified']); |
| 289 | - $entity->okapiSyncbase = (int) $data['okapi_syncbase']; |
|
| 289 | + $entity->okapiSyncbase = (int)$data['okapi_syncbase']; |
|
| 290 | 290 | $entity->logLastModified = new DateTime($data['log_last_modified']); |
| 291 | - $entity->cacheId = (int) $data['cache_id']; |
|
| 292 | - $entity->userId = (int) $data['user_id']; |
|
| 293 | - $entity->type = (int) $data['type']; |
|
| 294 | - $entity->ocTeamComment = (bool) $data['oc_team_comment']; |
|
| 291 | + $entity->cacheId = (int)$data['cache_id']; |
|
| 292 | + $entity->userId = (int)$data['user_id']; |
|
| 293 | + $entity->type = (int)$data['type']; |
|
| 294 | + $entity->ocTeamComment = (bool)$data['oc_team_comment']; |
|
| 295 | 295 | $entity->date = new DateTime($data['date']); |
| 296 | 296 | $entity->orderDate = new DateTime($data['order_date']); |
| 297 | - $entity->needsMaintenance = (bool) $data['needs_maintenance']; |
|
| 298 | - $entity->listingOutdated = (bool) $data['listing_outdated']; |
|
| 297 | + $entity->needsMaintenance = (bool)$data['needs_maintenance']; |
|
| 298 | + $entity->listingOutdated = (bool)$data['listing_outdated']; |
|
| 299 | 299 | $entity->text = $data['text']; |
| 300 | - $entity->textHtml = (bool) $data['text_html']; |
|
| 301 | - $entity->textHtmledit = (bool) $data['text_htmledit']; |
|
| 302 | - $entity->ownerNotified = (bool) $data['owner_notified']; |
|
| 303 | - $entity->picture = (int) $data['picture']; |
|
| 300 | + $entity->textHtml = (bool)$data['text_html']; |
|
| 301 | + $entity->textHtmledit = (bool)$data['text_htmledit']; |
|
| 302 | + $entity->ownerNotified = (bool)$data['owner_notified']; |
|
| 303 | + $entity->picture = (int)$data['picture']; |
|
| 304 | 304 | |
| 305 | 305 | return $entity; |
| 306 | 306 | } |