Skip to content

Commit 5eb5ec7

Browse files
committed
Cs fixes
1 parent f0234db commit 5eb5ec7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ public function convertFilter($field, $comparator, $value) {
705705
case 'nsis': return array('!.STIsSimple()=0',$field);
706706
case 'nsiv': return array('!.STIsValid()=0',$field);
707707
}
708-
}
708+
}
709709
return false;
710710
}
711711

@@ -1154,7 +1154,7 @@ protected function processOrderingsParameter($orderings) {
11541154
protected function convertFilter($field, $comparator, $value) {
11551155
$result = $this->db->convertFilter($field,$comparator,$value);
11561156
if ($result) return $result;
1157-
// default behavior
1157+
// default behavior
11581158
$comparator = strtolower($comparator);
11591159
if ($comparator[0]!='n') {
11601160
if (strlen($comparator)==2) {
@@ -1896,7 +1896,7 @@ public function __construct($config) {
18961896
$get = isset($get)?$get:null;
18971897
$post = isset($post)?$post:null;
18981898
$origin = isset($origin)?$origin:null;
1899-
1899+
19001900
// defaults
19011901
if (!$dbengine) {
19021902
$dbengine = 'MySQL';
@@ -2013,7 +2013,7 @@ protected function swagger($settings) {
20132013
$table_list = array($table['name']);
20142014
$table_fields = $this->findFields($table_list,false,$database);
20152015
$table_names = array_map(function($v){ return $v['name'];},$tables);
2016-
2016+
20172017
if ($extensions) {
20182018
$result = $this->db->query($this->db->getSql('reflect_belongs_to'),array($table_list[0],$table_names,$database,$database));
20192019
while ($row = $this->db->fetchRow($result)) {
@@ -2028,7 +2028,7 @@ protected function swagger($settings) {
20282028
$table_fields[$table['name']][$primaryKey]->primaryKey = true;
20292029
}
20302030
}
2031-
2031+
20322032
foreach (array('root_actions','id_actions') as $path) {
20332033
foreach ($table[$path] as $i=>$action) {
20342034
$table_list = array($table['name']);
@@ -2296,7 +2296,7 @@ protected function allowOrigin($origin,$allowOrigins) {
22962296
header('Access-Control-Allow-Origin: *');
22972297
} else {
22982298
if ($origin) foreach (explode(',',$allowOrigins) as $o) {
2299-
if (preg_match('/^'.str_replace('\*','.*',preg_quote(strtolower(trim($o)))).'$/',$origin)) {
2299+
if (preg_match('/^'.str_replace('\*','.*',preg_quote(strtolower(trim($o)))).'$/',$origin)) {
23002300
header('Access-Control-Allow-Origin: '.$origin);
23012301
break;
23022302
}

0 commit comments

Comments
 (0)