Completed
Pull Request — development (#720)
by Thomas
24:05
created
local/devel/Repositories/SysCronRepository.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->name = (int) $this->connection->lastInsertId();
124
+        $entity->name = (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 SysCronEntity();
189
-        $entity->name = (string) $data['name'];
190
-        $entity->lastRun =  new DateTime($data['last_run']);
189
+        $entity->name = (string)$data['name'];
190
+        $entity->lastRun = new DateTime($data['last_run']);
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/QueriesRepository.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   +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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (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 QueriesEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->userId = (int) $data['user_id'];
194
-        $entity->name = (string) $data['name'];
195
-        $entity->options = (string) $data['options'];
196
-        $entity->lastQueried =  new DateTime($data['last_queried']);
192
+        $entity->id = (int)$data['id'];
193
+        $entity->userId = (int)$data['user_id'];
194
+        $entity->name = (string)$data['name'];
195
+        $entity->options = (string)$data['options'];
196
+        $entity->lastQueried = new DateTime($data['last_queried']);
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/OkapiSearchSetsRepository.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 OkapiSearchSetsEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->paramsHash = (string) $data['params_hash'];
193
-        $entity->dateCreated =  new DateTime($data['date_created']);
194
-        $entity->expires =  new DateTime($data['expires']);
191
+        $entity->id = (int)$data['id'];
192
+        $entity->paramsHash = (string)$data['params_hash'];
193
+        $entity->dateCreated = new DateTime($data['date_created']);
194
+        $entity->expires = new DateTime($data['expires']);
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheCountriesRepository.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   +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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (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 GeoCacheCountriesEntity();
192
-        $entity->id = (int) $data['id'];
193
-        $entity->dateCreated =  new DateTime($data['date_created']);
194
-        $entity->cacheId = (int) $data['cache_id'];
195
-        $entity->country = (string) $data['country'];
196
-        $entity->restoredBy = (int) $data['restored_by'];
192
+        $entity->id = (int)$data['id'];
193
+        $entity->dateCreated = new DateTime($data['date_created']);
194
+        $entity->cacheId = (int)$data['cache_id'];
195
+        $entity->country = (string)$data['country'];
196
+        $entity->restoredBy = (int)$data['restored_by'];
197 197
 
198 198
         return $entity;
199 199
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheDescModifiedRepository.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   +11 added lines, -11 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
     }
@@ -194,16 +194,16 @@  discard block
 block discarded – undo
194 194
     public function getEntityFromDatabaseArray(array $data)
195 195
     {
196 196
         $entity = new GeoCacheDescModifiedEntity();
197
-        $entity->cacheId = (int) $data['cache_id'];
198
-        $entity->language = (string) $data['language'];
199
-        $entity->dateModified =  new DateTime($data['date_modified']);
200
-        $entity->dateCreated =  new DateTime($data['date_created']);
201
-        $entity->desc = (string) $data['desc'];
202
-        $entity->descHtml = (int) $data['desc_html'];
203
-        $entity->descHtmledit = (int) $data['desc_htmledit'];
204
-        $entity->hint = (string) $data['hint'];
205
-        $entity->shortDesc = (string) $data['short_desc'];
206
-        $entity->restoredBy = (int) $data['restored_by'];
197
+        $entity->cacheId = (int)$data['cache_id'];
198
+        $entity->language = (string)$data['language'];
199
+        $entity->dateModified = new DateTime($data['date_modified']);
200
+        $entity->dateCreated = new DateTime($data['date_created']);
201
+        $entity->desc = (string)$data['desc'];
202
+        $entity->descHtml = (int)$data['desc_html'];
203
+        $entity->descHtmledit = (int)$data['desc_htmledit'];
204
+        $entity->hint = (string)$data['hint'];
205
+        $entity->shortDesc = (string)$data['short_desc'];
206
+        $entity->restoredBy = (int)$data['restored_by'];
207 207
 
208 208
         return $entity;
209 209
     }
Please login to merge, or discard this patch.
local/devel/Repositories/AttributeCategoriesRepository.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 AttributeCategoriesEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->name = (string) $data['name'];
193
-        $entity->transId = (int) $data['trans_id'];
194
-        $entity->color = (string) $data['color'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->name = (string)$data['name'];
193
+        $entity->transId = (int)$data['trans_id'];
194
+        $entity->color = (string)$data['color'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.
local/devel/Repositories/CacheListItemsRepository.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 GeoCacheListItemsEntity();
189
-        $entity->cacheListId = (int) $data['cache_list_id'];
190
-        $entity->cacheId = (int) $data['cache_id'];
189
+        $entity->cacheListId = (int)$data['cache_list_id'];
190
+        $entity->cacheId = (int)$data['cache_id'];
191 191
 
192 192
         return $entity;
193 193
     }
Please login to merge, or discard this patch.
local/devel/Repositories/FieldNoteRepository.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   +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->id = (int) $this->connection->lastInsertId();
124
+        $entity->id = (int)$this->connection->lastInsertId();
125 125
 
126 126
         return $entity;
127 127
     }
@@ -190,12 +190,12 @@  discard block
 block discarded – undo
190 190
     public function getEntityFromDatabaseArray(array $data)
191 191
     {
192 192
         $entity = new FieldNoteEntity();
193
-        $entity->id = (int) $data['id'];
194
-        $entity->userId = (int) $data['user_id'];
195
-        $entity->geocacheId = (int) $data['geocache_id'];
193
+        $entity->id = (int)$data['id'];
194
+        $entity->userId = (int)$data['user_id'];
195
+        $entity->geocacheId = (int)$data['geocache_id'];
196 196
         $entity->type = $data['type'];
197
-        $entity->date =  new DateTime($data['date']);
198
-        $entity->text = (string) $data['text'];
197
+        $entity->date = new DateTime($data['date']);
198
+        $entity->text = (string)$data['text'];
199 199
 
200 200
         return $entity;
201 201
     }
Please login to merge, or discard this patch.
local/devel/Repositories/NodesRepository.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 NodesEntity();
191
-        $entity->id = (int) $data['id'];
192
-        $entity->name = (string) $data['name'];
193
-        $entity->url = (string) $data['url'];
194
-        $entity->waypointPrefix = (string) $data['waypoint_prefix'];
191
+        $entity->id = (int)$data['id'];
192
+        $entity->name = (string)$data['name'];
193
+        $entity->url = (string)$data['url'];
194
+        $entity->waypointPrefix = (string)$data['waypoint_prefix'];
195 195
 
196 196
         return $entity;
197 197
     }
Please login to merge, or discard this patch.