@@ -83,9 +83,9 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function where(Array $where, String $condition = 'AND'): ?SimplePHP |
85 | 85 | { |
86 | - if(is_array($where)) { |
|
87 | - foreach($where as $enclosures) { |
|
88 | - $this->where .= $enclosures[0]." ".$enclosures[1]." '".$enclosures[2]."' {$condition} "; |
|
86 | + if (is_array($where)) { |
|
87 | + foreach ($where as $enclosures) { |
|
88 | + $this->where .= $enclosures[0] . " " . $enclosures[1] . " '" . $enclosures[2] . "' {$condition} "; |
|
89 | 89 | } |
90 | 90 | $this->where = "WHERE " . rtrim($this->where, " {$condition} "); |
91 | 91 | } |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | { |
288 | 288 | $message = $pdo ? "Error: PDOCode " . $message : $message; |
289 | 289 | $archive = fopen(dirname(__DIR__) . DIRECTORY_SEPARATOR . "Logs" . DIRECTORY_SEPARATOR . "Logs.txt", 'a+'); |
290 | - fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> ". $message ."\n-------\n"); |
|
290 | + fwrite($archive, "-----SimplePHPLog-----\n" . date("d/m/Y H:i:s", time()) . " -> " . $message . "\n-------\n"); |
|
291 | 291 | fclose($archive); |
292 | 292 | return null; |
293 | 293 | } |