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.
Passed
Branch master (970ea7)
by Anton
02:59
created
src/Kachit/Helper/ArrayHelper.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Array helper
4
- *
5
- * @author Kachit
6
- * @package Kachit\Helper
7
- */
3
+     * Array helper
4
+     *
5
+     * @author Kachit
6
+     * @package Kachit\Helper
7
+     */
8 8
 namespace Kachit\Helper;
9 9
 
10 10
 class ArrayHelper {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
             return array_column($array, $valueParam, $keyParam);
34 34
         }
35 35
         $data = array();
36
-        if(!empty($array)) {
37
-            foreach($array as $key => $value) {
38
-                if(empty($keyParam)) {
36
+        if (!empty($array)) {
37
+            foreach ($array as $key => $value) {
38
+                if (empty($keyParam)) {
39 39
                     $data[$key] = $value[$valueParam];
40 40
                 } else {
41 41
                     $data[$value[$keyParam]] = $value[$valueParam];
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function extract(array $array, array $keys) {
107 107
         $found = [];
108
-        if($array && $keys) {
108
+        if ($array && $keys) {
109 109
             foreach ($keys as $key) {
110 110
                 if ($this->keyExist($array, $key)) {
111 111
                     $found[$key] = $array[$key];
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @return array
124 124
      */
125 125
     public function exclude(array $array, array $keys) {
126
-        if($array && $keys) {
126
+        if ($array && $keys) {
127 127
             foreach ($keys as $key) {
128 128
                 $this->delete($array, $key);
129 129
             }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
             $keyPosition++;
183 183
         }
184 184
 
185
-        if (false !== $keyPosition ) {
185
+        if (false !== $keyPosition) {
186 186
             $result = array_slice($array, 0, $keyPosition);
187 187
             $result = array_merge($result, $insert);
188 188
             $result = array_merge($result, array_slice($array, $keyPosition));
Please login to merge, or discard this patch.
src/Kachit/Helper/ArrayHelperTrait.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Array helper trait
4
- *
5
- * @author Kachit
6
- * @package Kachit\Helper
7
- */
3
+     * Array helper trait
4
+     *
5
+     * @author Kachit
6
+     * @package Kachit\Helper
7
+     */
8 8
 namespace Kachit\Helper;
9 9
 
10 10
 trait ArrayHelperTrait {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      * @return ArrayHelper
21 21
      */
22 22
     protected function getArrayHelper() {
23
-        if(empty($this->ArrayHelper)) {
23
+        if (empty($this->ArrayHelper)) {
24 24
             $this->ArrayHelper = new ArrayHelper();
25 25
         }
26 26
         return $this->ArrayHelper;
Please login to merge, or discard this patch.