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
Pull Request — master (#158)
by Bernardo Vieira da
12:24
created

WorkerNameTooLongException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
/**
4
 * Gearman Bundle for Symfony2
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * Feel free to edit as you please, and have fun.
10
 *
11
 * @author Marc Morera <[email protected]>
12
 */
13
14
namespace Mmoreram\GearmanBundle\Exceptions;
15
16
use Exception;
17
18
use Mmoreram\GearmanBundle\Exceptions\Abstracts\AbstractGearmanException;
19
20
/**
21
 * GearmanBundle can't find worker specified as Gearman format Exception
22
 *
23
 * @since 2.3.3
24
 */
25
class WorkerNameTooLongException extends AbstractGearmanException
26
{
27
28
    /**
29
     * Construction method
30
     *
31
     * @param string    $message  Message
32
     * @param int       $code     Code
33
     * @param Exception $previous Previous
34
     */
35
    public function __construct($message = null, $code = 0, Exception $previous = null)
36
    {
37
        $message = 'The function name + unique id cannot exceed 114 bytes.
38
                    You can change workers name or set a shortly unique key';
39
40
        parent::__construct($message, $code, $previous);
41
    }
42
}
43