AbstractController::routeAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 2
rs 10
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of Flight Routing.
5
 *
6
 * PHP version 8.0 and above required
7
 *
8
 * @author    Divine Niiquaye Ibok <[email protected]>
9
 * @copyright 2019 Divine Niiquaye Ibok (https://divinenii.com/)
10
 * @license   https://opensource.org/licenses/BSD-3-Clause License
11
 *
12
 * For the full copyright and license information, please view the LICENSE
13
 * file that was distributed with this source code.
14
 */
15
16
namespace Flight\Routing\Tests\Fixtures\Annotation\Route\Abstracts;
17
18
abstract class AbstractController
19
{
20
    abstract public function abstractRouteAction();
21
22
    public function routeAction($arg1, $arg2 = 'defaultValue2', $arg3 = 'defaultValue3'): void
0 ignored issues
show
Unused Code introduced by
The parameter $arg1 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

22
    public function routeAction(/** @scrutinizer ignore-unused */ $arg1, $arg2 = 'defaultValue2', $arg3 = 'defaultValue3'): void

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...
Unused Code introduced by
The parameter $arg3 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

22
    public function routeAction($arg1, $arg2 = 'defaultValue2', /** @scrutinizer ignore-unused */ $arg3 = 'defaultValue3'): void

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...
Unused Code introduced by
The parameter $arg2 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

22
    public function routeAction($arg1, /** @scrutinizer ignore-unused */ $arg2 = 'defaultValue2', $arg3 = 'defaultValue3'): void

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...
23
    {
24
    }
25
}
26