Passed
Push — master ( 522b19...2b20f6 )
by Caen
03:49 queued 13s
created
packages/framework/src/Services/DiscoveryService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public static function getSourceFileListForModel(string $model): array|false
134 134
     {
135
-        if (! class_exists($model) || ! is_subclass_of($model, AbstractPage::class)) {
135
+        if (!class_exists($model) || !is_subclass_of($model, AbstractPage::class)) {
136 136
             return false;
137 137
         }
138 138
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         $files = [];
142 142
         foreach (glob(Hyde::path($model::qualifyBasename('{*,**/*}')), GLOB_BRACE) as $filepath) {
143
-            if (! str_starts_with(basename($filepath), '_')) {
143
+            if (!str_starts_with(basename($filepath), '_')) {
144 144
                 $files[] = self::formatSlugForModel($model, $filepath);
145 145
             }
146 146
         }
Please login to merge, or discard this patch.
projects/shelf/single-file-dashboard/dashboard.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
                               <?php
278 278
                                     $documentation = DiscoveryService::getDocumentationPageList();
279 279
                                     $posts = DiscoveryService::getMarkdownPostList();
280
-                              ?>
280
+                                ?>
281 281
                               <h3 class="h5">Your Pages</h3>
282 282
                               <table class="table">
283 283
                                  <thead class="table-secondary">
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
                                 return file_get_contents($this->filepath);
380 380
                             }
381 381
                         };
382
-                     ?>
382
+                        ?>
383 383
 
384 384
                      <section class="col-12 col-xl-10 col-xxl-8">
385 385
                         <h3 class="h6 my-3">Showing file <code><?= e($editor->contentpath) ?></code></h3>
@@ -456,10 +456,10 @@  discard block
 block discarded – undo
456 456
 
457 457
 <?php
458 458
 } catch (\Throwable $th) {
459
-                         echo '<h1>Error</h1>';
460
-                         echo '<p>An error occurred while processing your request.</p>';
461
-                         echo '<pre><code>'.$th->getMessage().'</code></pre>';
462
-                         echo '<p>Extra information:</p>';
463
-                         echo '<pre><code>'.$th->getTraceAsString().print_r($th, true).'</code></pre>';
464
-                         exit($th->getCode());
465
-                     }
459
+                            echo '<h1>Error</h1>';
460
+                            echo '<p>An error occurred while processing your request.</p>';
461
+                            echo '<pre><code>'.$th->getMessage().'</code></pre>';
462
+                            echo '<p>Extra information:</p>';
463
+                            echo '<pre><code>'.$th->getTraceAsString().print_r($th, true).'</code></pre>';
464
+                            exit($th->getCode());
465
+                        }
Please login to merge, or discard this patch.