Completed
Pull Request — master (#242)
by
unknown
03:37
created
src/DataSource/DoctrineDataSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			return $column;
67 67
 		}
68 68
 
69
-		return current($this->data_source->getRootAliases()) . '.' . $column;
69
+		return current($this->data_source->getRootAliases()).'.'.$column;
70 70
 	}
71 71
 
72 72
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
 			$c = $this->checkAliases($column);
219 219
 
220
-			if($filter->isExact()){
220
+			if ($filter->isExact()) {
221 221
 				$exprs[] = $this->data_source->expr()->eq($c, $this->data_source->expr()->eq($value));
222 222
 				continue;
223 223
 			}
Please login to merge, or discard this patch.
src/DataSource/DibiFluentMssqlDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 		$or = [];
123 123
 
124 124
 		foreach ($condition as $column => $value) {
125
-			if($filter->isExact()){
125
+			if ($filter->isExact()) {
126 126
 				$this->data_source->where("$column = %s", $value);
127 127
 				continue;
128 128
 			}
Please login to merge, or discard this patch.
src/DataSource/NetteDatabaseTableDataSource.php 1 patch
Spacing   +7 added lines, -7 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
 
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
 			$like = '(';
172 172
 			$args = [];
173 173
 
174
-			if($filter->isExact()){
175
-				$like .=  "$column = ? ";
174
+			if ($filter->isExact()) {
175
+				$like .= "$column = ? ";
176 176
 				$args[] = "$value";
177 177
 			} else {
178 178
 				$words = explode(' ', $value);
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 					$like .= "$column LIKE ? OR ";
181 181
 					$args[] = "%$word%";
182 182
 				}
183
-				$like = substr($like, 0, strlen($like) - 4) . ')';
183
+				$like = substr($like, 0, strlen($like) - 4).')';
184 184
 			}
185 185
 			$or[] = $like;
186 186
 			$big_or .= "$like OR ";
@@ -218,9 +218,9 @@  discard block
 block discarded – undo
218 218
 		
219 219
 			foreach ($values as $value) {
220 220
 				if ($i == $length) {
221
-					$or .= $filter->getColumn() . ' = ?)';
221
+					$or .= $filter->getColumn().' = ?)';
222 222
 				} else {
223
-					$or .= $filter->getColumn() . ' = ? OR ';
223
+					$or .= $filter->getColumn().' = ? OR ';
224 224
 				}
225 225
 
226 226
 				$i++;
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
 			call_user_func_array([$this->data_source, 'where'], $values);
232 232
 		} else {
233
-			$this->data_source->where($filter->getColumn() . ' = ?', reset($values));
233
+			$this->data_source->where($filter->getColumn().' = ?', reset($values));
234 234
 		}
235 235
 	}
236 236
 
Please login to merge, or discard this patch.
src/DataSource/DibiFluentDataSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 		$or = [];
123 123
 
124 124
 		foreach ($condition as $column => $value) {
125
-			if($filter->isExact()){
125
+			if ($filter->isExact()) {
126 126
 				$this->data_source->where("$column = %s", $value);
127 127
 				continue;
128 128
 			}
Please login to merge, or discard this patch.