Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public static function setUpBeforeClass() |
||
20 | { |
||
21 | $host = 'localhost'; |
||
22 | $className = 'Dtc\QueueBundle\Beanstalkd\Job'; |
||
23 | |||
24 | self::$beanstalkd = new Pheanstalk($host); |
||
25 | |||
26 | self::$jobManager = new JobManager(self::$beanstalkd); |
||
|
|||
27 | self::$worker = new FibonacciWorker(); |
||
28 | self::$worker->setJobClass($className); |
||
29 | |||
30 | parent::setUpBeforeClass(); |
||
31 | } |
||
32 | } |
||
33 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.