@@ -136,7 +136,7 @@ |
||
136 | 136 | $value) : $value; |
137 | 137 | } |
138 | 138 | } |
139 | - } else{ |
|
139 | + } else { |
|
140 | 140 | $query['filter'][$resource] = $columns; |
141 | 141 | } |
142 | 142 | } |
@@ -5,28 +5,28 @@ |
||
5 | 5 | { |
6 | 6 | protected $errors = []; |
7 | 7 | |
8 | - public function __construct($errors = [], $status = 0 ) |
|
8 | + public function __construct($errors = [], $status = 0) |
|
9 | 9 | { |
10 | 10 | $message = ""; |
11 | 11 | |
12 | 12 | $this->errors = $errors; |
13 | 13 | |
14 | - if (!empty($errors)){ |
|
14 | + if (!empty($errors)) { |
|
15 | 15 | $error = array_shift($errors); |
16 | 16 | |
17 | - if (isset($error->title)){ |
|
17 | + if (isset($error->title)) { |
|
18 | 18 | $message = $error->title; |
19 | 19 | } |
20 | 20 | |
21 | - if (isset($error->detail)){ |
|
21 | + if (isset($error->detail)) { |
|
22 | 22 | $message .= (empty($message)) ? $error->detail : ": $error->detail"; |
23 | 23 | } |
24 | 24 | } |
25 | 25 | |
26 | - if (empty($message)){ |
|
26 | + if (empty($message)) { |
|
27 | 27 | $message = "API Server Responded with error"; |
28 | 28 | |
29 | - if ($status){ |
|
29 | + if ($status) { |
|
30 | 30 | $message .= " $status"; |
31 | 31 | } |
32 | 32 | } |