@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function PDO() |
| 34 | 34 | { |
| 35 | - if(empty($this->conn)) { |
|
| 35 | + if (empty($this->conn)) { |
|
| 36 | 36 | try { |
| 37 | 37 | $this->conn = new PDO( |
| 38 | 38 | $this->config['driver'] . ":host=" . |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $this->config['password'], |
| 45 | 45 | $this->config['options'] |
| 46 | 46 | ); |
| 47 | - } catch(PDOException $exception) { |
|
| 47 | + } catch (PDOException $exception) { |
|
| 48 | 48 | echo json_encode( |
| 49 | 49 | ['error' => |
| 50 | 50 | [ |
@@ -172,19 +172,19 @@ |
||
| 172 | 172 | */ |
| 173 | 173 | private function deny() |
| 174 | 174 | { |
| 175 | - if(!empty($this->excepts)) { |
|
| 175 | + if (!empty($this->excepts)) { |
|
| 176 | 176 | switch (!is_object($this->data) && $count = count($this->data)) { |
| 177 | 177 | case (!isset($this->data[0]) && !empty($this->data)): |
| 178 | - foreach($this->excepts as $except) { |
|
| 179 | - if(isset($this->data[$except])) { |
|
| 178 | + foreach ($this->excepts as $except) { |
|
| 179 | + if (isset($this->data[$except])) { |
|
| 180 | 180 | unset($this->data[$except]); |
| 181 | 181 | } |
| 182 | 182 | } |
| 183 | 183 | break; |
| 184 | 184 | case ($count >= 2 && isset($this->data[0])): |
| 185 | - foreach($this->excepts as $except) { |
|
| 186 | - for($i = 0; $i < $count; $i++) { |
|
| 187 | - if(isset($this->data[$i][$except])) { |
|
| 185 | + foreach ($this->excepts as $except) { |
|
| 186 | + for ($i = 0; $i < $count; $i++) { |
|
| 187 | + if (isset($this->data[$i][$except])) { |
|
| 188 | 188 | unset($this->data[$i][$except]); |
| 189 | 189 | } |
| 190 | 190 | } |