Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function getPackageAttribute() : ?string |
||
51 | { |
||
52 | $package = ''; // For modules created directory in the host application |
||
53 | |||
54 | // Get only package name if defined (Format: vendor/package) |
||
55 | if (isset($this->data->package)) |
||
|
|||
56 | { |
||
57 | $packageData = explode('/', $this->data->package); |
||
58 | $package = array_pop($packageData); |
||
59 | } |
||
60 | |||
61 | return $package; |
||
62 | } |
||
64 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.