Skip to content

Commit 8f38a07

Browse files
Apply fixes from StyleCI (#25)
1 parent df0c3d8 commit 8f38a07

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Builder/Where.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,30 +45,30 @@ public function check($model)
4545
switch ($this->operator) {
4646
case '=':
4747
return $this->attribute($model) === $this->value();
48-
break;
48+
break;
4949
case '>=':
5050
return $this->attribute($model) >= $this->value();
51-
break;
51+
break;
5252
case '<=':
5353
return $this->attribute($model) <= $this->value();
54-
break;
54+
break;
5555
case '<>':
5656
return $this->attribute($model) !== $this->value();
57-
break;
57+
break;
5858
case '>':
5959
return $this->attribute($model) > $this->value();
60-
break;
60+
break;
6161
case '<':
6262
return $this->attribute($model) < $this->value();
63-
break;
63+
break;
6464
case 'like':
6565
$pattern = preg_quote($this->value());
6666
$pattern = str_replace('%', '(.*?)', $pattern);
6767
$pattern = str_replace('_', '(.)', $pattern);
6868
$pattern = '/^'.$pattern.'$/si'; // allow linebreaks and case insensitive matches
6969

7070
return preg_match($pattern, $this->attribute($model)) != false;
71-
break;
71+
break;
7272
}
7373
throw new BadMethodCallException('Operator not supported: '.$this->operator);
7474
}

0 commit comments

Comments
 (0)