@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use EmmetBlue\Core\Builder\BuilderFactory as Builder; |
| 12 | 12 | use EmmetBlue\Core\Factory\DatabaseConnectionFactory as DBConnectionFactory; |
| 13 | 13 | use EmmetBlue\Core\Builder\QueryBuilder\QueryBuilder as QB; |
| 14 | -use EmmetBlue\Core\Exception\SQLException; |
|
| 15 | 14 | /** |
| 16 | 15 | * Class ErrorLog |
| 17 | 16 | * |
@@ -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 log(int $databaseUserId, string $errorNumber, string $errorSeverity, string $errorMessage, string $errorObject=null) |
|
| 25 | + public static function log(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,6 +54,6 @@ 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 | } |
@@ -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]> |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @throws \EmmetBlue\Core\Exception\SQLException |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | - public function connect(string $username, string $password="") |
|
| 63 | + public function connect(string $username, string $password = "") |
|
| 64 | 64 | { |
| 65 | 65 | $server = $this->dsn[0]; |
| 66 | 66 | $database = $this->dsn[1]; |
@@ -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]> |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @throws [@todo get exceptions] |
| 35 | 35 | * @return void |
| 36 | 36 | */ |
| 37 | - public function connect(string $username, string $password=""); |
|
| 37 | + public function connect(string $username, string $password = ""); |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Returns an instance a pdo intance of the connection object |
@@ -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](clent, data)om> |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | public $connection; |
| 22 | 22 | |
| 23 | - public function __construct(string $adapter, array $dsnArray, string $username=null, string $password=null) |
|
| 23 | + public function __construct(string $adapter, array $dsnArray, string $username = null, string $password = null) |
|
| 24 | 24 | { |
| 25 | 25 | $class = __NAMESPACE__."\\Adapters\\$adapter"; |
| 26 | 26 | $adapterObject = new $class; |
@@ -1,4 +1,4 @@ |
||
| 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]> |
@@ -1,4 +1,4 @@ |
||
| 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]> |
@@ -1,4 +1,4 @@ |
||
| 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]> |
@@ -1,4 +1,4 @@ |
||
| 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]> |
@@ -1,4 +1,4 @@ |
||
| 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]> |