Issues (1019)

src/Illuminate/LaravelSServiceProvider.php (10 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Illuminate;
4
5
use Illuminate\Support\ServiceProvider;
0 ignored issues
show
The type Illuminate\Support\ServiceProvider was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class LaravelSServiceProvider extends ServiceProvider
0 ignored issues
show
Missing doc comment for class LaravelSServiceProvider
Loading history...
8
{
9
    public function boot()
0 ignored issues
show
Missing doc comment for function boot()
Loading history...
10
    {
11
        $this->publishes([
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
12
            __DIR__ . '/../../config/laravels.php' => base_path('config/laravels.php'),
0 ignored issues
show
The function base_path 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 ignore-call  annotation

12
            __DIR__ . '/../../config/laravels.php' => /** @scrutinizer ignore-call */ base_path('config/laravels.php'),
Loading history...
13
        ]);
0 ignored issues
show
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
14
    }
15
16
    public function register()
0 ignored issues
show
Missing doc comment for function register()
Loading history...
17
    {
18
        $this->mergeConfigFrom(
19
            __DIR__ . '/../../config/laravels.php', 'laravels'
20
        );
21
22
        $this->commands([
0 ignored issues
show
The opening parenthesis of a multi-line function call should be the last content on the line.
Loading history...
23
            LaravelSCommand::class,
24
            ListPropertiesCommand::class,
25
        ]);
0 ignored issues
show
For multi-line function calls, the closing parenthesis should be on a new line.

If a function call spawns multiple lines, the coding standard suggests to move the closing parenthesis to a new line:

someFunctionCall(
    $firstArgument,
    $secondArgument,
    $thirdArgument
); // Closing parenthesis on a new line.
Loading history...
26
    }
27
}