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.
Completed
Push — master ( be0626...df8c18 )
by Théo
33:01
created

BrandProcessor::preProcess()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 3
nc 2
nop 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\SymfonyApp\TestBundle\DataFixtures\Processor;
13
14
use Hautelook\AliceBundle\SymfonyApp\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());
31
        }
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function postProcess($object)
38
    {
39
    }
40
}
41