JWKSetControllerFactory::createJWKSetController()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * The MIT License (MIT)
5
 *
6
 * Copyright (c) 2014-2016 Spomky-Labs
7
 *
8
 * This software may be modified and distributed under the terms
9
 * of the MIT license.  See the LICENSE file for details.
10
 */
11
12
namespace SpomkyLabs\JoseBundle\Controller;
13
14
use Jose\Object\JWKSetInterface;
15
16
final class JWKSetControllerFactory
17
{
18
    /**
19
     * @param \Jose\Object\JWKSetInterface $issuer_discovery
0 ignored issues
show
Bug introduced by
There is no parameter named $issuer_discovery. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
20
     *
21
     * @return \SpomkyLabs\JoseBundle\Controller\JWKSetController
22
     */
23
    public function createJWKSetController(JWKSetInterface $jwkset)
24
    {
25
        return new JWKSetController($jwkset);
26
    }
27
}
28