Passed
Push — master ( 269005...e9dd98 )
by Richard
01:51
created
maphper/datasource/DatabaseSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     }
95 95
 
96 96
     public function updateCache($data, $pkValue) {
97
-		if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object) array_merge((array)$this->cache[$pkValue], (array)$data);
97
+		if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object)array_merge((array)$this->cache[$pkValue], (array)$data);
98 98
 		else $this->cache[$pkValue] = $data;
99 99
     }
100 100
 
Please login to merge, or discard this patch.
maphper/datasource/database.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
 		$this->crudBuilder = new \Maphper\Lib\CrudBuilder();
28 28
         $this->whereBuilder = new \Maphper\Lib\Sql\WhereBuilder();
29 29
 
30
-		$this->fields = implode(',', array_map([$this->adapter, 'quote'], (array) $this->options->read('fields')));
30
+		$this->fields = implode(',', array_map([$this->adapter, 'quote'], (array)$this->options->read('fields')));
31 31
 
32
-		$this->defaultSort = $this->options->read('defaultSort') !== false ? $this->options->read('defaultSort')  : implode(', ', $this->primaryKey);
32
+		$this->defaultSort = $this->options->read('defaultSort') !== false ? $this->options->read('defaultSort') : implode(', ', $this->primaryKey);
33 33
 
34 34
         $this->databaseModify = new DatabaseModify($this->adapter, $this->options->getEditMode(), $this->table);
35 35
         $this->databaseSelect = new DatabaseSelect($this->adapter, $this->databaseModify, $this->table);
Please login to merge, or discard this patch.