@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected static function concatenate($strings, $delimiter = ' ') |
44 | 44 | { |
45 | - $strings = array_filter($strings, function ($value) { |
|
45 | + $strings = array_filter($strings, function($value) { |
|
46 | 46 | return !empty($value); |
47 | 47 | }); |
48 | 48 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | $type = $storageQuery->type; |
77 | 77 | |
78 | - $method = 'translate' . ucfirst($type); |
|
78 | + $method = 'translate'.ucfirst($type); |
|
79 | 79 | |
80 | 80 | if (!method_exists($this, $method)) { |
81 | 81 | throw new InvalidArgumentException("Could not translate query of unknown type '$type'"); |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | protected function translateTranslatable($query) |
245 | 245 | { |
246 | 246 | if (!$this->translatable($query)) { |
247 | - throw new InvalidArgumentException("Cannot translate query of type '" . get_class($query) . "'"); |
|
247 | + throw new InvalidArgumentException("Cannot translate query of type '".get_class($query)."'"); |
|
248 | 248 | } |
249 | 249 | |
250 | 250 | if ($query instanceof Storage\Query\Builder) { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | protected function prepareJoinType($type) |
437 | 437 | { |
438 | 438 | if (in_array($type, array('left', 'right'))) { |
439 | - return strtoupper($type) . ' JOIN'; |
|
439 | + return strtoupper($type).' JOIN'; |
|
440 | 440 | } |
441 | 441 | |
442 | 442 | return 'JOIN'; |
@@ -567,7 +567,7 @@ discard block |
||
567 | 567 | } |
568 | 568 | |
569 | 569 | if (is_array($value)) { |
570 | - $value = "(" . implode(", ", $value) . ")"; |
|
570 | + $value = "(".implode(", ", $value).")"; |
|
571 | 571 | } |
572 | 572 | |
573 | 573 | return "$column $operator $value"; |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | |
588 | 588 | foreach ($filter as $column => $value) { |
589 | 589 | if (strtolower($column) == 'or') { |
590 | - $conditions[] = '(' . $this->prepareWhere($value, 'OR', true) . ')'; |
|
590 | + $conditions[] = '('.$this->prepareWhere($value, 'OR', true).')'; |
|
591 | 591 | } else { |
592 | 592 | $conditions[] = $this->prepareFilterCondition($column, $value); |
593 | 593 | } |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | } |
667 | 667 | } |
668 | 668 | |
669 | - return count($conditions) ? 'ORDER BY ' . implode(', ', $conditions) : null; |
|
669 | + return count($conditions) ? 'ORDER BY '.implode(', ', $conditions) : null; |
|
670 | 670 | } |
671 | 671 | |
672 | 672 | /** |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | */ |
687 | 687 | protected function prepareGroupBy(array $groupings) |
688 | 688 | { |
689 | - return count($groupings) ? 'GROUP BY ' . implode(', ', $this->identifier($groupings)) : null; |
|
689 | + return count($groupings) ? 'GROUP BY '.implode(', ', $this->identifier($groupings)) : null; |
|
690 | 690 | } |
691 | 691 | |
692 | 692 | /** |
@@ -751,8 +751,8 @@ discard block |
||
751 | 751 | $columns = $this->identifier(array_keys($data)); |
752 | 752 | $values = $this->value(array_values($data)); |
753 | 753 | |
754 | - $columns = '(' . implode(', ', $columns) . ')'; |
|
755 | - $values = '(' . implode(', ', $values) . ')'; |
|
754 | + $columns = '('.implode(', ', $columns).')'; |
|
755 | + $values = '('.implode(', ', $values).')'; |
|
756 | 756 | |
757 | 757 | return static::concatenate(array('INSERT INTO', $table, $columns, 'VALUES', $values)); |
758 | 758 | } |
@@ -772,7 +772,7 @@ discard block |
||
772 | 772 | |
773 | 773 | if (!empty($columns)) { |
774 | 774 | $columns = $this->identifier($columns); |
775 | - $columns = "(" . implode(", ", $columns) . ")"; |
|
775 | + $columns = "(".implode(", ", $columns).")"; |
|
776 | 776 | } |
777 | 777 | |
778 | 778 | $subquery = (string) $this->translate($subquery); |