GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

BaseCrumbBuilder::createCrumbTrail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the CCDNForum ForumBundle
5
 *
6
 * (c) CCDN (c) CodeConsortium <http://www.codeconsortium.com/>
7
 *
8
 * Available on github <http://www.github.com/codeconsortium/>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace CCDNForum\ForumBundle\Component\Crumbs;
15
16
use CCDNForum\ForumBundle\Component\Crumbs\Factory\CrumbFactory;
17
18
/**
19
 *
20
 * @category CCDNForum
21
 * @package  ForumBundle
22
 *
23
 * @author   Reece Fowell <[email protected]>
24
 * @license  http://opensource.org/licenses/MIT MIT
25
 * @version  Release: 2.0
26
 * @link     https://github.com/codeconsortium/CCDNForumForumBundle
27
 *
28
 */
29
class BaseCrumbBuilder
30
{
31
    /**
32
     *
33
     * @access protected
34
     * @var \CCDNForum\ForumBundle\Component\Crumbs\Factory\CrumbFactory $crumbFactory
35
     */
36
    protected $crumbFactory;
37
38
    /**
39
     *
40
     * @access public
41
     * @param \CCDNForum\ForumBundle\Component\Crumbs\Factory\CrumbFactory $crumbs
0 ignored issues
show
Bug introduced by
There is no parameter named $crumbs. 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...
42
     */
43
    public function __construct(CrumbFactory $crumbFactory)
44
    {
45
        $this->crumbFactory = $crumbFactory;
46
    }
47
48
    public function createCrumbTrail()
49
    {
50
        return $this->crumbFactory->createNewCrumbTrail();
51
    }
52
}
53