generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests, refactor to improve testability
- Loading branch information
1 parent
19a9154
commit 9723fa0
Showing
46 changed files
with
717 additions
and
370 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace ChrisDiCarlo\LaravelConfigChecker\Support; | ||
|
||
use Symfony\Component\Finder\Finder; | ||
|
||
class BladeFiles | ||
{ | ||
private string $basePath; | ||
|
||
public function __construct(?string $basePath = null) | ||
{ | ||
if (! $basePath) { | ||
$basePath = base_path(); | ||
} | ||
|
||
$this->basePath = $basePath; | ||
} | ||
|
||
public function __invoke(): Finder | ||
{ | ||
$finder = new Finder; | ||
$finder->files()->in($this->basePath) | ||
->name('*.blade.php') | ||
->path('resources/views') | ||
->notPath('vendor'); | ||
|
||
return $finder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace ChrisDiCarlo\LaravelConfigChecker\Support; | ||
|
||
class FileCheckInfo | ||
{ | ||
public function __construct( | ||
public readonly int $line, | ||
public readonly string $key, | ||
public readonly string $type | ||
) {} | ||
} |
Oops, something went wrong.