@@ -705,7 +705,7 @@ public function convertFilter($field, $comparator, $value) {
705
705
case 'nsis ' : return array ('!.STIsSimple()=0 ' ,$ field );
706
706
case 'nsiv ' : return array ('!.STIsValid()=0 ' ,$ field );
707
707
}
708
- }
708
+ }
709
709
return false ;
710
710
}
711
711
@@ -1154,7 +1154,7 @@ protected function processOrderingsParameter($orderings) {
1154
1154
protected function convertFilter ($ field , $ comparator , $ value ) {
1155
1155
$ result = $ this ->db ->convertFilter ($ field ,$ comparator ,$ value );
1156
1156
if ($ result ) return $ result ;
1157
- // default behavior
1157
+ // default behavior
1158
1158
$ comparator = strtolower ($ comparator );
1159
1159
if ($ comparator [0 ]!='n ' ) {
1160
1160
if (strlen ($ comparator )==2 ) {
@@ -1896,7 +1896,7 @@ public function __construct($config) {
1896
1896
$ get = isset ($ get )?$ get :null ;
1897
1897
$ post = isset ($ post )?$ post :null ;
1898
1898
$ origin = isset ($ origin )?$ origin :null ;
1899
-
1899
+
1900
1900
// defaults
1901
1901
if (!$ dbengine ) {
1902
1902
$ dbengine = 'MySQL ' ;
@@ -2013,7 +2013,7 @@ protected function swagger($settings) {
2013
2013
$ table_list = array ($ table ['name ' ]);
2014
2014
$ table_fields = $ this ->findFields ($ table_list ,false ,$ database );
2015
2015
$ table_names = array_map (function ($ v ){ return $ v ['name ' ];},$ tables );
2016
-
2016
+
2017
2017
if ($ extensions ) {
2018
2018
$ result = $ this ->db ->query ($ this ->db ->getSql ('reflect_belongs_to ' ),array ($ table_list [0 ],$ table_names ,$ database ,$ database ));
2019
2019
while ($ row = $ this ->db ->fetchRow ($ result )) {
@@ -2028,7 +2028,7 @@ protected function swagger($settings) {
2028
2028
$ table_fields [$ table ['name ' ]][$ primaryKey ]->primaryKey = true ;
2029
2029
}
2030
2030
}
2031
-
2031
+
2032
2032
foreach (array ('root_actions ' ,'id_actions ' ) as $ path ) {
2033
2033
foreach ($ table [$ path ] as $ i =>$ action ) {
2034
2034
$ table_list = array ($ table ['name ' ]);
@@ -2296,7 +2296,7 @@ protected function allowOrigin($origin,$allowOrigins) {
2296
2296
header ('Access-Control-Allow-Origin: * ' );
2297
2297
} else {
2298
2298
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 )) {
2300
2300
header ('Access-Control-Allow-Origin: ' .$ origin );
2301
2301
break ;
2302
2302
}
0 commit comments