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   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 38
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPathConfigNode() 0 3 1
A getPath() 0 4 1
A getBasePath() 0 4 1
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