for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2019 - present
* laravel-updown - TestCase.php
* author: Roberto Belotti - [email protected]
* web : robertobelotti.com, github.com/biscolab
* Initial version created on: 15/2/2019
* MIT license: https://github.com/biscolab/laravel-updown/blob/master/LICENSE
*/
namespace Biscolab\LaravelUpDown\Tests;
use Biscolab\LaravelUpDown\Facades\UpDown;
use Biscolab\LaravelUpDown\UpDownServiceProvider;
use Orchestra\Testbench\TestCase as OrchestraTestCase;
* Class TestCase
* @package Biscolab\LaravelUpDown\Tests
class TestCase extends OrchestraTestCase
{
* Load package alias
*
* @param \Illuminate\Foundation\Application $app
* @return array
protected function getPackageAliases($app)
$app
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function getPackageAliases(/** @scrutinizer ignore-unused */ $app)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return [
'UpDown' => UpDown::class,
];
}
* Load package service provider
protected function getPackageProviders($app)
protected function getPackageProviders(/** @scrutinizer ignore-unused */ $app)
return [UpDownServiceProvider::class];
* Define environment setup.
* @return void
protected function getEnvironmentSetUp($app)
$app['config']->set('updown.api_key', env('API_KEY', 'API_KEY'));
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.