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.
Test Setup Failed
Push — master ( c5ade0...e039e4 )
by Gabriel
05:51
created
src/Utility/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public static function toAscii($str, $replace = [], $delimiter = '-')
19 19
     {
20 20
         if (!empty($replace)) {
21
-            $str = str_replace((array)$replace, ' ', $str);
21
+            $str = str_replace((array) $replace, ' ', $str);
22 22
         }
23 23
 
24 24
         $clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
Please login to merge, or discard this patch.
src/form/Elements/Timeselect.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
             $hoursElement = $this->getForm()->getNewElement('select');
18 18
 
19 19
             $hoursElement->addOption('-', 'HH');
20
-            for ($i=0; $i<=24 ; $i++) {
21
-                $hoursElement->addOption($i, $i.'h');
20
+            for ($i = 0; $i <= 24; $i++) {
21
+                $hoursElement->addOption($i, $i . 'h');
22 22
             }
23 23
             $hoursElement->setValue('-');
24 24
 
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
             $minutesElement = $this->getForm()->getNewElement('select');
31 31
 
32 32
             $minutesElement->addOption('-', 'MM');
33
-            for ($i=0; $i<=59 ; $i++) {
34
-                $minutesElement->addOption($i, $i.'m');
33
+            for ($i = 0; $i <= 59; $i++) {
34
+                $minutesElement->addOption($i, $i . 'm');
35 35
             }
36 36
             $minutesElement->setValue('-');
37 37
 
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
             $secondsElement = $this->getForm()->getNewElement('select');
43 43
 
44 44
             $secondsElement->addOption('-', 'SS');
45
-            for ($i=0; $i<=59 ; $i++) {
46
-                $secondsElement->addOption($i, $i.'s');
45
+            for ($i = 0; $i <= 59; $i++) {
46
+                $secondsElement->addOption($i, $i . 's');
47 47
             }
48 48
             $secondsElement->setValue('-');
49 49
 
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
         $hour = intval($this->elements['hours']->getValue());
126 126
         $minutes = intval($this->elements['minutes']->getValue());
127 127
         $seconds = intval($this->elements['seconds']->getValue());
128
-        if ($hour+$minutes+$seconds > 0) {
129
-            return mktime($hour,$minutes,$seconds);
128
+        if ($hour + $minutes + $seconds > 0) {
129
+            return mktime($hour, $minutes, $seconds);
130 130
         }
131 131
         return false;
132 132
     }
Please login to merge, or discard this patch.
src/form/Elements/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
             $name = str_replace(']', '', $name);
18 18
             $parts = explode('[', $name);
19 19
 
20
-            if (count($parts) > 1 ) {
20
+            if (count($parts) > 1) {
21 21
                 if ($_FILES[$parts[0]]) {
22 22
                     $fileData = [];
23 23
                     foreach ($_FILES[$parts[0]] as $key=>$data) {
Please login to merge, or discard this patch.
src/form/Elements/Select.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function addOptionsArray($options, $valueKey, $labelKey)
14 14
     {
15 15
         foreach ($options as $key => $option) {
16
-            $option = (object)$option;
16
+            $option = (object) $option;
17 17
 
18 18
             $oValue = $option->$valueKey;
19 19
             $oLabel = $option->$labelKey;
Please login to merge, or discard this patch.
src/form/Elements/CheckboxGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $element = $this->getForm()->getNewElement('checkbox');
40 40
         $name = $this->getName();
41 41
         if (!strpos($name, '[]')) {
42
-            $name = $name .'[]';
42
+            $name = $name . '[]';
43 43
         }
44 44
         $element->setName($name);
45 45
         return $element;
Please login to merge, or discard this patch.
src/form/Elements/Input_Group.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
 
21 21
             $oValue    = $option->$valueKey;
22
-            $oLabel   = $option->$labelKey;
22
+            $oLabel = $option->$labelKey;
23 23
             $oDisabled = $option->disabled;
24 24
 
25 25
             if ($oDisabled) {
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * @return Nip_Form_Element_Input_Group
36 36
      */
37
-    public function addOption($value, $label , $attribs=array()) {
37
+    public function addOption($value, $label, $attribs = array()) {
38 38
         $element = $this->getNewElement();
39 39
         $element->setValue($value);
40 40
         $element->setLabel($label);
Please login to merge, or discard this patch.
src/Database/Query/Update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function assemble()
16 16
     {
17
-        $query = "UPDATE ".$this->protect($this->getTable())." SET ".$this->parseUpdate();
17
+        $query = "UPDATE " . $this->protect($this->getTable()) . " SET " . $this->parseUpdate();
18 18
 
19 19
         $query .= $this->assembleWhere();
20 20
         $query .= $this->assembleLimit();
Please login to merge, or discard this patch.
src/Database/Metadata/Cache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function getCacheId($table)
35 35
     {
36
-        return $this->getConnection()->getDatabase().'.'.$table;
36
+        return $this->getConnection()->getDatabase() . '.' . $table;
37 37
     }
38 38
 
39 39
     /**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function cachePath()
104 104
     {
105
-        return parent::cachePath().'/db-metadata/';
105
+        return parent::cachePath() . '/db-metadata/';
106 106
     }
107 107
 
108 108
 }
109 109
\ No newline at end of file
Please login to merge, or discard this patch.
src/Database/DatabaseServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             ->withArgument(Application::class)
42 42
             ->withArgument(ConnectionFactory::class);
43 43
 
44
-        $this->getContainer()->share('db.connection', function () {
44
+        $this->getContainer()->share('db.connection', function() {
45 45
             return app('db')->connection();
46 46
         });
47 47
     }
@@ -51,6 +51,6 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function provides()
53 53
     {
54
-        return ['db','db.factory','db.connection'];
54
+        return ['db', 'db.factory', 'db.connection'];
55 55
     }
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.