1 | <?php |
||
2 | |||
3 | declare(strict_types = 1); |
||
4 | |||
5 | namespace Drupal\qa\Controller; |
||
6 | |||
7 | use Drupal\Core\Controller\ControllerBase; |
||
8 | |||
9 | /** |
||
10 | * Class VariablesReportController. |
||
11 | */ |
||
12 | class VariablesReportController extends ControllerBase { |
||
13 | |||
14 | /** |
||
15 | * Action. |
||
16 | * |
||
17 | * @return array |
||
18 | * A render array. |
||
19 | */ |
||
20 | public function report() { |
||
21 | return [ |
||
22 | '#type' => 'markup', |
||
23 | '#markup' => $this->t('Implement method: report'), |
||
24 | ]; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Placeholder controller for "variables". |
||
29 | * |
||
30 | * @param string $qaVariable |
||
31 | * The variable name. |
||
32 | * |
||
33 | * @return array |
||
34 | * A render array. |
||
35 | */ |
||
36 | public function view($qaVariable) { |
||
0 ignored issues
–
show
|
|||
37 | return [ |
||
38 | '#type' => 'markup', |
||
39 | '#markup' => $this->t('Implement method: view'), |
||
40 | ]; |
||
41 | } |
||
42 | |||
43 | } |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.