1 | <?php |
||
2 | |||
3 | /** |
||
4 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||
5 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||
6 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||
7 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||
8 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||
9 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||
10 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||
11 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||
12 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
13 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||
14 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
15 | * |
||
16 | * This software consists of voluntary contributions made by many individuals |
||
17 | * and is licensed under the LGPL. For more information please see |
||
18 | * <http://phing.info>. |
||
19 | */ |
||
20 | |||
21 | namespace Phing\Task\Ext\Analyzer\Phploc; |
||
22 | |||
23 | use Phing\Exception\BuildException; |
||
24 | |||
25 | /** |
||
26 | * @author Michiel Rook <[email protected]> |
||
27 | * @package phing.tasks.ext.phploc |
||
28 | */ |
||
29 | class PHPLocCSVFormatter extends AbstractPHPLocFormatter |
||
30 | { |
||
31 | 2 | public function printResult(array $count, $countTests = false) |
|
32 | { |
||
33 | 2 | if (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\CSV\\Single')) { |
|
34 | $printer = new \SebastianBergmann\PHPLOC\Log\CSV\Single(); |
||
0 ignored issues
–
show
|
|||
35 | 2 | } elseif (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\Csv')) { |
|
36 | 2 | $printer = new \SebastianBergmann\PHPLOC\Log\Csv(); |
|
37 | } else { |
||
38 | throw new BuildException('Not supported PHPLOC version used.'); |
||
39 | } |
||
40 | 2 | $printer->printResult($this->getToDir() . DIRECTORY_SEPARATOR . $this->getOutfile(), $count); |
|
41 | } |
||
42 | } |
||
43 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths