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.

BrandProcessor   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A preProcess() 0 6 2
A postProcess() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\Functional\TestBundle\DataFixtures\Processor;
13
14
use Hautelook\AliceBundle\Functional\TestBundle\Entity\Brand;
15
use Nelmio\Alice\ProcessorInterface;
16
17
/**
18
 * @link   https://github.com/nelmio/alice/blob/master/doc/processors.md#processors
19
 *
20
 * @author Théo FIDRY <[email protected]>
21
 */
22
class BrandProcessor implements ProcessorInterface
23
{
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function preProcess($object)
28
    {
29
        if ($object instanceof Brand) {
30
            $object->canonicalName = strtolower($object->getName());
0 ignored issues
show
Bug introduced by
The property canonicalName does not seem to exist in Hautelook\AliceBundle\Fu...TestBundle\Entity\Brand.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
31
        }
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function postProcess($object)
38
    {
39
    }
40
}
41