webshelf /
framework
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||||
| 2 | |||||
| 3 | use App\Model\Plugin; |
||||
| 4 | use App\Classes\Interfaces\RouteableInterface; |
||||
|
0 ignored issues
–
show
|
|||||
| 5 | |||||
| 6 | /* |
||||
| 7 | |-------------------------------------------------------------------------- |
||||
| 8 | | Web Plugin Routes |
||||
| 9 | |-------------------------------------------------------------------------- |
||||
| 10 | | |
||||
| 11 | | Front end routes or [isFrontEnd] & [UserPluginController] DO NOT REQUIRE AUTHENTICATION OR LOGIN TO VIEW. |
||||
| 12 | | |
||||
| 13 | | Back end routes or [isBackEnd] & [AdminPluginController] ALWAYS REQUIRES AUTHENTICATION OR A LOGIN TO BE VIEWED. |
||||
| 14 | | |
||||
| 15 | */ |
||||
| 16 | |||||
| 17 | /** @var Plugin $plugin */ |
||||
| 18 | foreach (plugins()->enabled() as $plugin) { |
||||
| 19 | // does not require authentication. |
||||
| 20 | if ($plugin->isFrontEnd() && userPluginController($plugin->name()) instanceof RouteableInterface) { |
||||
|
0 ignored issues
–
show
The function
userPluginController was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 21 | (userPluginController($plugin->name(), null, false))->routes(app('router')); |
||||
| 22 | } |
||||
| 23 | |||||
| 24 | // requires authentication |
||||
| 25 | if ($plugin->isBackEnd() && adminPluginController($plugin->name()) instanceof RouteableInterface) { |
||||
|
0 ignored issues
–
show
The function
adminPluginController was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 26 | (adminPluginController($plugin->name(), null, false))->routes(app('router')); |
||||
| 27 | } |
||||
| 28 | } |
||||
| 29 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths