Skip to content

Commit bc1e6bf

Browse files
committed
correction name of some methods
1 parent 8a8fa09 commit bc1e6bf

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/Condition.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function notExactEqual($value, $comparable)
6464
*
6565
* @return bool
6666
*/
67-
public static function greater($value, $comparable)
67+
public static function greaterThan($value, $comparable)
6868
{
6969
return $value > $comparable;
7070
}
@@ -77,7 +77,7 @@ public static function greater($value, $comparable)
7777
*
7878
* @return bool
7979
*/
80-
public static function condLess($value, $comparable)
80+
public static function lessThan($value, $comparable)
8181
{
8282
return $value < $comparable;
8383
}
@@ -90,7 +90,7 @@ public static function condLess($value, $comparable)
9090
*
9191
* @return bool
9292
*/
93-
public static function greaterEqual($value, $comparable)
93+
public static function greaterThanOrEqual($value, $comparable)
9494
{
9595
return $value >= $comparable;
9696
}
@@ -103,7 +103,7 @@ public static function greaterEqual($value, $comparable)
103103
*
104104
* @return bool
105105
*/
106-
public static function lessEqual($value, $comparable)
106+
public static function lessThanOrEqual($value, $comparable)
107107
{
108108
return $value <= $comparable;
109109
}

src/JsonQueriable.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ trait JsonQueriable
5353
'neq' => 'notEqual',
5454
'!==' => 'strictNotEqual',
5555
'sneq' => 'strictNotEqual',
56-
'>' => 'greater',
57-
'gt' => 'greater',
58-
'<' => 'less',
59-
'lt' => 'less',
60-
'>=' => 'greaterEqual',
61-
'gte' => 'greaterEqual',
62-
'<=' => 'lessEqual',
63-
'lte' => 'lessEqual',
56+
'>' => 'greaterThan',
57+
'gt' => 'greaterThan',
58+
'<' => 'lessThan',
59+
'lt' => 'lessThan',
60+
'>=' => 'greaterThanOrEqual',
61+
'gte' => 'greaterThanOrEqual',
62+
'<=' => 'lessThanOrEqual',
63+
'lte' => 'lessThanOrEqual',
6464
'in' => 'in',
6565
'notin' => 'notIn',
6666
'null' => 'isNull',
@@ -249,7 +249,7 @@ protected function getData()
249249
if (empty($this->_node) || $this->_node == '.') {
250250
return $this->_map;
251251
}
252-
252+
253253
if ($this->_node) {
254254
$terminate = false;
255255
$map = $this->_map;

0 commit comments

Comments
 (0)