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 — develop ( c0787d...9e1273 )
by Gabriel
05:23
created
src/form/Traits/MagicMethodElementsFormTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @param $type
93
+     * @param string[] $type
94 94
      * @return boolean
95 95
      */
96 96
     public function isElementsType($type)
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-     * @param $type
118
+     * @param string[] $type
119 119
      * @param $arguments
120 120
      * @return mixed
121 121
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             return $addElements;
56 56
         }
57 57
 
58
-        trigger_error('Call to undefined method: ['.$name.']', E_USER_ERROR);
58
+        trigger_error('Call to undefined method: [' . $name . ']', E_USER_ERROR);
59 59
 
60 60
         return $this;
61 61
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             if ($this->isElementsType($type)) {
74 74
                 return $this->magicMethodAddElement($type, $arguments);
75 75
             } else {
76
-                trigger_error('Undefined element type for add operation: ['.$type.']', E_USER_ERROR);
76
+                trigger_error('Undefined element type for add operation: [' . $type . ']', E_USER_ERROR);
77 77
             }
78 78
         }
79 79
 
Please login to merge, or discard this patch.
src/Helpers/Url.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @param $name
44 44
      * @param bool $params
45
-     * @return mixed
45
+     * @return string|null
46 46
      */
47 47
     public function assemble($name, $params = false)
48 48
     {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @param $name
54 54
      * @param bool $params
55
-     * @return mixed
55
+     * @return string|null
56 56
      */
57 57
     public function get($name, $params = false)
58 58
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @param $name
64 64
      * @param bool $params
65
-     * @return mixed|string
65
+     * @return string|null
66 66
      */
67 67
     public function route($name, $params = false)
68 68
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $currentRoute = $this->getRouter()->getCurrent();
83 83
         $base = $currentRoute ? $currentRoute->getBase($params) : request()->root();
84 84
 
85
-        return $base.($params ? "?".http_build_query($params) : '');
85
+        return $base . ($params ? "?" . http_build_query($params) : '');
86 86
     }
87 87
 
88 88
     /**
Please login to merge, or discard this patch.
src/Helpers/View/CachebleBlocks/Abstract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-     * @param $manager
47
+     * @param  $manager
48 48
      * @return $this
49 49
      */
50 50
     public function setManager($manager)
Please login to merge, or discard this patch.
src/Helpers/View/GoogleAnalytics.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
     }
131 131
 
132 132
     /**
133
-     * @param $method
133
+     * @param string $method
134 134
      * @param array $params
135 135
      * @param string $position
136 136
      * @return $this
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         if ($transactions) {
235 235
             foreach ($transactions as $transaction) {
236
-                $this->addOperation($prefix.'_addTrans', [
236
+                $this->addOperation($prefix . '_addTrans', [
237 237
                     $transaction->orderId,
238 238
                     $transaction->affiliation,
239 239
                     $transaction->total,
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 
247 247
                 if ($transaction->items) {
248 248
                     foreach ($transaction->items as $item) {
249
-                        $this->addOperation($prefix.'_addItem', [
249
+                        $this->addOperation($prefix . '_addItem', [
250 250
                             $item->orderId,
251 251
                             $item->sku,
252 252
                             $item->name,
Please login to merge, or discard this patch.
src/Helpers/view/HTML.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param $string
23 23
      * @param $tree
24 24
      * @param bool $selected
25
-     * @return bool|string
25
+     * @return string|false
26 26
      */
27 27
     public function treeOptions($value, $string, $tree, $selected = false)
28 28
     {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param $string
38 38
      * @param array $array
39 39
      * @param int $level
40
-     * @return array
40
+     * @return boolean
41 41
      */
42 42
     public function optionTree(
43 43
         $tree,
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @param $options
76
+     * @param string $options
77 77
      * @param bool $value
78 78
      * @param bool $string
79 79
      * @param bool $selected
80
-     * @return bool|string
80
+     * @return string|false
81 81
      */
82 82
     public function options(
83 83
         $options,
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
     {
10 10
         $return = "";
11 11
 
12
-        $return .= '<option value="0"'.($selected !== "" && $selected == '0' ? ' selected="selected"'
13
-                : '').'>'.translator()->translate("NO").'</option>';
14
-        $return .= '<option value="1"'.($selected == '1' ? ' selected="selected"'
15
-                : '').'>'.translator()->translate("YES").'</option>';
12
+        $return .= '<option value="0"' . ($selected !== "" && $selected == '0' ? ' selected="selected"'
13
+                : '') . '>' . translator()->translate("NO") . '</option>';
14
+        $return .= '<option value="1"' . ($selected == '1' ? ' selected="selected"'
15
+                : '') . '>' . translator()->translate("YES") . '</option>';
16 16
 
17 17
         return $return;
18 18
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $return = '';
90 90
             foreach ($options as $key => $option) {
91 91
                 if (is_string($key) && is_array($option) && !isset($option[$value])) {
92
-                    $return .= '<optgroup label="'.$key.'">';
92
+                    $return .= '<optgroup label="' . $key . '">';
93 93
                     $return .= $this->options($option, $value, $string,
94 94
                         $selected);
95 95
                     $return .= '</optgroup>';
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                     $oDisabled = ($oDisabled === true) ? ' disabled="disabled" '
116 116
                         : '';
117 117
 
118
-                    $return .= '<option value="'.$oValue.'"'.$oSelected.''.$oDisabled.'>'.$oString.'</option>';
118
+                    $return .= '<option value="' . $oValue . '"' . $oSelected . '' . $oDisabled . '>' . $oString . '</option>';
119 119
                 }
120 120
             }
121 121
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                     $oString = $option;
150 150
                 }
151 151
                 $oSelected = ($oValue == $selected) ? ' checked="checked" ' : '';
152
-                $return .= '<input type="radio" name="'.$name.'" value="'.$oValue.'" '.$oSelected.' >'.$oString.$separator;
152
+                $return .= '<input type="radio" name="' . $name . '" value="' . $oValue . '" ' . $oSelected . ' >' . $oString . $separator;
153 153
             }
154 154
 
155 155
             return $return;
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             }
186 186
         }
187 187
 
188
-        return " ".implode(" ", $return);
188
+        return " " . implode(" ", $return);
189 189
     }
190 190
 
191 191
     /**
Please login to merge, or discard this patch.
src/Html/Head/Entities/Favicon.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     protected $tags = [];
25 25
 
26 26
     /**
27
-     * @return array
27
+     * @return AbstractTag[]
28 28
      */
29 29
     public function getTags()
30 30
     {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @param $path
43
+     * @param string $path
44 44
      * @return string
45 45
      */
46 46
     public function generateUrl($path)
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @param null $baseDir
64
+     * @param string $baseDir
65 65
      */
66 66
     public function setBaseDir($baseDir)
67 67
     {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     /**
85 85
      * @param AbstractTag $tag
86
-     * @param null $name
86
+     * @param string $name
87 87
      * @return $this
88 88
      */
89 89
     public function addTag($tag, $name = null)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function generateUrl($path)
47 47
     {
48
-        return $this->getBaseDir().$path;
48
+        return $this->getBaseDir() . $path;
49 49
     }
50 50
 
51 51
     /**
@@ -127,11 +127,11 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function addDefault($size)
129 129
     {
130
-        $fullSize = $size.'x'.$size;
130
+        $fullSize = $size . 'x' . $size;
131 131
         $tag = new LinkIcon();
132 132
         $tag->setSizes($fullSize)
133
-            ->setHref($this->generateUrl('/favicon-'.$fullSize.'.png'));
134
-        $this->addTag($tag, 'default-'.$fullSize);
133
+            ->setHref($this->generateUrl('/favicon-' . $fullSize . '.png'));
134
+        $this->addTag($tag, 'default-' . $fullSize);
135 135
     }
136 136
 
137 137
     public function addAndroidIcon()
Please login to merge, or discard this patch.
src/I18n/Translator/Backend/AbstractBackend.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     abstract protected function doTranslation($slug, $language = false);
74 74
 
75 75
     /**
76
-     * @param $slug
76
+     * @param boolean|string $slug
77 77
      * @param bool $language
78 78
      * @return bool
79 79
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,6 +81,6 @@
 block discarded – undo
81 81
     {
82 82
         $return = $this->doTranslation($slug, $language);
83 83
 
84
-        return (bool)$return;
84
+        return (bool) $return;
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/I18n/Translator/Backend/Database.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      * Adds a language to the dictionary
34 34
      *
35 35
      * @param string $language
36
-     * @return I18n
36
+     * @return Database
37 37
      */
38 38
     public function addLanguage($language)
39 39
     {
Please login to merge, or discard this patch.
src/Mail/Transport/SendgridTransport.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param $emailTo
119 119
      * @param $nameTo
120 120
      * @param Message $message
121
-     * @param $i
121
+     * @param integer $i
122 122
      * @return Personalization
123 123
      */
124 124
     protected function generatePersonalization($emailTo, $nameTo, $message, $i)
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     }
217 217
 
218 218
     /**
219
-     * @return array
219
+     * @return string[]
220 220
      */
221 221
     protected function getSupportedContentTypes()
222 222
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
             return 1;
55 55
         } else {
56 56
             throw new Swift_TransportException(
57
-                'Error sending email Code ['.$response->statusCode().']. '.
58
-                $response->body().$response->headers()
57
+                'Error sending email Code [' . $response->statusCode() . ']. ' .
58
+                $response->body() . $response->headers()
59 59
             );
60 60
         }
61 61
     }
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
             if (is_array($value)) {
136 136
                 $value = $value[$i];
137 137
             }
138
-            $value = (string)$value;
139
-            $personalization->addSubstitution('{{'.$varKey.'}}', $value);
138
+            $value = (string) $value;
139
+            $personalization->addSubstitution('{{' . $varKey . '}}', $value);
140 140
         }
141 141
 
142 142
         return $personalization;
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             if ($key == 'category') {
251 251
                 $this->getMail()->addCategory($value);
252 252
             } else {
253
-                $this->getMail()->addCustomArg($key, (string)$value);
253
+                $this->getMail()->addCustomArg($key, (string) $value);
254 254
             }
255 255
         }
256 256
     }
Please login to merge, or discard this patch.