GeneaLabs /
laravel-caffeine
| 1 | <?php namespace GeneaLabs\LaravelCaffeine\Tests; |
||||||
| 2 | |||||||
| 3 | use GeneaLabs\LaravelCaffeine\Providers\Service as LaravelCaffeineService; |
||||||
| 4 | |||||||
| 5 | trait CreatesApplication |
||||||
| 6 | { |
||||||
| 7 | protected function refreshApplication() |
||||||
| 8 | { |
||||||
| 9 | putenv('APP_ENV=internaltesting'); |
||||||
| 10 | |||||||
| 11 | $this->app = $this->createApplication(); |
||||||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
It seems like
createApplication() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 12 | } |
||||||
| 13 | |||||||
| 14 | /** |
||||||
| 15 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||||||
| 16 | */ |
||||||
| 17 | protected function getPackageProviders($app) |
||||||
| 18 | { |
||||||
| 19 | return [LaravelCaffeineService::class]; |
||||||
| 20 | } |
||||||
| 21 | } |
||||||
| 22 |