biscolab /
laravel-updown
| 1 | <?php |
||||
| 2 | /** |
||||
| 3 | * Copyright (c) 2019 - present |
||||
| 4 | * laravel-updown - TestCase.php |
||||
| 5 | * author: Roberto Belotti - [email protected] |
||||
| 6 | * web : robertobelotti.com, github.com/biscolab |
||||
| 7 | * Initial version created on: 15/2/2019 |
||||
| 8 | * MIT license: https://github.com/biscolab/laravel-updown/blob/master/LICENSE |
||||
| 9 | */ |
||||
| 10 | |||||
| 11 | namespace Biscolab\LaravelUpDown\Tests; |
||||
| 12 | |||||
| 13 | use Biscolab\LaravelUpDown\Facades\UpDown; |
||||
| 14 | use Biscolab\LaravelUpDown\UpDownServiceProvider; |
||||
| 15 | use Orchestra\Testbench\TestCase as OrchestraTestCase; |
||||
| 16 | |||||
| 17 | /** |
||||
| 18 | * Class TestCase |
||||
| 19 | * @package Biscolab\LaravelUpDown\Tests |
||||
| 20 | */ |
||||
| 21 | class TestCase extends OrchestraTestCase |
||||
| 22 | { |
||||
| 23 | |||||
| 24 | /** |
||||
| 25 | * Load package alias |
||||
| 26 | * |
||||
| 27 | * @param \Illuminate\Foundation\Application $app |
||||
| 28 | * |
||||
| 29 | * @return array |
||||
| 30 | */ |
||||
| 31 | protected function getPackageAliases($app) |
||||
|
0 ignored issues
–
show
|
|||||
| 32 | { |
||||
| 33 | |||||
| 34 | return [ |
||||
| 35 | 'UpDown' => UpDown::class, |
||||
| 36 | ]; |
||||
| 37 | } |
||||
| 38 | |||||
| 39 | /** |
||||
| 40 | * Load package service provider |
||||
| 41 | * |
||||
| 42 | * @param \Illuminate\Foundation\Application $app |
||||
| 43 | * |
||||
| 44 | * @return array |
||||
| 45 | */ |
||||
| 46 | protected function getPackageProviders($app) |
||||
|
0 ignored issues
–
show
The parameter
$app is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. Loading history...
|
|||||
| 47 | { |
||||
| 48 | |||||
| 49 | return [UpDownServiceProvider::class]; |
||||
| 50 | } |
||||
| 51 | |||||
| 52 | /** |
||||
| 53 | * Define environment setup. |
||||
| 54 | * |
||||
| 55 | * @param \Illuminate\Foundation\Application $app |
||||
| 56 | * @return void |
||||
| 57 | */ |
||||
| 58 | protected function getEnvironmentSetUp($app) |
||||
| 59 | { |
||||
| 60 | $app['config']->set('updown.api_key', env('API_KEY', 'API_KEY')); |
||||
| 61 | } |
||||
| 62 | } |
||||
| 63 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.