Completed
Pull Request — development (#720)
by Thomas
24:05
created
local/devel/Repositories/AttributeGroupsRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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.
local/devel/Repositories/OkapiClogRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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 OkapiClogEntity();
189
-        $entity->id = (int) $data['id'];
190
-        $entity->data = (string) $data['data'];
189
+        $entity->id = (int)$data['id'];
190
+        $entity->data = (string)$data['data'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/LanguagesListDefaultRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->lang = (int) $this->connection->lastInsertId();
124
+        $entity->lang = (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 LanguagesListDefaultEntity();
189
-        $entity->lang = (string) $data['lang'];
190
-        $entity->show = (string) $data['show'];
189
+        $entity->lang = (string)$data['lang'];
190
+        $entity->show = (string)$data['show'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheListWatchesRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->cacheListId = (int) $this->connection->lastInsertId();
124
+        $entity->cacheListId = (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 GeoCacheListWatchesEntity();
189
-        $entity->cacheListId = (int) $data['cache_list_id'];
190
-        $entity->userId = (int) $data['user_id'];
189
+        $entity->cacheListId = (int)$data['cache_list_id'];
190
+        $entity->userId = (int)$data['user_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/SysMenuRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 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
     }
@@ -199,19 +199,19 @@  discard block
 block discarded – undo
199 199
     {
200 200
         $entity = new SysMenuEntity();
201 201
         $entity->id = $data['id'];
202
-        $entity->idString = (string) $data['id_string'];
203
-        $entity->title = (string) $data['title'];
204
-        $entity->titleTransId = (int) $data['title_trans_id'];
205
-        $entity->menustring = (string) $data['menustring'];
206
-        $entity->menustringTransId = (int) $data['menustring_trans_id'];
207
-        $entity->access = (int) $data['access'];
208
-        $entity->href = (string) $data['href'];
209
-        $entity->visible = (int) $data['visible'];
202
+        $entity->idString = (string)$data['id_string'];
203
+        $entity->title = (string)$data['title'];
204
+        $entity->titleTransId = (int)$data['title_trans_id'];
205
+        $entity->menustring = (string)$data['menustring'];
206
+        $entity->menustringTransId = (int)$data['menustring_trans_id'];
207
+        $entity->access = (int)$data['access'];
208
+        $entity->href = (string)$data['href'];
209
+        $entity->visible = (int)$data['visible'];
210 210
         $entity->parent = $data['parent'];
211
-        $entity->position = (int) $data['position'];
212
-        $entity->color = (string) $data['color'];
213
-        $entity->sitemap = (int) $data['sitemap'];
214
-        $entity->onlyIfParent = (int) $data['only_if_parent'];
211
+        $entity->position = (int)$data['position'];
212
+        $entity->color = (string)$data['color'];
213
+        $entity->sitemap = (int)$data['sitemap'];
214
+        $entity->onlyIfParent = (int)$data['only_if_parent'];
215 215
 
216 216
         return $entity;
217 217
     }
Please login to merge, or discard this patch.
local/devel/Repositories/GeodbIntdataRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 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->locId = (int) $this->connection->lastInsertId();
124
+        $entity->locId = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -192,14 +192,14 @@  discard block
 block discarded – undo
192 192
     public function getEntityFromDatabaseArray(array $data)
193 193
     {
194 194
         $entity = new GeodbIntdataEntity();
195
-        $entity->locId = (int) $data['loc_id'];
196
-        $entity->intVal = (int) $data['int_val'];
197
-        $entity->intType = (int) $data['int_type'];
198
-        $entity->intSubtype = (int) $data['int_subtype'];
199
-        $entity->validSince =  new DateTime($data['valid_since']);
200
-        $entity->dateTypeSince = (int) $data['date_type_since'];
201
-        $entity->validUntil =  new DateTime($data['valid_until']);
202
-        $entity->dateTypeUntil = (int) $data['date_type_until'];
195
+        $entity->locId = (int)$data['loc_id'];
196
+        $entity->intVal = (int)$data['int_val'];
197
+        $entity->intType = (int)$data['int_type'];
198
+        $entity->intSubtype = (int)$data['int_subtype'];
199
+        $entity->validSince = new DateTime($data['valid_since']);
200
+        $entity->dateTypeSince = (int)$data['date_type_since'];
201
+        $entity->validUntil = new DateTime($data['valid_until']);
202
+        $entity->dateTypeUntil = (int)$data['date_type_until'];
203 203
 
204 204
         return $entity;
205 205
     }
Please login to merge, or discard this patch.
local/devel/Repositories/UserDelegatesRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->userId = (int) $this->connection->lastInsertId();
124
+        $entity->userId = (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 UserDelegatesEntity();
190
-        $entity->userId = (int) $data['user_id'];
191
-        $entity->node = (int) $data['node'];
192
-        $entity->dateCreated =  new DateTime($data['date_created']);
190
+        $entity->userId = (int)$data['user_id'];
191
+        $entity->node = (int)$data['node'];
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/SysTransRefRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->transId = (int) $this->connection->lastInsertId();
124
+        $entity->transId = (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 SysTransRefEntity();
190
-        $entity->transId = (int) $data['trans_id'];
191
-        $entity->resourceName = (string) $data['resource_name'];
192
-        $entity->line = (int) $data['line'];
190
+        $entity->transId = (int)$data['trans_id'];
191
+        $entity->resourceName = (string)$data['resource_name'];
192
+        $entity->line = (int)$data['line'];
193 193
 
194 194
         return $entity;
195 195
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiStatsTempRepository.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     public function fetchOneBy(array $where = [])
51 51
     {
52 52
         $queryBuilder = $this->connection->createQueryBuilder()
53
-                     ->select('*')
54
-                     ->from(self::TABLE)
55
-                     ->setMaxResults(1);
53
+                        ->select('*')
54
+                        ->from(self::TABLE)
55
+                        ->setMaxResults(1);
56 56
 
57 57
         if (count($where) > 0) {
58 58
             foreach ($where as $column => $value) {
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     public function fetchBy(array $where = [])
79 79
     {
80 80
         $queryBuilder = $this->connection->createQueryBuilder()
81
-                     ->select('*')
82
-                     ->from(self::TABLE);
81
+                        ->select('*')
82
+                        ->from(self::TABLE);
83 83
 
84 84
         if (count($where) > 0) {
85 85
             foreach ($where as $column => $value) {
Please login to merge, or discard this 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->datetime = (int) $this->connection->lastInsertId();
124
+        $entity->datetime = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -190,10 +190,10 @@  discard block
 block discarded – undo
190 190
     public function getEntityFromDatabaseArray(array $data)
191 191
     {
192 192
         $entity = new OkapiStatsTempEntity();
193
-        $entity->datetime =  new DateTime($data['datetime']);
194
-        $entity->consumerKey = (string) $data['consumer_key'];
195
-        $entity->userId = (int) $data['user_id'];
196
-        $entity->serviceName = (string) $data['service_name'];
193
+        $entity->datetime = new DateTime($data['datetime']);
194
+        $entity->consumerKey = (string)$data['consumer_key'];
195
+        $entity->userId = (int)$data['user_id'];
196
+        $entity->serviceName = (string)$data['service_name'];
197 197
         $entity->calltype = $data['calltype'];
198 198
         $entity->runtime = $data['runtime'];
199 199
 
Please login to merge, or discard this patch.