@@ -288,7 +288,7 @@ |
||
| 288 | 288 | */ |
| 289 | 289 | protected $wWWHomePage; |
| 290 | 290 | |
| 291 | - public function rules(){ |
|
| 291 | + public function rules() { |
|
| 292 | 292 | return [['cn'], 'required']; |
| 293 | 293 | } |
| 294 | 294 | |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | if (!empty($parts)) { |
| 130 | - return '('.$this->operator[$operator].'(' . implode(") (", $parts) . ')'.implode($other).' )'; |
|
| 130 | + return '('.$this->operator[$operator].'('.implode(") (", $parts).')'.implode($other).' )'; |
|
| 131 | 131 | } else { |
| 132 | 132 | return ''; |
| 133 | 133 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | $parts = []; |
| 295 | 295 | foreach ($values as $value) { |
| 296 | 296 | $value = empty($escape) ? $value : strtr($value, $escape); |
| 297 | - $parts[] = $not.'('.$column.'=*'.$value.'*)'.($not? ')':''); |
|
| 297 | + $parts[] = $not.'('.$column.'=*'.$value.'*)'.($not ? ')' : ''); |
|
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | return '('.$this->operator[trim($andor)].implode($parts).')'; |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | $this->filter = (new FilterBuilder)->build($this->where); |
| 85 | - if (empty($this->filter)){ |
|
| 85 | + if (empty($this->filter)) { |
|
| 86 | 86 | throw new InvalidValueException('You must define a filter for the search.'); |
| 87 | 87 | } |
| 88 | 88 | |