|
@@ -32,7 +32,7 @@ discard block |
|
|
block discarded – undo |
|
32
|
32
|
*/ |
|
33
|
33
|
public function getSourceFiles(?string $pageClass = null): self |
|
34
|
34
|
{ |
|
35
|
|
- return ! $pageClass ? $this->getAllSourceFiles() : $this->getSourceFilesFor($pageClass); |
|
|
35
|
+ return !$pageClass ? $this->getAllSourceFiles() : $this->getSourceFilesFor($pageClass); |
|
36
|
36
|
} |
|
37
|
37
|
|
|
38
|
38
|
/** |
|
@@ -90,7 +90,7 @@ discard block |
|
|
block discarded – undo |
|
90
|
90
|
{ |
|
91
|
91
|
// Scan the source directory, and directories therein, for files that match the model's file extension. |
|
92
|
92
|
foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $filepath) { |
|
93
|
|
- if (! str_starts_with(basename((string) $filepath), '_')) { |
|
|
93
|
+ if (!str_starts_with(basename((string) $filepath), '_')) { |
|
94
|
94
|
$this->put($this->kernel->pathToRelative($filepath), File::make($filepath)->belongsTo($pageClass)); |
|
95
|
95
|
} |
|
96
|
96
|
} |
Please login to merge, or discard this patch.