@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -41,13 +41,13 @@ discard block |
||
| 41 | 41 | ->values([ |
| 42 | 42 | 'GETDATE()', |
| 43 | 43 | QB::wrapString($databaseUserId, "'"), |
| 44 | - QB::wrapString((string)$event, "'"), |
|
| 44 | + QB::wrapString((string) $event, "'"), |
|
| 45 | 45 | QB::wrapString($objectSchema, "'"), |
| 46 | 46 | QB::wrapString($object, "'"), |
| 47 | 47 | QB::wrapString(str_replace("'", "\"", $tSql), "'") |
| 48 | 48 | ]); |
| 49 | 49 | |
| 50 | - DBConnectionFactory::getConnection()->query((string)$insertBuilder); |
|
| 50 | + DBConnectionFactory::getConnection()->query((string) $insertBuilder); |
|
| 51 | 51 | } catch (\PDOException $e) { |
| 52 | 52 | echo $e->getMessage(); |
| 53 | 53 | throw new SQLException(sprintf( |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - public static function log(string $databaseUserId, string $event, string $objectSchema, string $object, string $tSql){ |
|
| 59 | + public static function log(string $databaseUserId, string $event, string $objectSchema, string $object, string $tSql) { |
|
| 60 | 60 | |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | class ErrorLog implements LogInterface |
| 24 | 24 | { |
| 25 | - public static function logDeprecated(int $databaseUserId, string $errorNumber, string $errorSeverity, string $errorMessage, string $errorObject=null) |
|
| 25 | + public static function logDeprecated(int $databaseUserId, string $errorNumber, string $errorSeverity, string $errorMessage, string $errorObject = null) |
|
| 26 | 26 | { |
| 27 | 27 | /** |
| 28 | 28 | * For now I am not doing anything with $errorObject yet. |
@@ -54,10 +54,10 @@ discard block |
||
| 54 | 54 | QB::wrapString($errorMessage, "'") |
| 55 | 55 | ]); |
| 56 | 56 | |
| 57 | - DBConnectionFactory::getConnection()->query((string)$insertBuilder); |
|
| 57 | + DBConnectionFactory::getConnection()->query((string) $insertBuilder); |
|
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - public static function log(int $databaseUserId, string $errorNumber, string $errorSeverity, string $errorMessage, string $errorObject=null) { |
|
| 60 | + public static function log(int $databaseUserId, string $errorNumber, string $errorSeverity, string $errorMessage, string $errorObject = null) { |
|
| 61 | 61 | |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare (strict_types=1); |
|
| 1 | +<?php declare (strict_types = 1); |
|
| 2 | 2 | /** |
| 3 | 3 | * @license MIT |
| 4 | 4 | * @author Samuel Adeshina <[email protected]> |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | const UNDEFINED = 0; |
| 53 | 53 | |
| 54 | 54 | public static function getGlobals($config = "configs") { |
| 55 | - if (is_file("globals.json")){ |
|
| 55 | + if (is_file("globals.json")) { |
|
| 56 | 56 | $globalLoc = json_decode(file_get_contents("globals.json"), true); |
| 57 | 57 | |
| 58 | - if (isset($globalLoc["globals"])){ |
|
| 58 | + if (isset($globalLoc["globals"])) { |
|
| 59 | 59 | $file = $globalLoc["globals".".json"; |
| 60 | 60 | |
| 61 | 61 | return json_decode(file_get_contents($file), true); |