Completed
Pull Request — development (#546)
by Nick
06:21
created
htdocs/src/Oc/Page/BlockRepository.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         if (count($where) > 0) {
52 52
             foreach ($where as $column => $value) {
53
-                $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
53
+                $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
54 54
             }
55 55
         }
56 56
 
@@ -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
 
99 99
     /**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             ['id' => $entity->id]
120 120
         );
121 121
 
122
-        $entity->id = (int) $this->connection->lastInsertId();
122
+        $entity->id = (int)$this->connection->lastInsertId();
123 123
 
124 124
         return $entity;
125 125
     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             'page_id' => $entity->pageId,
167 167
             'title' => $entity->title,
168 168
             'html' => $entity->html,
169
-            'position' => (int) $entity->position,
169
+            'position' => (int)$entity->position,
170 170
             'updated_at' => $entity->updatedAt->format(DateTime::ATOM),
171 171
             'active' => $entity->active
172 172
         ];
@@ -182,13 +182,13 @@  discard block
 block discarded – undo
182 182
     public function getEntityFromDatabaseArray(array $data)
183 183
     {
184 184
         $entity = new BlockEntity();
185
-        $entity->id = (int) $data['id'];
186
-        $entity->pageId = (int) $data['page_id'];
187
-        $entity->title = (string) $data['title'];
188
-        $entity->html = (string) $data['html'];
189
-        $entity->position = (int) $data['position'];
185
+        $entity->id = (int)$data['id'];
186
+        $entity->pageId = (int)$data['page_id'];
187
+        $entity->title = (string)$data['title'];
188
+        $entity->html = (string)$data['html'];
189
+        $entity->position = (int)$data['position'];
190 190
         $entity->updatedAt = new DateTime($data['updated_at']);
191
-        $entity->active = (bool) $data['active'];
191
+        $entity->active = (bool)$data['active'];
192 192
 
193 193
         return $entity;
194 194
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Page/PageRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         if (count($where) > 0) {
54 54
             foreach ($where as $column => $value) {
55
-                $queryBuilder->andWhere($column . ' = ' .  $queryBuilder->createNamedParameter($value));
55
+                $queryBuilder->andWhere($column . ' = ' . $queryBuilder->createNamedParameter($value));
56 56
             }
57 57
         }
58 58
 
@@ -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
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             ['id' => $entity->id]
118 118
         );
119 119
 
120
-        $entity->id = (int) $this->connection->lastInsertId();
120
+        $entity->id = (int)$this->connection->lastInsertId();
121 121
 
122 122
         return $entity;
123 123
     }
@@ -180,13 +180,13 @@  discard block
 block discarded – undo
180 180
     public function getEntityFromDatabaseArray(array $data)
181 181
     {
182 182
         $entity = new PageEntity();
183
-        $entity->id = (int) $data['id'];
184
-        $entity->slug = (string) $data['slug'];
185
-        $entity->metaKeywords = (string) $data['meta_keywords'];
186
-        $entity->metaDescription = (string) $data['meta_description'];
187
-        $entity->metaSocial = (string) $data['meta_social'];
183
+        $entity->id = (int)$data['id'];
184
+        $entity->slug = (string)$data['slug'];
185
+        $entity->metaKeywords = (string)$data['meta_keywords'];
186
+        $entity->metaDescription = (string)$data['meta_description'];
187
+        $entity->metaSocial = (string)$data['meta_social'];
188 188
         $entity->updatedAt = new DateTime($data['updated_at']);
189
-        $entity->active = (bool) $data['active'];
189
+        $entity->active = (bool)$data['active'];
190 190
 
191 191
         return $entity;
192 192
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/Country/CountryRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -175,15 +175,15 @@
 block discarded – undo
175 175
     public function getEntityFromDatabaseArray(array $data)
176 176
     {
177 177
         $entity = new CountryEntity();
178
-        $entity->short = (string) $data['short'];
179
-        $entity->name = (string) $data['name'];
180
-        $entity->de = (string) $data['de'];
181
-        $entity->en = (string) $data['en'];
182
-        $entity->translationId = (int) $data['trans_id'];
183
-        $entity->listDefaultDe = (bool) $data['list_default_de'];
184
-        $entity->listDefaultEn = (bool) $data['list_default_en'];
185
-        $entity->sortDe = (string) $data['sort_de'];
186
-        $entity->sortEn = (string) $data['sort_en'];
178
+        $entity->short = (string)$data['short'];
179
+        $entity->name = (string)$data['name'];
180
+        $entity->de = (string)$data['de'];
181
+        $entity->en = (string)$data['en'];
182
+        $entity->translationId = (int)$data['trans_id'];
183
+        $entity->listDefaultDe = (bool)$data['list_default_de'];
184
+        $entity->listDefaultEn = (bool)$data['list_default_en'];
185
+        $entity->sortDe = (string)$data['sort_de'];
186
+        $entity->sortEn = (string)$data['sort_en'];
187 187
 
188 188
         return $entity;
189 189
     }
Please login to merge, or discard this patch.
htdocs/src/Oc/User/UserRepository.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $databaseArray
104 104
         );
105 105
 
106
-        $entity->id = (int) $this->connection->lastInsertId();
106
+        $entity->id = (int)$this->connection->lastInsertId();
107 107
 
108 108
         return $entity;
109 109
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             ['id' => $entity->id]
132 132
         );
133 133
 
134
-        $entity->id = (int) $this->connection->lastInsertId();
134
+        $entity->id = (int)$this->connection->lastInsertId();
135 135
 
136 136
         return $entity;
137 137
     }
@@ -216,16 +216,16 @@  discard block
 block discarded – undo
216 216
     public function getEntityFromDatabaseArray(array $data)
217 217
     {
218 218
         $entity = new UserEntity();
219
-        $entity->id = (int) $data['user_id'];
220
-        $entity->username = (string) $data['username'];
221
-        $entity->password = (string) $data['password'];
222
-        $entity->email = (string) $data['email'];
223
-        $entity->latitude = (double) $data['latitude'];
224
-        $entity->longitude = (double) $data['longitude'];
225
-        $entity->isActive = (bool) $data['is_active_flag'];
226
-        $entity->firstname = (string) $data['first_name'];
227
-        $entity->lastname = (string) $data['last_name'];
228
-        $entity->country = (string) $data['country'];
219
+        $entity->id = (int)$data['user_id'];
220
+        $entity->username = (string)$data['username'];
221
+        $entity->password = (string)$data['password'];
222
+        $entity->email = (string)$data['email'];
223
+        $entity->latitude = (double)$data['latitude'];
224
+        $entity->longitude = (double)$data['longitude'];
225
+        $entity->isActive = (bool)$data['is_active_flag'];
226
+        $entity->firstname = (string)$data['first_name'];
227
+        $entity->lastname = (string)$data['last_name'];
228
+        $entity->country = (string)$data['country'];
229 229
         $entity->language = strtolower($data['language']);
230 230
 
231 231
         return $entity;
Please login to merge, or discard this patch.
htdocs/src/Oc/Language/LanguageRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -211,15 +211,15 @@
 block discarded – undo
211 211
     public function getEntityFromDatabaseArray(array $data)
212 212
     {
213 213
         $entity = new LanguageEntity();
214
-        $entity->short = (string) strtolower($data['short']);
215
-        $entity->name = (string) $data['name'];
216
-        $entity->nativeName = (string) $data['native_name'];
217
-        $entity->de = (string) $data['de'];
218
-        $entity->en = (string) $data['en'];
219
-        $entity->translationId = (int) $data['trans_id'];
220
-        $entity->listDefaultDe = (bool) $data['list_default_de'];
221
-        $entity->listDefaultEn = (bool) $data['list_default_en'];
222
-        $entity->isTranslated = (bool) $data['is_translated'];
214
+        $entity->short = (string)strtolower($data['short']);
215
+        $entity->name = (string)$data['name'];
216
+        $entity->nativeName = (string)$data['native_name'];
217
+        $entity->de = (string)$data['de'];
218
+        $entity->en = (string)$data['en'];
219
+        $entity->translationId = (int)$data['trans_id'];
220
+        $entity->listDefaultDe = (bool)$data['list_default_de'];
221
+        $entity->listDefaultEn = (bool)$data['list_default_en'];
222
+        $entity->isTranslated = (bool)$data['is_translated'];
223 223
 
224 224
         return $entity;
225 225
     }
Please login to merge, or discard this patch.