Skip to content

Commit da15a83

Browse files
committed
Cs fixes
1 parent 5eb5ec7 commit da15a83

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

api.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,8 +1167,10 @@ protected function convertFilter($field, $comparator, $value) {
11671167
case 'le': return array('! <= ?',$field,$value);
11681168
case 'ge': return array('! >= ?',$field,$value);
11691169
case 'gt': return array('! > ?',$field,$value);
1170-
case 'bt': $v = explode(',',$value); if (count($v)<2) return false;
1171-
return array('! BETWEEN ? AND ?',$field,$v[0],$v[1]);
1170+
case 'bt':
1171+
$v = explode(',',$value);
1172+
if (count($v)<2) return false;
1173+
return array('! BETWEEN ? AND ?',$field,$v[0],$v[1]);
11721174
case 'in': return array('! IN ?',$field,explode(',',$value));
11731175
case 'is': return array('! IS NULL',$field);
11741176
}
@@ -1204,8 +1206,10 @@ protected function convertFilter($field, $comparator, $value) {
12041206
case 'nle': return array('! > ?',$field,$value);
12051207
case 'nge': return array('! < ?',$field,$value);
12061208
case 'ngt': return array('! <= ?',$field,$value);
1207-
case 'nbt': $v = explode(',',$value); if (count($v)<2) return false;
1208-
return array('! NOT BETWEEN ? AND ?',$field,$v[0],$v[1]);
1209+
case 'nbt':
1210+
$v = explode(',',$value);
1211+
if (count($v)<2) return false;
1212+
return array('! NOT BETWEEN ? AND ?',$field,$v[0],$v[1]);
12091213
case 'nin': return array('! NOT IN ?',$field,explode(',',$value));
12101214
case 'nis': return array('! IS NOT NULL',$field);
12111215
}
@@ -1518,7 +1522,7 @@ protected function addRelationColumns($columns,$select) {
15181522
foreach ($keys as $key=>$other) {
15191523
$columns.=",$table.$key,".implode('.',$other);
15201524
}
1521-
}
1525+
}
15221526
}
15231527
return $columns;
15241528
}
@@ -1923,7 +1927,7 @@ public function __construct($config) {
19231927
// connect
19241928
$request = trim($request,'/');
19251929
if (!$database) {
1926-
$database = $this->parseRequestParameter($request, 'a-zA-Z0-9\-_');
1930+
$database = $this->parseRequestParameter($request, 'a-zA-Z0-9\-_');
19271931
}
19281932
if (!$db) {
19291933
$db = new $dbengine();

0 commit comments

Comments
 (0)