GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 41886a...6c2a86 )
by Samuel
03:03
created
src/Core/Connection/ConnectionAdapter.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -20,22 +20,22 @@
 block discarded – undo
20 20
 {
21 21
 	public $connection;
22 22
 
23
-    public function __construct(string $adapter, array $dsnArray, string $username=null, string $password=null)
24
-    {
25
-    	$class = __NAMESPACE__."\\Adapters\\$adapter";
26
-    	$adapterObject = new $class;
23
+	public function __construct(string $adapter, array $dsnArray, string $username=null, string $password=null)
24
+	{
25
+		$class = __NAMESPACE__."\\Adapters\\$adapter";
26
+		$adapterObject = new $class;
27 27
 
28
-    	if ($adapterObject instanceof ConnectableInterface)
29
-    	{
30
-    		$adapterObject->setDsn($dsnArray);
31
-	    	$adapterObject->connect($username, $password);
32
-    	}
28
+		if ($adapterObject instanceof ConnectableInterface)
29
+		{
30
+			$adapterObject->setDsn($dsnArray);
31
+			$adapterObject->connect($username, $password);
32
+		}
33 33
 
34
-    	$this->connection = $adapterObject->getConnection();
35
-    }
34
+		$this->connection = $adapterObject->getConnection();
35
+	}
36 36
 
37
-    public function getConnection() : \PDO
38
-    {
39
-    	return $this->connection;
40
-    }
37
+	public function getConnection() : \PDO
38
+	{
39
+		return $this->connection;
40
+	}
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Core/Session/Session.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -37,6 +37,8 @@
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * 
40
+     * @param string $key
41
+     * @return string
40 42
      */
41 43
     public static function get($key)
42 44
     {
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -17,37 +17,37 @@
 block discarded – undo
17 17
  */
18 18
 class Session
19 19
 {
20
-    protected $session;
20
+	protected $session;
21 21
     
22
-    /**
23
-     * 
24
-     */
25
-    public static function init($session = "")
26
-    {
27
-        $this->session = $session;
28
-    }
22
+	/**
23
+	 * 
24
+	 */
25
+	public static function init($session = "")
26
+	{
27
+		$this->session = $session;
28
+	}
29 29
     
30
-    /**
31
-     * 
32
-     */
33
-    public static function save($key, $value)
34
-    {
35
-        $session[$key] = $value;
36
-    }
30
+	/**
31
+	 * 
32
+	 */
33
+	public static function save($key, $value)
34
+	{
35
+		$session[$key] = $value;
36
+	}
37 37
 
38
-    /**
39
-     * 
40
-     */
41
-    public static function get($key)
42
-    {
43
-        return $session[$key] ?? '';
44
-    }
38
+	/**
39
+	 * 
40
+	 */
41
+	public static function get($key)
42
+	{
43
+		return $session[$key] ?? '';
44
+	}
45 45
 
46
-    /**
47
-     * 
48
-     */
49
-    public static function delete($key)
50
-    {
51
-       unset($session[$key]);
52
-    }
46
+	/**
47
+	 * 
48
+	 */
49
+	public static function delete($key)
50
+	{
51
+	   unset($session[$key]);
52
+	}
53 53
 }
Please login to merge, or discard this patch.
src/Core/Factory/DatabaseConnectionFactory.php 2 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -20,43 +20,43 @@
 block discarded – undo
20 20
  */
21 21
 class DatabaseConnectionFactory
22 22
 {
23
-    /**
24
-     * @var \PDO $connectionObject
25
-     */
26
-    private static $connectionObject;
27
-
28
-    /**
29
-     * Gets the config values defined in the database-config.json file
30
-     * and uses the values to create a new connection object.
31
-     */
32
-    public static function bootstrap()
33
-    {
34
-        $databaseConfigJson = file_get_contents("bin/configs/database-config.json");
35
-
36
-        $databaseConfig = json_decode($databaseConfigJson);
37
-
38
-        $adapter = $databaseConfig->adapter;
39
-        $server = $databaseConfig->server;
40
-        $database = $databaseConfig->database;
41
-        $username = $databaseConfig->username;
42
-        $password = $databaseConfig->password;
43
-
44
-        self::$connectionObject = new Connection($adapter, [$server, $database], $username, $password);
45
-
46
-        if ($databaseConfig->showError)
47
-        {
48
-            self::$connectionObject->getConnection()->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
49
-        }
50
-    }
51
-
52
-    /**
53
-     * Returns a new connection object
54
-     * 
55
-     * @return \PDO
56
-     */
57
-    public static function getConnection() : \PDO
58
-    {
59
-        self::bootstrap();
60
-        return self::$connectionObject->getConnection();
61
-    }
23
+	/**
24
+	 * @var \PDO $connectionObject
25
+	 */
26
+	private static $connectionObject;
27
+
28
+	/**
29
+	 * Gets the config values defined in the database-config.json file
30
+	 * and uses the values to create a new connection object.
31
+	 */
32
+	public static function bootstrap()
33
+	{
34
+		$databaseConfigJson = file_get_contents("bin/configs/database-config.json");
35
+
36
+		$databaseConfig = json_decode($databaseConfigJson);
37
+
38
+		$adapter = $databaseConfig->adapter;
39
+		$server = $databaseConfig->server;
40
+		$database = $databaseConfig->database;
41
+		$username = $databaseConfig->username;
42
+		$password = $databaseConfig->password;
43
+
44
+		self::$connectionObject = new Connection($adapter, [$server, $database], $username, $password);
45
+
46
+		if ($databaseConfig->showError)
47
+		{
48
+			self::$connectionObject->getConnection()->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
49
+		}
50
+	}
51
+
52
+	/**
53
+	 * Returns a new connection object
54
+	 * 
55
+	 * @return \PDO
56
+	 */
57
+	public static function getConnection() : \PDO
58
+	{
59
+		self::bootstrap();
60
+		return self::$connectionObject->getConnection();
61
+	}
62 62
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
src/Core/Builder/BuildableInterface.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
  */
20 20
 interface BuildableInterface
21 21
 {
22
-    /**
23
-     * Builds a query object.
24
-     * Must return a string defining an sql statement which
25
-     * must also obey {@see DatabaseQueryableInterface} contract.
26
-     *
27
-     * @throws {@todo Come up with exceptions thrown by this method}
28
-     *
29
-     * @return BuildableInterface
30
-     */
31
-    public function build(string $sqlStringToAppend);
22
+	/**
23
+	 * Builds a query object.
24
+	 * Must return a string defining an sql statement which
25
+	 * must also obey {@see DatabaseQueryableInterface} contract.
26
+	 *
27
+	 * @throws {@todo Come up with exceptions thrown by this method}
28
+	 *
29
+	 * @return BuildableInterface
30
+	 */
31
+	public function build(string $sqlStringToAppend);
32 32
 }
Please login to merge, or discard this patch.
src/Core/Exception/Exception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
src/Core/Connection/Adapters/SQLite.php 3 patches
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -21,106 +21,106 @@
 block discarded – undo
21 21
  */
22 22
 class SQLite implements ConnectableInterface
23 23
 {
24
-    /**
25
-     * @var string $dsn
26
-     */
27
-    protected $dsn;
24
+	/**
25
+	 * @var string $dsn
26
+	 */
27
+	protected $dsn;
28 28
 
29
-    /**
30
-     * @var \PDO $connectionObject
31
-     */
32
-    protected $connectionObject;
29
+	/**
30
+	 * @var \PDO $connectionObject
31
+	 */
32
+	protected $connectionObject;
33 33
 
34
-    /**
35
-     * @var array loginData
36
-     */
37
-    private $loginData = [];
34
+	/**
35
+	 * @var array loginData
36
+	 */
37
+	private $loginData = [];
38 38
 
39
-    /**
40
-     * Setter for the DSN string {@see $dsn}
41
-     *
42
-     * MSSQl Server DSN Structure: sqlsrv:Server={srv};Database={db}"
43
-     * `$dsnArray[0] = {srv}`
44
-     * `$dsnArray[1] = {db}`
45
-     * Attributes = [2 - infinity]
46
-     *
47
-     * @param array $dsnArray
48
-     * @return void
49
-     */
50
-    public function setDsn(array $dsnArray)
51
-    {
52
-        $this->dsn = $dsnArray;
53
-    }
39
+	/**
40
+	 * Setter for the DSN string {@see $dsn}
41
+	 *
42
+	 * MSSQl Server DSN Structure: sqlsrv:Server={srv};Database={db}"
43
+	 * `$dsnArray[0] = {srv}`
44
+	 * `$dsnArray[1] = {db}`
45
+	 * Attributes = [2 - infinity]
46
+	 *
47
+	 * @param array $dsnArray
48
+	 * @return void
49
+	 */
50
+	public function setDsn(array $dsnArray)
51
+	{
52
+		$this->dsn = $dsnArray;
53
+	}
54 54
 
55
-    /**
56
-     * Establishes connection
57
-     *
58
-     * @param string $username
59
-     * @param string $password optional
60
-     * @throws \EmmetBlue\Core\Exception\SQLException
61
-     * @return void
62
-     */
63
-    public function connect(string $username="", string $password="")
64
-    {
65
-        $dbLocation = $this->dsn[0];
55
+	/**
56
+	 * Establishes connection
57
+	 *
58
+	 * @param string $username
59
+	 * @param string $password optional
60
+	 * @throws \EmmetBlue\Core\Exception\SQLException
61
+	 * @return void
62
+	 */
63
+	public function connect(string $username="", string $password="")
64
+	{
65
+		$dbLocation = $this->dsn[0];
66 66
 
67
-        try
68
-        {
69
-            $this->connectionObject = new \PDO("sqlite:$dbLocation");
70
-        }
71
-        catch (\PDOException $e)
72
-        {
73
-            throw new SQLException("Unable to connect to database", 400, $e);  
74
-        }
67
+		try
68
+		{
69
+			$this->connectionObject = new \PDO("sqlite:$dbLocation");
70
+		}
71
+		catch (\PDOException $e)
72
+		{
73
+			throw new SQLException("Unable to connect to database", 400, $e);  
74
+		}
75 75
 
76
-        $dsn = $this->dsn;
77
-        unset($dsn[0]);
76
+		$dsn = $this->dsn;
77
+		unset($dsn[0]);
78 78
         
79
-        foreach ($dsn as $attribute)
80
-        {
81
-            foreach ($attribute as $key=>$value)
82
-            {
83
-                $this->connectionObject->setAttribute($key, $value);
84
-            }
85
-        }
86
-    }
79
+		foreach ($dsn as $attribute)
80
+		{
81
+			foreach ($attribute as $key=>$value)
82
+			{
83
+				$this->connectionObject->setAttribute($key, $value);
84
+			}
85
+		}
86
+	}
87 87
 
88
-    /**
89
-     * Returns an instance a pdo intance of the connection object
90
-     *
91
-     * @return \PDO
92
-     */
93
-    public function getConnection() : \PDO
94
-    {
95
-        if ($this->connectionObject instanceof \PDO)
96
-        {
97
-            return $this->connectionObject;
98
-        }
88
+	/**
89
+	 * Returns an instance a pdo intance of the connection object
90
+	 *
91
+	 * @return \PDO
92
+	 */
93
+	public function getConnection() : \PDO
94
+	{
95
+		if ($this->connectionObject instanceof \PDO)
96
+		{
97
+			return $this->connectionObject;
98
+		}
99 99
 
100
-        $this->connect(
101
-            $this->loginData['username'] ?? '',
102
-            $this->loginData['password'] ?? ''
103
-        );
100
+		$this->connect(
101
+			$this->loginData['username'] ?? '',
102
+			$this->loginData['password'] ?? ''
103
+		);
104 104
 
105
-        return $this->connectionObject;
106
-    }
105
+		return $this->connectionObject;
106
+	}
107 107
 
108
-    /**
109
-     * Closes connection
110
-     */
111
-    public function disableConnection()
112
-    {
113
-        $this->connectionObject = null;
114
-    }
108
+	/**
109
+	 * Closes connection
110
+	 */
111
+	public function disableConnection()
112
+	{
113
+		$this->connectionObject = null;
114
+	}
115 115
 
116
-    /**
117
-     * Sets attributes for the PDO object
118
-     *
119
-     * @param \PDO $attribute
120
-     * @param \PDO $value
121
-     */
122
-    public function setAttribute(\PDO $attribute, \PDO $value)
123
-    {
124
-         $this->connectionObject->setAttribute($attribute, $value);
125
-    }
116
+	/**
117
+	 * Sets attributes for the PDO object
118
+	 *
119
+	 * @param \PDO $attribute
120
+	 * @param \PDO $value
121
+	 */
122
+	public function setAttribute(\PDO $attribute, \PDO $value)
123
+	{
124
+		 $this->connectionObject->setAttribute($attribute, $value);
125
+	}
126 126
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         $dbLocation = $this->dsn[0];
66 66
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
         try
68 68
         {
69 69
             $this->connectionObject = new \PDO("sqlite:$dbLocation");
70
-        }
71
-        catch (\PDOException $e)
70
+        } catch (\PDOException $e)
72 71
         {
73 72
             throw new SQLException("Unable to connect to database", 400, $e);  
74 73
         }
Please login to merge, or discard this patch.
src/Core/Logger/ErrorLog.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
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)
26
-    {
27
-        /**
28
-         * For now I am not doing anything with $errorObject yet.
29
-         *
30
-         * As soon as it can be properly serialized for the MSSQL Server db
31
-         * it shall be saved in the database.
32
-         *
33
-         * FUNNY: I'M GONNA INTENTIONALLY LEAVE THIS COMMIT FOR MY AMUSEMENT
34
-         * $errorObject, wasn't the issue. My DB schema was.
35
-         */
36
-        $insertBuilder = (new Builder("QueryBuilder", "Insert"))->getBuilder();
25
+	public static function log(int $databaseUserId, string $errorNumber, string $errorSeverity, string $errorMessage, string $errorObject=null)
26
+	{
27
+		/**
28
+		 * For now I am not doing anything with $errorObject yet.
29
+		 *
30
+		 * As soon as it can be properly serialized for the MSSQL Server db
31
+		 * it shall be saved in the database.
32
+		 *
33
+		 * FUNNY: I'M GONNA INTENTIONALLY LEAVE THIS COMMIT FOR MY AMUSEMENT
34
+		 * $errorObject, wasn't the issue. My DB schema was.
35
+		 */
36
+		$insertBuilder = (new Builder("QueryBuilder", "Insert"))->getBuilder();
37 37
 
38
-        $insertBuilder
39
-            ->into('
38
+		$insertBuilder
39
+			->into('
40 40
                 [Logs].[ErrorLog]
41 41
                 (
42 42
                     ErrorTime,
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
                     ErrorMessage
47 47
                 )
48 48
             ')
49
-            ->values([
50
-                'GETDATE()',
51
-                $databaseUserId,
52
-                QB::wrapString($errorNumber, "'"),
53
-                QB::wrapString($errorSeverity, "'"),
54
-                QB::wrapString($errorMessage, "'")
55
-            ]);
49
+			->values([
50
+				'GETDATE()',
51
+				$databaseUserId,
52
+				QB::wrapString($errorNumber, "'"),
53
+				QB::wrapString($errorSeverity, "'"),
54
+				QB::wrapString($errorMessage, "'")
55
+			]);
56 56
             
57
-        DBConnectionFactory::getConnection()->query((string)$insertBuilder);
58
-    }
57
+		DBConnectionFactory::getConnection()->query((string)$insertBuilder);
58
+	}
59 59
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
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
 /**
17 16
  * Class ErrorLog
Please login to merge, or discard this patch.
src/Core/Logger/DatabaseLog.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
  */
23 23
 class DatabaseLog implements LogInterface
24 24
 {
25
-    public static function log(string $databaseUserId, string $event, string $objectSchema, string $object, string $tSql)
26
-    {
27
-        $insertBuilder = (new Builder("QueryBuilder", "Insert"))->getBuilder();
28
-        try {
29
-            $insertBuilder
30
-                ->into('
25
+	public static function log(string $databaseUserId, string $event, string $objectSchema, string $object, string $tSql)
26
+	{
27
+		$insertBuilder = (new Builder("QueryBuilder", "Insert"))->getBuilder();
28
+		try {
29
+			$insertBuilder
30
+				->into('
31 31
                     [Logs].[DatabaseLog]
32 32
                     (
33 33
                         PostTime,
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
                         TSQL
39 39
                     )
40 40
                 ')
41
-                ->values([
42
-                    'GETDATE()',
43
-                    QB::wrapString($databaseUserId, "'"),
44
-                    QB::wrapString((string)$event, "'"),
45
-                    QB::wrapString($objectSchema, "'"),
46
-                    QB::wrapString($object, "'"),
47
-                    QB::wrapString(str_replace("'", "\"", $tSql), "'")
48
-                ]);
41
+				->values([
42
+					'GETDATE()',
43
+					QB::wrapString($databaseUserId, "'"),
44
+					QB::wrapString((string)$event, "'"),
45
+					QB::wrapString($objectSchema, "'"),
46
+					QB::wrapString($object, "'"),
47
+					QB::wrapString(str_replace("'", "\"", $tSql), "'")
48
+				]);
49 49
 
50
-            DBConnectionFactory::getConnection()->query((string)$insertBuilder);
51
-        } catch (\PDOException $e) {
52
-            echo $e->getMessage();
53
-            throw new SQLException(sprintf(
54
-                    "Unable to store database log"
55
-                ), 1);
56
-        }
57
-    }
50
+			DBConnectionFactory::getConnection()->query((string)$insertBuilder);
51
+		} catch (\PDOException $e) {
52
+			echo $e->getMessage();
53
+			throw new SQLException(sprintf(
54
+					"Unable to store database log"
55
+				), 1);
56
+		}
57
+	}
58 58
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Core/Logger/LogInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.