@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php return array ( |
2 | - 'version_number' => 1687, |
|
3 | - 'git_revision' => 'a18bee1a2c15f4bea9015ee9648ff8e46adff809', |
|
2 | + 'version_number' => 1687, |
|
3 | + 'git_revision' => 'a18bee1a2c15f4bea9015ee9648ff8e46adff809', |
|
4 | 4 | ); |
5 | 5 | \ No newline at end of file |
@@ -1,4 +1,4 @@ |
||
1 | -<?php return array ( |
|
1 | +<?php return array( |
|
2 | 2 | 'version_number' => 1687, |
3 | 3 | 'git_revision' => 'a18bee1a2c15f4bea9015ee9648ff8e46adff809', |
4 | 4 | ); |
5 | 5 | \ No newline at end of file |
@@ -75,7 +75,7 @@ |
||
75 | 75 | |
76 | 76 | $sameLocale = $preferredLocale === $defaultLocale; |
77 | 77 | |
78 | - if(!$sameLocale && count($pageBlocks) === 0) { |
|
78 | + if (!$sameLocale && count($pageBlocks) === 0) { |
|
79 | 79 | //Fetch fallback if blocks are empty |
80 | 80 | $pageBlocks = $this->getPageBlocks( |
81 | 81 | $page, |
@@ -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 | } |