DummyPHPError   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of CaptainHook
5
 *
6
 * (c) Sebastian Feldmann <[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 CaptainHook\App\Runner\Action;
13
14
use CaptainHook\App\Config;
15
use CaptainHook\App\Console\IO;
16
use CaptainHook\App\Hook\Action as ActionInterface;
17
use SebastianFeldmann\Git\Repository;
18
19
class DummyPHPError implements ActionInterface
20
{
21
    /**
22
     * Execute action with PHP errors
23
     *
24
     * @param  \CaptainHook\App\Config           $config
25
     * @param  \CaptainHook\App\Console\IO       $io
26
     * @param  \SebastianFeldmann\Git\Repository $repository
27
     * @param  \CaptainHook\App\Config\Action    $action
28
     * @return void
29
     */
30
    public function execute(Config $config, IO $io, Repository $repository, Config\Action $action): void
31
    {
32
        str_pos();
0 ignored issues
show
Bug introduced by
The function str_pos was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

32
        /** @scrutinizer ignore-call */ 
33
        str_pos();
Loading history...
33
    }
34
}
35