@@ -191,8 +191,9 @@ |
||
| 191 | 191 | $res[ 'status' ] = $this->getStatusText(); |
| 192 | 192 | |
| 193 | 193 | //if it's about laravel validation error |
| 194 | - if ( $this->getErrorCode() && $this->getStatusCode() == 420 ) |
|
| 195 | - $res[ 'error' ] = $this->getErrorCode(); |
|
| 194 | + if ( $this->getErrorCode() && $this->getStatusCode() == 420 ) { |
|
| 195 | + $res[ 'error' ] = $this->getErrorCode(); |
|
| 196 | + } |
|
| 196 | 197 | |
| 197 | 198 | $res[ 'result' ] = $data; |
| 198 | 199 | |