| Total Complexity | 7 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class BaseController |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * __call magic method. |
||
| 28 | */ |
||
| 29 | public function __call($name, $arguments) |
||
| 30 | { |
||
| 31 | $this->sendOutput('', array('HTTP/1.1 404 Not Found')); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get URI elements. |
||
| 36 | * |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | protected function getUriSegments() |
||
| 40 | { |
||
| 41 | $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); |
||
| 42 | $uri = explode( '/', $uri ); |
||
| 43 | |||
| 44 | return $uri; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Get querystring params. |
||
| 49 | * |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | protected function getQueryStringParams() |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Send API output. |
||
| 59 | * |
||
| 60 | * @param mixed $data |
||
| 61 | * @param string $httpHeader |
||
| 62 | */ |
||
| 63 | protected function sendOutput($data, $httpHeaders=array()) |
||
| 75 | } |
||
| 76 | } |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.