Passed
Push — master ( f8f169...4e757e )
by Luca
02:08
created

TestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPackageProviders() 0 4 1
A getEnvironmentSetUp() 0 3 1
1
<?php
2
3
/**
4
 * Google Adsense Ads for Laravel.
5
 *
6
 * Package for easily including Google Adsense Ad units
7
 * in Laravel and Lumen.
8
 *
9
 * @developer Crypto Technology srl <https://cryptotech.srl/>
10
 *
11
 * @copyright Copyright (c) 2019 Crypto Technology srl
12
 * @license   MIT
13
 *
14
 * Copyright (c) 2016 Galen Han
15
 * Copyright (c) 2019 Crypto Technology srl
16
 *
17
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
18
 * this software and associated documentation files (the "Software"), to deal in
19
 * the Software without restriction, including without limitation the rights to
20
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
21
 * the Software, and to permit persons to whom the Software is furnished to do so,
22
 * subject to the following conditions:
23
 *
24
 * The above copyright notice and this permission notice shall be included in all
25
 * copies or substantial portions of the Software.
26
 *
27
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
29
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
30
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
31
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
32
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
 */
34
35
declare(strict_types=1);
36
37
namespace CryptoTech\Laravel\Adsense\Tests;
38
39
use CryptoTech\Laravel\Adsense\Providers\AdsenseServiceProvider;
40
use Orchestra\Testbench\TestCase as Orchestra;
41
42
/**
43
 * Class TestCase.
44
 */
45
abstract class TestCase extends Orchestra
46
{
47
    /**
48
     * {@inheritdoc}
49
     */
50
    protected function getPackageProviders($app)
0 ignored issues
show
Unused Code introduced by
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 ignore-unused  annotation

50
    protected function getPackageProviders(/** @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.

Loading history...
51
    {
52
        return [
53
            AdsenseServiceProvider::class,
54
        ];
55
    }
56
57
    /**
58
     * {@inheritdoc}
59
     */
60
    protected function getEnvironmentSetUp($app)
61
    {
62
        $app['config']->set('view.paths', [__DIR__.'/stubs/views']);
63
    }
64
}
65