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 ( c609dc...4389c4 )
by Samuel
02:09
created
src/Core/Factory/ElasticSearchClientFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
 	{
27 27
 		$configJson = file_get_contents(Constant::getGlobals()["config-dir"]["elasticsearch-config"]);
28 28
 
29
-        $config = json_decode($configJson, true);
29
+		$config = json_decode($configJson, true);
30 30
 
31
-        self::$clientObject = \Elasticsearch\ClientBuilder::create()->setHosts($config["hosts"])->build();
31
+		self::$clientObject = \Elasticsearch\ClientBuilder::create()->setHosts($config["hosts"])->build();
32 32
 	}
33 33
 
34 34
 	public static function getClient()
Please login to merge, or discard this patch.
src/Core/Logger/DatabaseLog.php 1 patch
Indentation   +24 added lines, -24 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 logDeprecated(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 logDeprecated(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,25 +38,25 @@  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
 
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
 }
Please login to merge, or discard this patch.
src/Core/Logger/ErrorLog.php 1 patch
Indentation   +25 added lines, -25 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 logDeprecated(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 logDeprecated(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,18 +46,18 @@  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
 
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
 }
Please login to merge, or discard this patch.
src/Core/Constant.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -19,50 +19,50 @@
 block discarded – undo
19 19
  */
20 20
 class Constant
21 21
 {
22
-    /**
23
-     * Events
24
-     */
25
-    const EVENT_INSERT = 'EVENT: INSERT DML EVENT';
26
-    const EVENT_SELECT = 'EVENT: SELECT DML EVENT';
27
-    const EVENT_UPDATE = 'EVENT: UPDATE DML EVENT';
22
+	/**
23
+	 * Events
24
+	 */
25
+	const EVENT_INSERT = 'EVENT: INSERT DML EVENT';
26
+	const EVENT_SELECT = 'EVENT: SELECT DML EVENT';
27
+	const EVENT_UPDATE = 'EVENT: UPDATE DML EVENT';
28 28
 
29
-    /**
30
-     * @author Lucky Bardeson
31
-     */
32
-    const EVENT_DELETE = 'EVENT: DELETE DML EVENT';
29
+	/**
30
+	 * @author Lucky Bardeson
31
+	 */
32
+	const EVENT_DELETE = 'EVENT: DELETE DML EVENT';
33 33
 
34
-    /**
35
-     * Error Numbers
36
-     */
37
-    const ERROR_401 = 'ERROR_401: Resource Inaccessible';
38
-    const ERROR_402 = 'ERROR_402: Resource Requirements Not Met';
39
-    const ERROR_403 = 'ERROR_403: Resource Not Writable';
40
-    const ERROR_404 = 'ERROR_404: Resource Not Found';
34
+	/**
35
+	 * Error Numbers
36
+	 */
37
+	const ERROR_401 = 'ERROR_401: Resource Inaccessible';
38
+	const ERROR_402 = 'ERROR_402: Resource Requirements Not Met';
39
+	const ERROR_403 = 'ERROR_403: Resource Not Writable';
40
+	const ERROR_404 = 'ERROR_404: Resource Not Found';
41 41
 
42
-    /**
43
-     * Error Severities
44
-     */
45
-    const ERROR_HIGH = 'ERROR_SEVERITY: HIGH';
46
-    const ERROR_LOW = 'ERROR_SEVERITY: LOW';
47
-    const ERROR_NORMAL = 'ERROR_SEVERITY: NORMAL';
42
+	/**
43
+	 * Error Severities
44
+	 */
45
+	const ERROR_HIGH = 'ERROR_SEVERITY: HIGH';
46
+	const ERROR_LOW = 'ERROR_SEVERITY: LOW';
47
+	const ERROR_NORMAL = 'ERROR_SEVERITY: NORMAL';
48 48
 
49
-    /**
50
-     * 
51
-     */
52
-    const UNDEFINED = 0;
49
+	/**
50
+	 * 
51
+	 */
52
+	const UNDEFINED = 0;
53 53
 
54
-    public static function getGlobals($config = "configs") {        
55
-        if (is_file("globals.json")){
56
-            $globalLoc = json_decode(file_get_contents("globals.json"), true);
54
+	public static function getGlobals($config = "configs") {        
55
+		if (is_file("globals.json")){
56
+			$globalLoc = json_decode(file_get_contents("globals.json"), true);
57 57
 
58
-            if (isset($globalLoc["globals"])){
59
-                $file = $globalLoc["globals".".json";
58
+			if (isset($globalLoc["globals"])){
59
+				$file = $globalLoc["globals".".json";
60 60
 
61
-                return json_decode(file_get_contents($file), true);
62
-            }
63
-        }
61
+				return json_decode(file_get_contents($file), true);
62
+			}
63
+		}
64 64
 
65
-        throw new Exception\UndefinedValueException("No configuration data set.", 0);
65
+		throw new Exception\UndefinedValueException("No configuration data set.", 0);
66 66
 
67
-    }
67
+	}
68 68
 }
Please login to merge, or discard this patch.