@@ -410,7 +410,7 @@ discard block |
||
| 410 | 410 | $keysList = array(); |
| 411 | 411 | foreach ($keys as $k => $v) { |
| 412 | 412 | $v = $this->checkForNullValue($v); |
| 413 | - if (! is_numeric($v)) { |
|
| 413 | + if (!is_numeric($v)) { |
|
| 414 | 414 | $v = $this->connection->escape($v, $escape); |
| 415 | 415 | } |
| 416 | 416 | $keysList[] = $v; |
@@ -721,7 +721,7 @@ discard block |
||
| 721 | 721 | * |
| 722 | 722 | * @return string|null |
| 723 | 723 | */ |
| 724 | - protected function buildQueryPart($property, $command = ''){ |
|
| 724 | + protected function buildQueryPart($property, $command = '') { |
|
| 725 | 725 | if (!empty($this->{$property})) { |
| 726 | 726 | return $command . $this->{$property}; |
| 727 | 727 | } |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | * @param string $clause the clause type "IS NULL", "IS NOT NULLs" |
| 737 | 737 | * @return object the current DatabaseQueryBuilder instance |
| 738 | 738 | */ |
| 739 | - protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL'){ |
|
| 739 | + protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL') { |
|
| 740 | 740 | if (is_array($field)) { |
| 741 | 741 | foreach ($field as $f) { |
| 742 | 742 | $this->whereIsNullAndNotNull($f, $andOr, $clause); |
@@ -754,7 +754,7 @@ discard block |
||
| 754 | 754 | * |
| 755 | 755 | * @return object the current instance |
| 756 | 756 | */ |
| 757 | - protected function setSelectStr($newSelect){ |
|
| 757 | + protected function setSelectStr($newSelect) { |
|
| 758 | 758 | $this->select = (($this->select == '*' || empty($this->select)) |
| 759 | 759 | ? $newSelect |
| 760 | 760 | : $this->select . ', ' . $newSelect); |
@@ -768,8 +768,8 @@ discard block |
||
| 768 | 768 | * @return string the empty string if the value is null |
| 769 | 769 | * otherwise the same value will be returned |
| 770 | 770 | */ |
| 771 | - protected function checkForNullValue($value){ |
|
| 772 | - if(is_null($value)){ |
|
| 771 | + protected function checkForNullValue($value) { |
|
| 772 | + if (is_null($value)) { |
|
| 773 | 773 | return ''; |
| 774 | 774 | } |
| 775 | 775 | return $value; |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | * |
| 797 | 797 | * @return string |
| 798 | 798 | */ |
| 799 | - protected function getWhereStrForOperator($where, $op = null, $value= null, $type = '', $escape = true) { |
|
| 799 | + protected function getWhereStrForOperator($where, $op = null, $value = null, $type = '', $escape = true) { |
|
| 800 | 800 | $w = ''; |
| 801 | 801 | if (!in_array((string) $op, $this->operatorList)) { |
| 802 | 802 | $op = $this->checkForNullValue($op); |