Test Failed
Push — ft/slim-to-filepond ( 80c821 )
by Philippe
23:02 queued 10s
created
src/HealthMonitor/Checks/HealthCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\HealthMonitor\Checks;
6 6
 
Please login to merge, or discard this patch.
src/HealthMonitor/Notifiers/AlertBarNotifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\HealthMonitor\Notifiers;
6 6
 
Please login to merge, or discard this patch.
src/HealthMonitor/Checks/HomepageCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\HealthMonitor\Checks;
6 6
 
@@ -17,6 +17,6 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function message(): string
19 19
     {
20
-        return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="'. route('chief.back.settings.edit') .'" class="text-secondary-800 underline hover:text-white">Settings</a>';
20
+        return 'Het lijkt erop dat er geen homepagina ingesteld is. Stel er een in hier: <a href="'.route('chief.back.settings.edit').'" class="text-secondary-800 underline hover:text-white">Settings</a>';
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
src/Urls/UrlHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public static function allOnlineModels(bool $onlySingles = false, Model $ignoredModel = null): array
21 21
     {
22
-        return chiefMemoize('all-online-models', function () use ($onlySingles, $ignoredModel) {
22
+        return chiefMemoize('all-online-models', function() use ($onlySingles, $ignoredModel) {
23 23
             $builder = UrlRecord::whereNull('redirect_id')
24 24
                 ->select('model_type', 'model_id')
25 25
                 ->groupBy('model_type', 'model_id');
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             }
30 30
 
31 31
             if ($ignoredModel) {
32
-                $builder->whereNotIn('id', function ($query) use ($ignoredModel) {
32
+                $builder->whereNotIn('id', function($query) use ($ignoredModel) {
33 33
                     $query->select('id')
34 34
                         ->from('chief_urls')
35 35
                         ->where('model_type', '=', $ignoredModel->getMorphClass())
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
                 });
38 38
             }
39 39
 
40
-            $liveUrlRecords = $builder->get()->mapToGroups(function ($record) {
40
+            $liveUrlRecords = $builder->get()->mapToGroups(function($record) {
41 41
                 return [$record->model_type => $record->model_id];
42 42
             });
43 43
 
44 44
             // Get model for each of these records...
45
-            $models = $liveUrlRecords->map(function ($record, $key) {
45
+            $models = $liveUrlRecords->map(function($record, $key) {
46 46
                 return Morphables::instance($key)->find($record->toArray());
47
-            })->map->reject(function ($model) {
47
+            })->map->reject(function($model) {
48 48
                 // Invalid references to archived or removed models where url record still exists.
49 49
                 return is_null($model) || !$model->isPublished();
50 50
             })->flatten();
Please login to merge, or discard this patch.
src/HealthMonitor/Monitor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 namespace Thinktomorrow\Chief\HealthMonitor;
6 6
 
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
 
16 16
     public static function check()
17 17
     {
18
-        foreach(static::$checks as $check => $notifier)
18
+        foreach (static::$checks as $check => $notifier)
19 19
         {
20 20
             $checkInstance = app($check);
21 21
 
22
-            if(!$checkInstance->check()) {
22
+            if (!$checkInstance->check()) {
23 23
                 app($notifier)->onFailure($checkInstance);
24
-            } else {
24
+            }else {
25 25
                 app($notifier)->onSuccess($checkInstance);
26 26
             }
27 27
         }
Please login to merge, or discard this patch.
src/PageBuilder/UpdateSections.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     private function removeExistingSets()
92 92
     {
93 93
         foreach ($this->model->children() as $instance) {
94
-            if (! $instance instanceof StoredSetReference) {
94
+            if (!$instance instanceof StoredSetReference) {
95 95
                 continue;
96 96
             }
97 97
             $this->model->rejectChild($instance);
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
         }
146 146
 
147 147
         foreach ($this->text_modules['replace'] as $text_module) {
148
-            if (! $module = FlatReferenceFactory::fromString($text_module['id'])->instance()) {
148
+            if (!$module = FlatReferenceFactory::fromString($text_module['id'])->instance()) {
149 149
                 continue;
150 150
             }
151 151
             // Do not update if content of text is completely empty. We will remove this module instead
@@ -154,10 +154,10 @@  discard block
 block discarded – undo
154 154
                 continue;
155 155
             }
156 156
            
157
-            foreach($text_module['trans'] as $locale => $content)
157
+            foreach ($text_module['trans'] as $locale => $content)
158 158
             {
159 159
                 $purifier = new HTMLPurifier();
160
-                $sanitized_text = $purifier->purify( $content['content'] );
160
+                $sanitized_text = $purifier->purify($content['content']);
161 161
 
162 162
                 $text_module['trans'][$locale]['content'] = $sanitized_text;
163 163
             }
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
     private function removeTextualModule($module)
173 173
     {
174
-        if (! $module instanceof TextModule && ! $module instanceof PagetitleModule) {
174
+        if (!$module instanceof TextModule && !$module instanceof PagetitleModule) {
175 175
             throw new \Exception('Invalid request to remove non textual module');
176 176
         }
177 177
 
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 continue;
194 194
             }
195 195
 
196
-            $child = $children->first(function ($c) use ($reference) {
196
+            $child = $children->first(function($c) use ($reference) {
197 197
                 return $c->flatReference()->get() == $reference;
198 198
             });
199 199
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
     private function stripTagsBlacklist($value, $blacklist = [])
245 245
     {
246 246
         foreach ($blacklist as $tag) {
247
-            $value = preg_replace('/<\/?' . $tag . '(.|\s)*?>/', '', $value);
247
+            $value = preg_replace('/<\/?'.$tag.'(.|\s)*?>/', '', $value);
248 248
         }
249 249
 
250 250
         return $value;
Please login to merge, or discard this patch.