Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( ec4e39...432da1 )
by Cristian
02:06
created

CrudRequestBackpackCommand::getOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Backpack\Generators\Console\Commands;
4
5
use Illuminate\Console\GeneratorCommand;
6
7
class CrudRequestBackpackCommand extends GeneratorCommand
8
{
9
    /**
10
     * The console command name.
11
     *
12
     * @var string
13
     */
14
    protected $name = 'backpack:crud-request';
15
16
    /**
17
     * The name and signature of the console command.
18
     *
19
     * @var string
20
     */
21
    protected $signature = 'backpack:crud-request {name}';
22
23
    /**
24
     * The console command description.
25
     *
26
     * @var string
27
     */
28
    protected $description = 'Generate a Backpack\CRUD request';
29
30
    /**
31
     * The type of class being generated.
32
     *
33
     * @var string
34
     */
35
    protected $type = 'Request';
36
37
38
    /**
39
     * Get the destination class path.
40
     *
41
     * @param  string  $name
42
     * @return string
43
     */
44
    protected function getPath($name)
45
    {
46
        $name = str_replace($this->laravel->getNamespace(), '', $name);
0 ignored issues
show
Bug introduced by
The method getNamespace() does not seem to exist on object<Illuminate\Contra...Foundation\Application>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
47
48
        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'Request.php';
49
    }
50
51
52
    /**
53
     * Get the stub file for the generator.
54
     *
55
     * @return string
56
     */
57
    protected function getStub()
58
    {
59
        return __DIR__.'/../stubs/crud-request.stub';
60
    }
61
62
    /**
63
     * Get the default namespace for the class.
64
     *
65
     * @param string $rootNamespace
66
     *
67
     * @return string
68
     */
69
    protected function getDefaultNamespace($rootNamespace)
70
    {
71
        return $rootNamespace.'\Http\Requests';
72
    }
73
74
    /**
75
     * Get the console command options.
76
     *
77
     * @return array
78
     */
79
    protected function getOptions()
80
    {
81
        return [
82
83
        ];
84
    }
85
}
86