Issues (16)

tests/TestCase.php (2 issues)

Severity
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
	/**
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
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

31
	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...
32
	{
33
34
		return [
35
			'ReCaptcha' => ReCaptcha::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 ignore-unused  annotation

46
	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...
47
	{
48
49
		return [ReCaptchaServiceProvider::class];
50
	}
51
}
52