@@ -781,12 +781,12 @@ |
||
| 781 | 781 | * |
| 782 | 782 | * @return string|null |
| 783 | 783 | */ |
| 784 | - protected function buildQueryPart($property, $command = ''){ |
|
| 784 | + protected function buildQueryPart($property, $command = ''){ |
|
| 785 | 785 | if (!empty($this->{$property})) { |
| 786 | 786 | return $command . $this->{$property}; |
| 787 | 787 | } |
| 788 | 788 | return null; |
| 789 | - } |
|
| 789 | + } |
|
| 790 | 790 | |
| 791 | 791 | |
| 792 | 792 | /** |
@@ -420,7 +420,7 @@ discard block |
||
| 420 | 420 | $_keys = array(); |
| 421 | 421 | foreach ($keys as $k => $v) { |
| 422 | 422 | $v = $this->checkForNullValue($v); |
| 423 | - if (! is_numeric($v)) { |
|
| 423 | + if (!is_numeric($v)) { |
|
| 424 | 424 | $v = $this->escape($v, $escape); |
| 425 | 425 | } |
| 426 | 426 | $_keys[] = $v; |
@@ -781,7 +781,7 @@ discard block |
||
| 781 | 781 | * |
| 782 | 782 | * @return string|null |
| 783 | 783 | */ |
| 784 | - protected function buildQueryPart($property, $command = ''){ |
|
| 784 | + protected function buildQueryPart($property, $command = '') { |
|
| 785 | 785 | if (!empty($this->{$property})) { |
| 786 | 786 | return $command . $this->{$property}; |
| 787 | 787 | } |
@@ -796,7 +796,7 @@ discard block |
||
| 796 | 796 | * @param string $clause the clause type "IS NULL", "IS NOT NULLs" |
| 797 | 797 | * @return object the current DatabaseQueryBuilder instance |
| 798 | 798 | */ |
| 799 | - protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL'){ |
|
| 799 | + protected function whereIsNullAndNotNull($field, $andOr = 'AND', $clause = 'IS NULL') { |
|
| 800 | 800 | if (is_array($field)) { |
| 801 | 801 | foreach ($field as $f) { |
| 802 | 802 | $this->whereIsNullAndNotNull($f, $andOr, $clause); |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | * |
| 815 | 815 | * @return object the current instance |
| 816 | 816 | */ |
| 817 | - protected function setSelectStr($newSelect){ |
|
| 817 | + protected function setSelectStr($newSelect) { |
|
| 818 | 818 | $this->select = (($this->select == '*' || empty($this->select)) |
| 819 | 819 | ? $newSelect |
| 820 | 820 | : $this->select . ', ' . $newSelect); |
@@ -828,8 +828,8 @@ discard block |
||
| 828 | 828 | * @return string the empty string if the value is null |
| 829 | 829 | * otherwise the same value will be returned |
| 830 | 830 | */ |
| 831 | - protected function checkForNullValue($value){ |
|
| 832 | - if(is_null($value)){ |
|
| 831 | + protected function checkForNullValue($value) { |
|
| 832 | + if (is_null($value)) { |
|
| 833 | 833 | return ''; |
| 834 | 834 | } |
| 835 | 835 | return $value; |