@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $this->set($args); |
| 54 | 54 | $this->method = ( |
| 55 | 55 | isset($_POST['_METHOD']) |
| 56 | - && ($_method = (isset($_POST['_METHOD']))?strtoupper($_POST['_METHOD']):'') |
|
| 56 | + && ($_method = (isset($_POST['_METHOD'])) ? strtoupper($_POST['_METHOD']) : '') |
|
| 57 | 57 | && in_array($_method, array('PUT', 'DELETE'))
|
| 58 | 58 | ) ? $_method : $_SERVER['REQUEST_METHOD']; |
| 59 | 59 | } |
@@ -208,8 +208,8 @@ discard block |
||
| 208 | 208 | /** |
| 209 | 209 | * @return array |
| 210 | 210 | */ |
| 211 | - public function getData(){
|
|
| 212 | - return (isset($this->getDetail()['data']) && is_array($this->getDetail()['data']))?$this->getDetail()['data']:[]; |
|
| 211 | + public function getData() {
|
|
| 212 | + return (isset($this->getDetail()['data']) && is_array($this->getDetail()['data'])) ? $this->getDetail()['data'] : []; |
|
| 213 | 213 | } |
| 214 | 214 | |
| 215 | 215 | /** |