Completed
Branch master (7c189e)
by Roberto
04:00 queued 01:33
created

TestCase::getPackageAliases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Copyright (c) 2017 - present
4
 * LaravelGoogleRecaptcha - TestCase.php
5
 * author: Roberto Belotti - [email protected]
6
 * web : robertobelotti.com, github.com/biscolab
7
 * Initial version created on: 12/9/2018
8
 * MIT license: https://github.com/biscolab/laravel-recaptcha/blob/master/LICENSE
9
 */
10
11
namespace Biscolab\ReCaptcha\Tests;
12
13
use Biscolab\ReCaptcha\Facades\ReCaptcha;
14
use Biscolab\ReCaptcha\ReCaptchaServiceProvider;
15
use Orchestra\Testbench\TestCase as OrchestraTestCase;
16
17
/**
18
 * Class TestCase
19
 * @package Biscolab\ReCaptcha\Tests
20
 */
21
class TestCase extends OrchestraTestCase {
22
23
    /**
24
     * Load package alias
25
     *
26
     * @param  \Illuminate\Foundation\Application $app
27
     *
28
     * @return array
29
     */
30
    protected function getPackageAliases($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

30
    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.

Loading history...
31
32
        return [
33
            'ReCaptcha' => ReCaptcha::class,
34
        ];
35
    }
36
37
    /**
38
     * Load package service provider
39
     *
40
     * @param \Illuminate\Foundation\Application $app
41
     *
42
     * @return array
43
     */
44
    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

44
    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...
45
46
        return [ReCaptchaServiceProvider::class];
47
    }
48
}
49