@@ -125,14 +125,14 @@  | 
                                                    ||
| 125 | 125 | $out .= '<fieldset style="text-align:left">';  | 
                                                        
| 126 | 126 | $out .= '<legend>Query ' . $i . ' - ' . $query['time'] . '</legend>';  | 
                                                        
| 127 | 127 | $out .= $query['sql'] . '<br><br>';  | 
                                                        
| 128 | -            if (! empty($query['element'])) { | 
                                                        |
| 128 | +            if (!empty($query['element'])) { | 
                                                        |
| 129 | 129 | $out .= $query['element']['type'] . ' => ' . $query['element']['name'] . '<br>';  | 
                                                        
| 130 | 130 | }  | 
                                                        
| 131 | -            if (! empty($query['event'])) { | 
                                                        |
| 131 | +            if (!empty($query['event'])) { | 
                                                        |
| 132 | 132 | $out .= 'Current Event => ' . $query['event'] . '<br>';  | 
                                                        
| 133 | 133 | }  | 
                                                        
| 134 | 134 | $out .= 'Affected Rows => ' . $query['rows'] . '<br>';  | 
                                                        
| 135 | -            if (! empty($query['path'])) { | 
                                                        |
| 135 | +            if (!empty($query['path'])) { | 
                                                        |
| 136 | 136 | $out .= 'Functions Path => ' . $query['path'] . '<br>';  | 
                                                        
| 137 | 137 | }  | 
                                                        
| 138 | 138 | /*$out .= 'Functions Path => ' . $query['path']['method'] . '<br>';  | 
                                                        
@@ -16,10 +16,10 @@  | 
                                                    ||
| 16 | 16 | protected $timeFormat = '%2.5f';  | 
                                                        
| 17 | 17 | |
| 18 | 18 | /**  | 
                                                        
| 19 | - * @return mysqli  | 
                                                        |
| 20 | - * @throws Exceptions\ConnectException  | 
                                                        |
| 21 | - * @throws Exceptions\QueryException  | 
                                                        |
| 22 | - */  | 
                                                        |
| 19 | + * @return mysqli  | 
                                                        |
| 20 | + * @throws Exceptions\ConnectException  | 
                                                        |
| 21 | + * @throws Exceptions\QueryException  | 
                                                        |
| 22 | + */  | 
                                                        |
| 23 | 23 | abstract public function getConnect() : mysqli;  | 
                                                        
| 24 | 24 | |
| 25 | 25 | /**  | 
                                                        
@@ -81,7 +81,7 @@ discard block  | 
                                                    ||
| 81 | 81 | */  | 
                                                        
| 82 | 82 | public function getConnect() : mysqli  | 
                                                        
| 83 | 83 |      { | 
                                                        
| 84 | -        if (! $this->isConnected()) { | 
                                                        |
| 84 | +        if (!$this->isConnected()) { | 
                                                        |
| 85 | 85 | return $this->connect();  | 
                                                        
| 86 | 86 | }  | 
                                                        
| 87 | 87 | |
@@ -108,7 +108,7 @@ discard block  | 
                                                    ||
| 108 | 108 | throw new Exceptions\ConnectException($this->conn->connect_error);  | 
                                                        
| 109 | 109 | }  | 
                                                        
| 110 | 110 | |
| 111 | -            if (! $this->isConnected()) { | 
                                                        |
| 111 | +            if (!$this->isConnected()) { | 
                                                        |
| 112 | 112 | throw new Exceptions\ConnectException(  | 
                                                        
| 113 | 113 | $this->getLastError() ?: 'Failed to create the database connection!'  | 
                                                        
| 114 | 114 | );  | 
                                                        
@@ -341,7 +341,7 @@ discard block  | 
                                                    ||
| 341 | 341 | $mode = 'insert';  | 
                                                        
| 342 | 342 |          } else { | 
                                                        
| 343 | 343 |              $result = $this->select('*', $table, $where); | 
                                                        
| 344 | -            if (! $result instanceof mysqli_result) { | 
                                                        |
| 344 | +            if (!$result instanceof mysqli_result) { | 
                                                        |
| 345 | 345 |                  throw (new QueryException('Need mysqli_result')) | 
                                                        
| 346 | 346 | ->setQuery($this->getLastQuery());  | 
                                                        
| 347 | 347 | }  | 
                                                        
@@ -389,7 +389,7 @@ discard block  | 
                                                    ||
| 389 | 389 | * @param int $col  | 
                                                        
| 390 | 390 | * @return string|null  | 
                                                        
| 391 | 391 | */  | 
                                                        
| 392 | - public function fieldName(mysqli_result $result, $col = 0) :? string  | 
                                                        |
| 392 | + public function fieldName(mysqli_result $result, $col = 0) : ? string  | 
                                                        |
| 393 | 393 |      { | 
                                                        
| 394 | 394 | $field = $result->fetch_field_direct($col);  | 
                                                        
| 395 | 395 | |
@@ -486,7 +486,7 @@ discard block  | 
                                                    ||
| 486 | 486 |      { | 
                                                        
| 487 | 487 | $col = [];  | 
                                                        
| 488 | 488 | |
| 489 | -        if (! ($result instanceof mysqli_result)) { | 
                                                        |
| 489 | +        if (!($result instanceof mysqli_result)) { | 
                                                        |
| 490 | 490 | $result = $this->query($result);  | 
                                                        
| 491 | 491 | }  | 
                                                        
| 492 | 492 | |
@@ -510,7 +510,7 @@ discard block  | 
                                                    ||
| 510 | 510 |      { | 
                                                        
| 511 | 511 | $names = [];  | 
                                                        
| 512 | 512 | |
| 513 | -        if (! ($result instanceof mysqli_result)) { | 
                                                        |
| 513 | +        if (!($result instanceof mysqli_result)) { | 
                                                        |
| 514 | 514 | $result = $this->query($result);  | 
                                                        
| 515 | 515 | }  | 
                                                        
| 516 | 516 | |
@@ -535,7 +535,7 @@ discard block  | 
                                                    ||
| 535 | 535 |      { | 
                                                        
| 536 | 536 | $out = false;  | 
                                                        
| 537 | 537 | |
| 538 | -        if (! ($result instanceof mysqli_result)) { | 
                                                        |
| 538 | +        if (!($result instanceof mysqli_result)) { | 
                                                        |
| 539 | 539 | $result = $this->query($result);  | 
                                                        
| 540 | 540 | }  | 
                                                        
| 541 | 541 | |
@@ -557,7 +557,7 @@ discard block  | 
                                                    ||
| 557 | 557 | public function getTableMetaData(string $table) : array  | 
                                                        
| 558 | 558 |      { | 
                                                        
| 559 | 559 | $metadata = [];  | 
                                                        
| 560 | -        if (! empty($table)) { | 
                                                        |
| 560 | +        if (!empty($table)) { | 
                                                        |
| 561 | 561 | $sql = 'SHOW FIELDS FROM ' . $table;  | 
                                                        
| 562 | 562 | $result = $this->query($sql);  | 
                                                        
| 563 | 563 |              if ($result instanceof mysqli_result) { | 
                                                        
@@ -36,7 +36,7 @@ discard block  | 
                                                    ||
| 36 | 36 | public function prepareDate(int $timestamp, string $fieldType = 'DATETIME')  | 
                                                        
| 37 | 37 |      { | 
                                                        
| 38 | 38 | $date = false;  | 
                                                        
| 39 | -        if (! empty($timestamp) && $timestamp > 0) { | 
                                                        |
| 39 | +        if (!empty($timestamp) && $timestamp > 0) { | 
                                                        |
| 40 | 40 |              switch ($fieldType) { | 
                                                        
| 41 | 41 | case 'DATE':  | 
                                                        
| 42 | 42 |                      $date = date('Y-m-d', $timestamp); | 
                                                        
@@ -66,7 +66,7 @@ discard block  | 
                                                    ||
| 66 | 66 |          if (\is_array($data)) { | 
                                                        
| 67 | 67 | $tmp = [];  | 
                                                        
| 68 | 68 |              foreach ($data as $alias => $field) { | 
                                                        
| 69 | - $tmp[] = ($alias !== $field && ! \is_int($alias)) ? ($field . ' as `' . $alias . '`') : $field;  | 
                                                        |
| 69 | + $tmp[] = ($alias !== $field && !\is_int($alias)) ? ($field . ' as `' . $alias . '`') : $field;  | 
                                                        |
| 70 | 70 | }  | 
                                                        
| 71 | 71 | |
| 72 | 72 |              $data = implode(',', $tmp); | 
                                                        
@@ -142,7 +142,7 @@ discard block  | 
                                                    ||
| 142 | 142 | }  | 
                                                        
| 143 | 143 | }  | 
                                                        
| 144 | 144 | |
| 145 | -        if (! \is_scalar($values)) { | 
                                                        |
| 145 | +        if (!\is_scalar($values)) { | 
                                                        |
| 146 | 146 |              throw (new Exceptions\InvaludFieldException('values')) | 
                                                        
| 147 | 147 | ->setData($values);  | 
                                                        
| 148 | 148 | }  | 
                                                        
@@ -170,7 +170,7 @@ discard block  | 
                                                    ||
| 170 | 170 |          if (\is_array($fields) && $skipFieldNames === false) { | 
                                                        
| 171 | 171 | $onlyNumbers = true;  | 
                                                        
| 172 | 172 |              foreach ($fields as $name) { | 
                                                        
| 173 | -                if (! \is_int($name)) { | 
                                                        |
| 173 | +                if (!\is_int($name)) { | 
                                                        |
| 174 | 174 | $onlyNumbers = false;  | 
                                                        
| 175 | 175 | break;  | 
                                                        
| 176 | 176 | }  | 
                                                        
@@ -221,7 +221,7 @@ discard block  | 
                                                    ||
| 221 | 221 | }  | 
                                                        
| 222 | 222 |              $data = implode(' ', $tmp); | 
                                                        
| 223 | 223 | }  | 
                                                        
| 224 | -        if (! is_scalar($data) || empty($data)) { | 
                                                        |
| 224 | +        if (!is_scalar($data) || empty($data)) { | 
                                                        |
| 225 | 225 | throw new Exceptions\TableNotDefinedException($data);  | 
                                                        
| 226 | 226 | }  | 
                                                        
| 227 | 227 | |
@@ -238,7 +238,7 @@ discard block  | 
                                                    ||
| 238 | 238 |              $data = implode(' ', $data); | 
                                                        
| 239 | 239 | }  | 
                                                        
| 240 | 240 | $data = trim($data);  | 
                                                        
| 241 | -        if (! empty($data) && stripos($data, 'WHERE') !== 0) { | 
                                                        |
| 241 | +        if (!empty($data) && stripos($data, 'WHERE') !== 0) { | 
                                                        |
| 242 | 242 |              $data = "WHERE {$data}"; | 
                                                        
| 243 | 243 | }  | 
                                                        
| 244 | 244 | |
@@ -252,7 +252,7 @@ discard block  | 
                                                    ||
| 252 | 252 | protected function prepareOrder($data) : string  | 
                                                        
| 253 | 253 |      { | 
                                                        
| 254 | 254 | $data = trim($data);  | 
                                                        
| 255 | -        if (! empty($data) && stripos($data, 'ORDER') !== 0) { | 
                                                        |
| 255 | +        if (!empty($data) && stripos($data, 'ORDER') !== 0) { | 
                                                        |
| 256 | 256 |              $data = "ORDER BY {$data}"; | 
                                                        
| 257 | 257 | }  | 
                                                        
| 258 | 258 | |
@@ -266,7 +266,7 @@ discard block  | 
                                                    ||
| 266 | 266 | protected function prepareLimit($data) : string  | 
                                                        
| 267 | 267 |      { | 
                                                        
| 268 | 268 | $data = trim($data);  | 
                                                        
| 269 | -        if (! empty($data) && stripos($data, 'LIMIT') !== 0) { | 
                                                        |
| 269 | +        if (!empty($data) && stripos($data, 'LIMIT') !== 0) { | 
                                                        |
| 270 | 270 |              $data = "LIMIT {$data}"; | 
                                                        
| 271 | 271 | }  | 
                                                        
| 272 | 272 | |