@@ -2,15 +2,15 @@ |
||
| 2 | 2 | namespace Maphper\Lib\Sql; |
| 3 | 3 | |
| 4 | 4 | class NullConditional implements WhereConditional { |
| 5 | - public function matches($key, $value, $mode) { |
|
| 6 | - return $value === NULL; |
|
| 7 | - } |
|
| 5 | + public function matches($key, $value, $mode) { |
|
| 6 | + return $value === NULL; |
|
| 7 | + } |
|
| 8 | 8 | |
| 9 | - public function getSql($key, $value, $mode) { |
|
| 10 | - $nullSql = $key . ' IS '; |
|
| 11 | - if (\Maphper\Maphper::FIND_NOT & $mode) $nullSql .= 'NOT '; |
|
| 12 | - $sql = [$nullSql . 'NULL']; |
|
| 9 | + public function getSql($key, $value, $mode) { |
|
| 10 | + $nullSql = $key . ' IS '; |
|
| 11 | + if (\Maphper\Maphper::FIND_NOT & $mode) $nullSql .= 'NOT '; |
|
| 12 | + $sql = [$nullSql . 'NULL']; |
|
| 13 | 13 | |
| 14 | - return ['args' => [], 'sql' => $sql]; |
|
| 15 | - } |
|
| 14 | + return ['args' => [], 'sql' => $sql]; |
|
| 15 | + } |
|
| 16 | 16 | } |