Passed
Pull Request — master (#70)
by Christian
01:42 queued 19s
created
Maphper/DataSource/DatabaseOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	}
25 25
 
26 26
 	public function getCacheMode() {
27
-		return (int) ($this->options['cachemode'] ?? 0);
27
+		return (int)($this->options['cachemode'] ?? 0);
28 28
 	}
29 29
 
30 30
 	public function read($option) {
Please login to merge, or discard this patch.
Maphper/DataSource/DatabaseSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
     public function updateCache($data, $pkValue) {
129 129
         if ($this->cacheMode >= 0) {
130
-  		    if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object) array_merge((array)$this->cache[$pkValue], (array)$data);
130
+  		    if (isset($this->cache[$pkValue])) $this->cache[$pkValue] = (object)array_merge((array)$this->cache[$pkValue], (array)$data);
131 131
   		    else $this->cache[$pkValue] = $data;
132 132
         }
133 133
     }
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
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
 		$this->primaryKey = is_array($primaryKey) ? $primaryKey : [$primaryKey];
20 20
 		$this->table = $table;
21 21
 
22
-		$this->fields = implode(',', array_map([$adapter, 'quote'], (array) $options->read('fields')));
22
+		$this->fields = implode(',', array_map([$adapter, 'quote'], (array)$options->read('fields')));
23 23
 
24
-		$defaultSort = $options->read('defaultSort') !== false ? $options->read('defaultSort')  : implode(', ', $this->primaryKey);
24
+		$defaultSort = $options->read('defaultSort') !== false ? $options->read('defaultSort') : implode(', ', $this->primaryKey);
25 25
 
26 26
         $databaseModify = new DatabaseModify($adapter, $options->getEditMode(), $table);
27 27
 
Please login to merge, or discard this patch.