Completed
Pull Request — development (#718)
by Nick
25:19 queued 20:10
created
htdocs/okapi/meta.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
htdocs/src/Oc/Page/PageProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
htdocs/src/Oc/Page/Persistence/PageRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Page/Persistence/BlockRepository.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.