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
Push — master ( 65eb19...052f41 )
by Thijs
02:39
created
src/FileSignatureUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         }
32 32
         $signatureChars = str_split($signature, 2);
33 33
         $hexChars = array_map(
34
-            function ($val) {
34
+            function($val) {
35 35
                 return strtoupper(bin2hex($val));
36 36
             },
37 37
             str_split(substr($string, 0, count($signatureChars)))
Please login to merge, or discard this patch.
src/FormatUtils.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
      * @var array
12 12
      */
13 13
     protected static $formats = [
14
-        'decimal' => [ //  SI Prefixes (decimal)
14
+        'decimal' => [//  SI Prefixes (decimal)
15 15
             'mod' => 1000,
16 16
             'units' => ['B', 'kB', 'MB', 'GB', 'TB', 'PB'],
17 17
         ],
18
-        'binary' => [ // IEC prefixes (binary)
18
+        'binary' => [// IEC prefixes (binary)
19 19
             'mod' => 1024,
20 20
             'units' => ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB'],
21 21
         ],
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
         }
40 40
 
41 41
         $format = self::$formats[$format];
42
-        $precision = (int) $precision;
42
+        $precision = (int)$precision;
43 43
 
44 44
         /** @var float $base */
45
-        $base = log((float) $size, $format['mod']);
46
-        $key = (int) floor($base);
45
+        $base = log((float)$size, $format['mod']);
46
+        $key = (int)floor($base);
47 47
 
48 48
         $value = round(pow($format['mod'], $base - floor($base)), $precision);
49 49
 
Please login to merge, or discard this patch.
src/JsonUtils.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
         if (!is_string($json)) {
42 42
             throw new \InvalidArgumentException('Argument json is not a string');
43 43
         }
44
-        $result = json_decode($json, (bool) $assoc, 512, (int) $options);
44
+        $result = json_decode($json, (bool)$assoc, 512, (int)$options);
45 45
         if ($result === null) {
46 46
             throw new \RuntimeException(static::$errorMessages[json_last_error()]);
47 47
         }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public static function encode($value, $options = 0)
65 65
     {
66
-        $result = json_encode($value, (int) $options);
66
+        $result = json_encode($value, (int)$options);
67 67
         // @codeCoverageIgnoreStart
68 68
         if ($result === false) {
69 69
             throw new \RuntimeException(static::$errorMessages[json_last_error()]);
Please login to merge, or discard this patch.
src/StdClassUtils.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 static function stdClassToArray(\stdClass $object)
16 16
     {
17
-        $object = (array) $object;
17
+        $object = (array)$object;
18 18
         foreach ($object as &$value) {
19 19
             if ($value instanceof \stdClass) {
20 20
                 $value = self::stdClassToArray($value);
Please login to merge, or discard this patch.
src/ArrayUtils.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         return array_filter(
76 76
             $array,
77
-            function ($key) use ($value) {
77
+            function($key) use ($value) {
78 78
                 return strpos($key, $value) === 0;
79 79
             },
80 80
             ARRAY_FILTER_USE_KEY
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     {
114 114
         return array_combine(
115 115
             array_map(
116
-                function ($key) use ($prefix, $separator) {
116
+                function($key) use ($prefix, $separator) {
117 117
                     return $prefix . $separator . $key;
118 118
                 },
119 119
                 array_keys($array)
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public static function isAssociativeArray(array $input)
133 133
     {
134
-        return (bool) count(array_filter(array_keys($input), 'is_string'));
134
+        return (bool)count(array_filter(array_keys($input), 'is_string'));
135 135
     }
136 136
 
137 137
     /**
Please login to merge, or discard this patch.