1 | <?php |
||
2 | |||
3 | namespace Helldar\LaravelActions\Helpers; |
||
4 | |||
5 | use Illuminate\Foundation\Application; |
||
6 | use Illuminate\Support\Str; |
||
7 | |||
8 | class Version |
||
9 | { |
||
10 | 1 | public function is6x(): bool |
|
11 | { |
||
12 | 1 | return $this->major() === 6; |
|
13 | } |
||
14 | |||
15 | 1 | protected function major(): int |
|
16 | { |
||
17 | 1 | return Str::before(Application::VERSION, '.'); |
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
18 | } |
||
19 | } |
||
20 |