Completed
Pull Request — development (#720)
by Thomas
06:42
created
local/devel/Repositories/SearchIndexRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->objectType = (int) $this->connection->lastInsertId();
124
+        $entity->objectType = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
     public function getEntityFromDatabaseArray(array $data)
189 189
     {
190 190
         $entity = new SearchIndexEntity();
191
-        $entity->objectType = (int) $data['object_type'];
192
-        $entity->cacheId = (int) $data['cache_id'];
193
-        $entity->hash = (int) $data['hash'];
194
-        $entity->count = (int) $data['count'];
191
+        $entity->objectType = (int)$data['object_type'];
192
+        $entity->cacheId = (int)$data['cache_id'];
193
+        $entity->hash = (int)$data['hash'];
194
+        $entity->count = (int)$data['count'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/HelppagesRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->ocpage = (int) $this->connection->lastInsertId();
124
+        $entity->ocpage = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     public function getEntityFromDatabaseArray(array $data)
188 188
     {
189 189
         $entity = new HelppagesEntity();
190
-        $entity->ocpage = (string) $data['ocpage'];
191
-        $entity->language = (string) $data['language'];
192
-        $entity->helppage = (string) $data['helppage'];
190
+        $entity->ocpage = (string)$data['ocpage'];
191
+        $entity->language = (string)$data['language'];
192
+        $entity->helppage = (string)$data['helppage'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheStatusModifiedRepository.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
     public function getEntityFromDatabaseArray(array $data)
190 190
     {
191 191
         $entity = new GeoCacheStatusModifiedEntity();
192
-        $entity->cacheId = (int) $data['cache_id'];
193
-        $entity->dateModified =  new DateTime($data['date_modified']);
194
-        $entity->oldState = (int) $data['old_state'];
195
-        $entity->newState = (int) $data['new_state'];
196
-        $entity->userId = (int) $data['user_id'];
192
+        $entity->cacheId = (int)$data['cache_id'];
193
+        $entity->dateModified = new DateTime($data['date_modified']);
194
+        $entity->oldState = (int)$data['old_state'];
195
+        $entity->newState = (int)$data['new_state'];
196
+        $entity->userId = (int)$data['user_id'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiCacheRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->key = (int) $this->connection->lastInsertId();
124
+        $entity->key = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
     public function getEntityFromDatabaseArray(array $data)
189 189
     {
190 190
         $entity = new OkapiCacheEntity();
191
-        $entity->key = (string) $data['key'];
191
+        $entity->key = (string)$data['key'];
192 192
         $entity->score = $data['score'];
193
-        $entity->expires =  new DateTime($data['expires']);
194
-        $entity->value = (string) $data['value'];
193
+        $entity->expires = new DateTime($data['expires']);
194
+        $entity->value = (string)$data['value'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GkItemTypeRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -186,8 +186,8 @@  discard block
 block discarded – undo
186 186
     public function getEntityFromDatabaseArray(array $data)
187 187
     {
188 188
         $entity = new GkItemTypeEntity();
189
-        $entity->id = (int) $data['id'];
190
-        $entity->name = (string) $data['name'];
189
+        $entity->id = (int)$data['id'];
190
+        $entity->name = (string)$data['name'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheAttribRepository.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -202,24 +202,24 @@  discard block
 block discarded – undo
202 202
     public function getEntityFromDatabaseArray(array $data)
203 203
     {
204 204
         $entity = new GeoCacheAttribEntity();
205
-        $entity->id = (int) $data['id'];
206
-        $entity->name = (string) $data['name'];
207
-        $entity->icon = (string) $data['icon'];
208
-        $entity->transId = (int) $data['trans_id'];
209
-        $entity->groupId = (int) $data['group_id'];
210
-        $entity->selectable = (int) $data['selectable'];
211
-        $entity->category = (int) $data['category'];
212
-        $entity->searchDefault = (int) $data['search_default'];
213
-        $entity->default = (int) $data['default'];
214
-        $entity->iconLarge = (string) $data['icon_large'];
215
-        $entity->iconNo = (string) $data['icon_no'];
216
-        $entity->iconUndef = (string) $data['icon_undef'];
217
-        $entity->htmlDesc = (string) $data['html_desc'];
218
-        $entity->htmlDescTransId = (int) $data['html_desc_trans_id'];
219
-        $entity->hidden = (int) $data['hidden'];
220
-        $entity->gcId = (int) $data['gc_id'];
221
-        $entity->gcInc = (int) $data['gc_inc'];
222
-        $entity->gcName = (string) $data['gc_name'];
205
+        $entity->id = (int)$data['id'];
206
+        $entity->name = (string)$data['name'];
207
+        $entity->icon = (string)$data['icon'];
208
+        $entity->transId = (int)$data['trans_id'];
209
+        $entity->groupId = (int)$data['group_id'];
210
+        $entity->selectable = (int)$data['selectable'];
211
+        $entity->category = (int)$data['category'];
212
+        $entity->searchDefault = (int)$data['search_default'];
213
+        $entity->default = (int)$data['default'];
214
+        $entity->iconLarge = (string)$data['icon_large'];
215
+        $entity->iconNo = (string)$data['icon_no'];
216
+        $entity->iconUndef = (string)$data['icon_undef'];
217
+        $entity->htmlDesc = (string)$data['html_desc'];
218
+        $entity->htmlDescTransId = (int)$data['html_desc_trans_id'];
219
+        $entity->hidden = (int)$data['hidden'];
220
+        $entity->gcId = (int)$data['gc_id'];
221
+        $entity->gcInc = (int)$data['gc_inc'];
222
+        $entity->gcName = (string)$data['gc_name'];
223 223
 
224 224
         return $entity;
225 225
     }
Please login to merge, or discard this patch.
local/devel/Repositories/NpaAreasRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -189,10 +189,10 @@  discard block
 block discarded – undo
189 189
     public function getEntityFromDatabaseArray(array $data)
190 190
     {
191 191
         $entity = new NpaAreasEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->typeId = (string) $data['type_id'];
194
-        $entity->exclude = (int) $data['exclude'];
195
-        $entity->name = (string) $data['name'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->typeId = (string)$data['type_id'];
194
+        $entity->exclude = (int)$data['exclude'];
195
+        $entity->name = (string)$data['name'];
196 196
         $entity->shape = $data['shape'];
197 197
 
198 198
         return $entity;
Please login to merge, or discard this patch.
local/devel/Repositories/CacheAdoptionRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->cacheId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
     public function getEntityFromDatabaseArray(array $data)
188 188
     {
189 189
         $entity = new GeoCacheAdoptionEntity();
190
-        $entity->cacheId = (int) $data['cache_id'];
191
-        $entity->userId = (int) $data['user_id'];
192
-        $entity->dateCreated =  new DateTime($data['date_created']);
190
+        $entity->cacheId = (int)$data['cache_id'];
191
+        $entity->userId = (int)$data['user_id'];
192
+        $entity->dateCreated = new DateTime($data['date_created']);
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/AttributeGroupsRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                     $databaseArray
122 122
                 );
123 123
 
124
-        $entity->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
     public function getEntityFromDatabaseArray(array $data)
189 189
     {
190 190
         $entity = new AttributeGroupsEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->categoryId = (int) $data['category_id'];
193
-        $entity->name = (string) $data['name'];
194
-        $entity->transId = (int) $data['trans_id'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->categoryId = (int)$data['category_id'];
193
+        $entity->name = (string)$data['name'];
194
+        $entity->transId = (int)$data['trans_id'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.