@@ -35,6 +35,6 @@ |
||
| 35 | 35 | |
| 36 | 36 | protected function getValue($value) |
| 37 | 37 | { |
| 38 | - return (int) $value; |
|
| 38 | + return (int)$value; |
|
| 39 | 39 | } |
| 40 | 40 | } |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | $str = ''; |
| 200 | 200 | |
| 201 | 201 | ftsearch_load_ignores(); |
| 202 | - for ($i = count($astr) - 1; $i >= 0; $i --) { |
|
| 202 | + for ($i = count($astr) - 1; $i >= 0; $i--) { |
|
| 203 | 203 | // ignore? |
| 204 | 204 | if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) { |
| 205 | 205 | unset($astr[$i]); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | |
| 255 | 255 | // doppelte chars ersetzen |
| 256 | 256 | $ordZ = ord('z'); |
| 257 | - for ($c = ord('a'); $c <= $ordZ; $c ++) { |
|
| 257 | + for ($c = ord('a'); $c <= $ordZ; $c++) { |
|
| 258 | 258 | $old_str = ''; |
| 259 | 259 | while ($old_str !== $str) { |
| 260 | 260 | $old_str = $str; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $pidDaemon = fgets($pidFile, 20); |
| 62 | 62 | fclose($pidFile); |
| 63 | 63 | |
| 64 | - $pidDaemon = (int) $pidDaemon; |
|
| 64 | + $pidDaemon = (int)$pidDaemon; |
|
| 65 | 65 | |
| 66 | 66 | // bad PID file, e.g. due to system malfunction while creating the file? |
| 67 | 67 | if ($pidDaemon <= 0) { |
@@ -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 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $databaseArray |
| 90 | 90 | ); |
| 91 | 91 | |
| 92 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 92 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 93 | 93 | |
| 94 | 94 | return $entity; |
| 95 | 95 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | ['id' => $entity->id] |
| 117 | 117 | ); |
| 118 | 118 | |
| 119 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 119 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 120 | 120 | |
| 121 | 121 | return $entity; |
| 122 | 122 | } |
@@ -175,13 +175,13 @@ discard block |
||
| 175 | 175 | public function getEntityFromDatabaseArray(array $data) |
| 176 | 176 | { |
| 177 | 177 | $entity = new PageEntity(); |
| 178 | - $entity->id = (int) $data['id']; |
|
| 178 | + $entity->id = (int)$data['id']; |
|
| 179 | 179 | $entity->slug = $data['slug']; |
| 180 | 180 | $entity->metaKeywords = $data['meta_keywords']; |
| 181 | 181 | $entity->metaDescription = $data['meta_description']; |
| 182 | 182 | $entity->metaSocial = $data['meta_social']; |
| 183 | 183 | $entity->updatedAt = new DateTime($data['updated_at']); |
| 184 | - $entity->active = (bool) $data['active']; |
|
| 184 | + $entity->active = (bool)$data['active']; |
|
| 185 | 185 | |
| 186 | 186 | return $entity; |
| 187 | 187 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $databaseArray |
| 94 | 94 | ); |
| 95 | 95 | |
| 96 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 96 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 97 | 97 | |
| 98 | 98 | return $entity; |
| 99 | 99 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | ['id' => $entity->id] |
| 121 | 121 | ); |
| 122 | 122 | |
| 123 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
| 123 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
| 124 | 124 | |
| 125 | 125 | return $entity; |
| 126 | 126 | } |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | 'page_id' => $entity->pageId, |
| 164 | 164 | 'title' => $entity->title, |
| 165 | 165 | 'html' => $entity->html, |
| 166 | - 'position' => (int) $entity->position, |
|
| 166 | + 'position' => (int)$entity->position, |
|
| 167 | 167 | 'updated_at' => $entity->updatedAt->format(DateTime::ATOM), |
| 168 | 168 | 'active' => $entity->active, |
| 169 | 169 | ]; |
@@ -179,13 +179,13 @@ discard block |
||
| 179 | 179 | public function getEntityFromDatabaseArray(array $data) |
| 180 | 180 | { |
| 181 | 181 | $entity = new BlockEntity(); |
| 182 | - $entity->id = (int) $data['id']; |
|
| 183 | - $entity->pageId = (int) $data['page_id']; |
|
| 182 | + $entity->id = (int)$data['id']; |
|
| 183 | + $entity->pageId = (int)$data['page_id']; |
|
| 184 | 184 | $entity->title = $data['title']; |
| 185 | 185 | $entity->html = $data['html']; |
| 186 | - $entity->position = (int) $data['position']; |
|
| 186 | + $entity->position = (int)$data['position']; |
|
| 187 | 187 | $entity->updatedAt = new DateTime($data['updated_at']); |
| 188 | - $entity->active = (bool) $data['active']; |
|
| 188 | + $entity->active = (bool)$data['active']; |
|
| 189 | 189 | |
| 190 | 190 | return $entity; |
| 191 | 191 | } |
@@ -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; |