Completed
Pull Request — master (#220)
by Roman
02:49
created
src/DataSource/NetteDatabaseTableDataSource.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 		}
61 61
 
62 62
 		return $this->data_source->count(
63
-			$this->data_source->getName() . '.' . (is_array($primary) ? reset($primary) : $primary)
63
+			$this->data_source->getName().'.'.(is_array($primary) ? reset($primary) : $primary)
64 64
 		);
65 65
 	}
66 66
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	{
85 85
 		foreach ($condition as $col => $value) {
86 86
 			if (strpos($col, '.') === FALSE) {
87
-				$condition[$this->data_source->getName() . '.' . $col] = $value;
87
+				$condition[$this->data_source->getName().'.'.$col] = $value;
88 88
 				unset($condition[$col]);
89 89
 			}
90 90
 		}
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
 		
222 222
 			foreach ($values as $value) {
223 223
 				if ($i == $length) {
224
-					$or .= $filter->getColumn() . ' = ?)';
224
+					$or .= $filter->getColumn().' = ?)';
225 225
 				} else {
226
-					$or .= $filter->getColumn() . ' = ? OR ';
226
+					$or .= $filter->getColumn().' = ? OR ';
227 227
 				}
228 228
 
229 229
 				$i++;
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
 			call_user_func_array([$this->data_source, 'where'], $values);
235 235
 		} else {
236
-			$this->data_source->where($filter->getColumn() . ' = ?', reset($values));
236
+			$this->data_source->where($filter->getColumn().' = ?', reset($values));
237 237
 		}
238 238
 	}
239 239
 
Please login to merge, or discard this patch.