| Total Complexity | 2 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class ExampleController |
||
| 20 | { |
||
| 21 | /** @var \SimpleSAML\Configuration */ |
||
| 22 | protected Configuration $config; |
||
| 23 | |||
| 24 | /** @var \SimpleSAML\Session */ |
||
| 25 | protected Session $session; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Controller constructor. |
||
| 30 | * |
||
| 31 | * It initializes the global configuration and session for the controllers implemented here. |
||
| 32 | * |
||
| 33 | * @param \SimpleSAML\Configuration $config The configuration to use by the controllers. |
||
| 34 | * @param \SimpleSAML\Session $session The session to use by the controllers. |
||
| 35 | * |
||
| 36 | * @throws \Exception |
||
| 37 | */ |
||
| 38 | public function __construct( |
||
| 39 | Configuration $config, |
||
| 40 | Session $session, |
||
| 41 | ) { |
||
| 42 | $this->config = $config; |
||
| 43 | $this->session = $session; |
||
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | /** |
||
| 48 | * Say hello to the world |
||
| 49 | * |
||
| 50 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 51 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 52 | */ |
||
| 53 | public function example(Request $request): Response |
||
| 62 | } |
||
| 63 | } |
||
| 64 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.