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
Branch master (3852ca)
by Roelof Jan
05:13
created
Category
src/Content.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     {
66 66
         $paragraphs = HtmlParser::getTextBetweenTags($this->content(), 'p');
67 67
 
68
-        $paragraphs_with_text_content = array_filter($paragraphs, function ($paragraph) {
68
+        $paragraphs_with_text_content = array_filter($paragraphs, function($paragraph) {
69 69
             return !empty(strip_tags($paragraph));
70 70
         });
71 71
 
Please login to merge, or discard this patch.
src/Collections/MediaCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function onlyFullSize()
10 10
     {
11 11
         return $this
12
-            ->filter(function (\SplFileInfo $image) {
12
+            ->filter(function(\SplFileInfo $image) {
13 13
                 return strpos($image->getFilename(), '_w300') === false;
14 14
             });
15 15
     }
Please login to merge, or discard this patch.
src/HtmlParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
         $dom_document->loadHTML($string);
19 19
 
20 20
         return collect($dom_document->getElementsByTagName($tagname))
21
-            ->filter(function ($dom_element) {
21
+            ->filter(function($dom_element) {
22 22
                 return self::hasSingleChildNode($dom_element);
23 23
             })
24
-            ->map(function ($dom_element) use ($attribute) {
24
+            ->map(function($dom_element) use ($attribute) {
25 25
                 return $dom_element->$attribute;
26 26
             })
27 27
             ->toArray();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $dom_document->loadHTML($string);
40 40
 
41 41
         return collect($dom_document->getElementsByTagName($tagname))
42
-            ->map(function ($dom_element) use ($source) {
42
+            ->map(function($dom_element) use ($source) {
43 43
                 return $dom_element->getAttribute($source);
44 44
             })
45 45
             ->toArray();
Please login to merge, or discard this patch.
src/AloiaCmsServiceProvider.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
      */
40 40
     private function bindFacades()
41 41
     {
42
-        $this->app->bind('AloiaCmsBlock', function () {
42
+        $this->app->bind('AloiaCmsBlock', function() {
43 43
             return new ContentBlock();
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/Media.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      */
76 76
     private function createImagesPathIfNotExisting(string $image_path)
77 77
     {
78
-        if (! file_exists($image_path)) {
78
+        if (!file_exists($image_path)) {
79 79
             mkdir($image_path);
80 80
         }
81 81
     }
Please login to merge, or discard this patch.
src/InlineBlockParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $files_in_folder = File::allFiles($folder_path);
53 53
 
54
-        $requested_files = array_values(array_filter($files_in_folder, function (\SplFileInfo $file) use ($block_name) {
54
+        $requested_files = array_values(array_filter($files_in_folder, function(\SplFileInfo $file) use ($block_name) {
55 55
             $filename = str_replace(".{$file->getExtension()}", "", $file->getFilename());
56 56
 
57 57
             return $filename === $block_name;
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     private function wrapperAttributes(string $options_string): Collection
191 191
     {
192 192
         return Collection::make(explode(',', $options_string))
193
-            ->map(function (string $option_string) {
193
+            ->map(function(string $option_string) {
194 194
                 return explode('=', $option_string);
195 195
             });
196 196
     }
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     private function linkAttributes(string $options_string): string
205 205
     {
206 206
         $attributes = $this->wrapperAttributes($options_string)
207
-            ->filter(function (array $option) {
207
+            ->filter(function(array $option) {
208 208
                 return in_array($option[0], ['href']);
209 209
             });
210 210
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     private function blockAttributes(string $options_string): string
221 221
     {
222 222
         $attributes = $this->wrapperAttributes($options_string)
223
-            ->filter(function (array $option) {
223
+            ->filter(function(array $option) {
224 224
                 return in_array($option[0], ['class', 'id', 'style']);
225 225
             });
226 226
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     private function toAttributesString(Collection $attributes): string
237 237
     {
238 238
         return $attributes
239
-            ->reduce(function (string $carry, array $option_pair) {
239
+            ->reduce(function(string $carry, array $option_pair) {
240 240
                 return "{$carry}{$option_pair[0]}=\"{$option_pair[1]}\" ";
241 241
             }, ' ');
242 242
     }
Please login to merge, or discard this patch.
src/TagsParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
         $default_tags = $this->getDefaultTags();
30 30
 
31
-        $filtered_array = array_filter($all_tags, function ($tags, $pageName) use ($name) {
31
+        $filtered_array = array_filter($all_tags, function($tags, $pageName) use ($name) {
32 32
             return $pageName === $name;
33 33
         }, 1);
34 34
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $parsed_config = $this->parseConfigFile();
50 50
 
51 51
         $default_tags = Collection::make($parsed_config['tags'])
52
-            ->filter(function ($tags, $pageName) {
52
+            ->filter(function($tags, $pageName) {
53 53
                 return $pageName === 'default';
54 54
             })
55 55
             ->first();
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $parsed_config = $this->parseConfigFile();
103 103
 
104 104
         return Collection::make($parsed_config['tags'])
105
-            ->mapWithKeys(function ($tags, $pageName) {
105
+            ->mapWithKeys(function($tags, $pageName) {
106 106
                 return [$pageName => $this->convertArrayToStdClass($tags)];
107 107
             })
108 108
             ->toArray();
Please login to merge, or discard this patch.
src/Models/Traits/Publishable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public static function published(): Collection
26 26
     {
27 27
         return self::all()
28
-            ->filter(function ($model) {
28
+            ->filter(function($model) {
29 29
                 return $model->isPublished();
30 30
             })
31 31
             ->values();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     public static function scheduled(): Collection
50 50
     {
51 51
         return self::all()
52
-            ->filter(function ($model) {
52
+            ->filter(function($model) {
53 53
                 return $model->isScheduled();
54 54
             })
55 55
             ->values();
Please login to merge, or discard this patch.
src/Models/Model.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $files = File::allFiles($instance->getFolderPath());
57 57
 
58 58
         return Collection::make($files)
59
-            ->map(function (\SplFileInfo $fileInfo): ModelInterface {
59
+            ->map(function(\SplFileInfo $fileInfo): ModelInterface {
60 60
                 return self::find(pathinfo($fileInfo->getFilename(), PATHINFO_FILENAME));
61 61
             });
62 62
     }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      */
296 296
     private function getFileMatchFromDisk(): ?string
297 297
     {
298
-        return Arr::first($this->getModelFiles(), function (string $file_name) {
298
+        return Arr::first($this->getModelFiles(), function(string $file_name) {
299 299
             return strpos($file_name, "/{$this->file_name}.");
300 300
         });
301 301
     }
Please login to merge, or discard this patch.