Issues (88)

src/Controller/VariablesReportController.php (1 issue)

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
The parameter $qaVariable 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

36
  public function view(/** @scrutinizer ignore-unused */ $qaVariable) {

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...
37
    return [
38
      '#type' => 'markup',
39
      '#markup' => $this->t('Implement method: view'),
40
    ];
41
  }
42
43
}
44