@@ -8,16 +8,16 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | require_once($rootPath.'configs/bfw-api/config.php'); |
| 10 | 10 | |
| 11 | -if(!empty($apiUrl) && !empty($apiFile) && !empty($apiClass)) |
|
| 11 | +if (!empty($apiUrl) && !empty($apiFile) && !empty($apiClass)) |
|
| 12 | 12 | {
|
| 13 | 13 | $callAPI = false; |
| 14 | 14 | |
| 15 | - if(strpos($request, $apiUrl) === 0) |
|
| 15 | + if (strpos($request, $apiUrl) === 0) |
|
| 16 | 16 | {
|
| 17 | 17 | $explode_path = explode('/', $request);
|
| 18 | 18 | |
| 19 | 19 | $apiMethod = 'index'; |
| 20 | - if(isset($explode_path[2])) |
|
| 20 | + if (isset($explode_path[2])) |
|
| 21 | 21 | {
|
| 22 | 22 | $apiMethod = $explode_path[2]; |
| 23 | 23 | unset($explode_path[2]); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | exit; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - if($request == $apiFile && $callAPI == false) |
|
| 37 | + if ($request == $apiFile && $callAPI == false) |
|
| 38 | 38 | {
|
| 39 | 39 | redirection('/');
|
| 40 | 40 | } |