GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SeederGenerator::getPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Milkmeowo\Framework\Repository\Generators;
4
5
class SeederGenerator extends Generator
6
{
7
    /**
8
     * Get stub name.
9
     *
10
     * @var string
11
     */
12
    protected $stub = 'seed';
13
14
    /**
15
     * Get generator path config node.
16
     *
17
     * @return string
18
     */
19
    public function getPathConfigNode()
20
    {
21
    }
22
23
    /**
24
     * Get destination path for generated file.
25
     *
26
     * @return string
27
     */
28
    public function getPath()
29
    {
30
        return $this->getBasePath().'/seeds/'.$this->getName().'Seeder.php';
31
    }
32
33
    /**
34
     * Get base path of destination file.
35
     *
36
     * @return string
37
     */
38
    public function getBasePath()
39
    {
40
        return app()->databasePath();
41
    }
42
}
43