@@ -132,7 +132,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -277,7 +277,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | + } |
|