Compare d7ca56f ... +10 ... 258decd

Coverage Reach
tasks/ext/git/GitTagTask.php tasks/ext/git/GitPullTask.php tasks/ext/git/GitBranchTask.php tasks/ext/git/GitFetchTask.php tasks/ext/git/GitPushTask.php tasks/ext/git/GitLogTask.php tasks/ext/git/GitMergeTask.php tasks/ext/git/GitCheckoutTask.php tasks/ext/git/GitDescribeTask.php tasks/ext/git/GitCloneTask.php tasks/ext/git/GitCommitTask.php tasks/ext/git/GitGcTask.php tasks/ext/git/GitArchiveTask.php tasks/ext/git/GitBaseTask.php tasks/ext/git/GitInitTask.php tasks/ext/phpunit/formatter7/PHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/PlainPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/XMLPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/Crap4JPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/CloverPHPUnitResultFormatter7.php tasks/ext/phpunit/formatter7/SummaryPHPUnitResultFormatter7.php tasks/ext/phpunit/PHPUnitTask.php tasks/ext/phpunit/JUnit.php tasks/ext/phpunit/PHPUnitTestRunner7.php tasks/ext/phpunit/PHPUnitTestRunner8.php tasks/ext/phpunit/PHPUnitReportTask.php tasks/ext/phpunit/FormatterElement.php tasks/ext/phpunit/PHPUnitUtil.php tasks/ext/phpunit/BatchTest.php tasks/ext/pdo/PDOSQLExecTask.php tasks/ext/pdo/PgsqlPDOQuerySplitter.php tasks/ext/pdo/PDOSQLExecFormatterElement.php tasks/ext/pdo/DefaultPDOQuerySplitter.php tasks/ext/pdo/PDOTask.php tasks/ext/pdo/PlainPDOResultFormatter.php tasks/ext/pdo/XMLPDOResultFormatter.php tasks/ext/pdo/PDOSQLExecTransaction.php tasks/ext/pdo/DummyPDOQuerySplitter.php tasks/ext/pdo/PDOResultFormatter.php tasks/ext/pdo/PDOQuerySplitter.php tasks/ext/hg/HgAddTask.php tasks/ext/hg/HgTagTask.php tasks/ext/hg/HgLogTask.php tasks/ext/hg/HgCommitTask.php tasks/ext/hg/HgUpdateTask.php tasks/ext/hg/HgCloneTask.php tasks/ext/hg/HgRevertTask.php tasks/ext/hg/HgPushTask.php tasks/ext/hg/HgBaseTask.php tasks/ext/hg/HgInitTask.php tasks/ext/hg/HgPullTask.php tasks/ext/hg/HgArchiveTask.php tasks/ext/property/Variable.php tasks/ext/property/RegexTask.php tasks/ext/property/PathToFileSet.php tasks/ext/property/PropertySelector.php tasks/ext/property/SortList.php tasks/ext/property/URLEncodeTask.php tasks/ext/property/PropertyCopy.php tasks/ext/property/AbstractPropertySetterTask.php tasks/ext/sass/SassTask.php tasks/ext/sass/SassTaskCompilerFactory.php tasks/ext/sass/ScssPhpCompiler.php tasks/ext/sass/SassCompiler.php tasks/ext/svn/SvnBaseTask.php tasks/ext/svn/SvnListTask.php tasks/ext/svn/SvnInfoTask.php tasks/ext/svn/SvnLogTask.php tasks/ext/svn/SvnLastRevisionTask.php tasks/ext/svn/SvnCommitTask.php tasks/ext/svn/SvnPropgetTask.php tasks/ext/svn/SvnProplistTask.php tasks/ext/svn/SvnPropsetTask.php tasks/ext/svn/SvnCopyTask.php tasks/ext/svn/SvnSwitchTask.php tasks/ext/svn/SvnExportTask.php tasks/ext/svn/SvnCheckoutTask.php tasks/ext/svn/SvnUpdateTask.php tasks/ext/svn/SvnRevertTask.php tasks/ext/inifile/IniFileTask.php tasks/ext/inifile/IniFileConfig.php tasks/ext/inifile/IniFileSet.php tasks/ext/inifile/IniFileGet.php tasks/ext/inifile/IniFileRemove.php tasks/ext/zendguard/ZendGuardLicenseTask.php tasks/ext/zendguard/ZendGuardEncodeTask.php tasks/ext/zendguard/ZendGuardFileSet.php tasks/ext/sonar/SonarTask.php tasks/ext/sonar/SonarConfigurationFileParser.php tasks/ext/sonar/SonarProperty.php tasks/ext/phar/PharPackageTask.php tasks/ext/phar/PharDataTask.php tasks/ext/phar/PharMetadataElement.php tasks/ext/phar/PharMetadata.php tasks/ext/pdepend/PhpDependTask.php tasks/ext/pdepend/PhpDependAnalyzerElement.php tasks/ext/pdepend/PhpDependLoggerElement.php tasks/ext/Service/Amazon/S3/S3PutTask.php tasks/ext/Service/Amazon/S3/S3GetTask.php tasks/ext/Service/Amazon/S3.php tasks/ext/Service/Amazon.php tasks/ext/phpstan/PHPStanTask.php tasks/ext/phpstan/CommandBuilder/PHPStanAnalyseCommandBuilder.php tasks/ext/phpstan/CommandBuilder/PHPStanCommandBuilder.php tasks/ext/phpstan/CommandBuilder/PHPStanCommandBuilderFactory.php tasks/ext/phpstan/CommandBuilder/PHPStanHelpCommandBuilder.php tasks/ext/phpstan/CommandBuilder/PHPStanListCommandBuilder.php tasks/ext/phploc/PHPLocTask.php tasks/ext/phploc/PHPLocFormatterFactory.php tasks/ext/phploc/PHPLocFormatterElement.php tasks/ext/phploc/AbstractPHPLocFormatter.php tasks/ext/phploc/PHPLocTextFormatter.php tasks/ext/phploc/PHPLocCSVFormatter.php tasks/ext/phploc/PHPLocXMLFormatter.php tasks/ext/phploc/PHPLocJSONFormatter.php tasks/ext/GrowlNotifyTask.php tasks/ext/phpcpd/PHPCPDTask.php tasks/ext/phpcpd/formatter/DefaultPHPCPDResultFormatter.php tasks/ext/phpcpd/formatter/PMDPHPCPDResultFormatter.php tasks/ext/phpcpd/PHPCPDFormatterElement.php tasks/ext/dbdeploy/DbDeployTask.php tasks/ext/dbdeploy/DbmsSyntaxFactory.php tasks/ext/dbdeploy/DbmsSyntaxOracle.php tasks/ext/dbdeploy/DbmsSyntaxMysql.php tasks/ext/dbdeploy/DbmsSyntaxMsSql.php tasks/ext/dbdeploy/DbmsSyntaxSQLite.php tasks/ext/dbdeploy/DbmsSyntaxPgSQL.php tasks/ext/dbdeploy/DbmsSyntax.php tasks/ext/phpmd/PHPMDTask.php tasks/ext/phpmd/PHPMDFormatterElement.php tasks/ext/phpmd/PHPMDRendererRemoveFromCache.php tasks/ext/PearPackage2Task.php tasks/ext/FileSyncTask.php tasks/ext/RSTTask.php tasks/ext/visualizer/VisualizerTask.php tasks/ext/JslLintTask.php tasks/ext/WikiPublishTask.php tasks/ext/TarTask.php tasks/ext/VersionTask.php tasks/ext/ZipTask.php tasks/ext/SymlinkTask.php tasks/ext/pearpackage/PEARPackageFileManagerFileset.php tasks/ext/PhpLintTask.php tasks/ext/ManifestTask.php tasks/ext/PearPackageTask.php tasks/ext/SymfonyConsole/SymfonyConsoleTask.php tasks/ext/SymfonyConsole/Arg.php tasks/ext/PatchTask.php tasks/ext/ExtractBaseTask.php tasks/ext/hipchat/HipchatTask.php tasks/ext/ReplaceRegexpTask.php tasks/ext/MailTask.php tasks/ext/XmlLintTask.php tasks/ext/NotifySendTask.php tasks/ext/HttpGetTask.php tasks/ext/FileHashTask.php tasks/ext/HttpTask.php tasks/ext/PhpCSTask.php tasks/ext/StopwatchTask.php tasks/ext/ComposerTask.php tasks/ext/TarFileSet.php tasks/ext/HttpRequestTask.php tasks/ext/XmlPropertyTask.php tasks/ext/UntarTask.php tasks/ext/FileSizeTask.php tasks/ext/UnzipTask.php tasks/ext/ZipFileSet.php tasks/ext/ParallelTask.php tasks/ext/PearPkgMappingElement.php tasks/ext/JsonValidateTask.php tasks/ext/PearPkgMapping.php tasks/ext/AutoloaderTask.php tasks/ext/PearPkgOption.php tasks/ext/ThrowTask.php tasks/ext/PearPkgRole.php tasks/ext/PackageAsPathTask.php tasks/system/condition/ConditionBase.php tasks/system/condition/PhingVersion.php tasks/system/condition/HttpCondition.php tasks/system/condition/HasFreeSpaceCondition.php tasks/system/condition/VersionCompareCondition.php tasks/system/condition/OsCondition.php tasks/system/condition/Matches.php tasks/system/condition/IsFileSelected.php tasks/system/condition/EqualsCondition.php tasks/system/condition/ConditionEnumeration.php tasks/system/condition/ContainsCondition.php tasks/system/condition/SocketCondition.php tasks/system/condition/FilesMatch.php tasks/system/condition/ReferenceExistsCondition.php tasks/system/condition/IsSetCondition.php tasks/system/condition/IsFailure.php tasks/system/condition/NotCondition.php tasks/system/condition/IsPropertyTrueCondition.php tasks/system/condition/IsPropertyFalseCondition.php tasks/system/condition/XorCondition.php tasks/system/condition/IsTrueCondition.php tasks/system/condition/IsFalseCondition.php tasks/system/condition/NestedCondition.php tasks/system/condition/AndCondition.php tasks/system/condition/OrCondition.php tasks/system/ApplyTask.php tasks/system/PhingTask.php tasks/system/CopyTask.php tasks/system/ExecTask.php tasks/system/PropertyTask.php tasks/system/SubPhing.php tasks/system/AppendTask.php tasks/system/ForeachTask.php tasks/system/DeleteTask.php tasks/system/PathConvert.php tasks/system/EchoProperties.php tasks/system/MoveTask.php tasks/system/DependSet.php tasks/system/RecorderEntry.php tasks/system/UpToDateTask.php tasks/system/MatchingTask.php tasks/system/TouchTask.php tasks/system/AvailableTask.php tasks/system/PhpEvalTask.php tasks/system/ChownTask.php tasks/system/ChmodTask.php tasks/system/EchoTask.php tasks/system/FailTask.php tasks/system/RecorderTask.php tasks/system/ImportTask.php tasks/system/AttribTask.php tasks/system/LoadFileTask.php tasks/system/WaitForTask.php tasks/system/TruncateTask.php tasks/system/AppendTask/TextElement.php tasks/system/ReflexiveTask.php tasks/system/InputTask.php tasks/system/PhingCallTask.php tasks/system/Retry.php tasks/system/TstampTask.php tasks/system/IncludePathTask.php tasks/system/SleepTask.php tasks/system/TempFile.php tasks/system/AugmentReference.php tasks/system/IfTask.php tasks/system/SwitchTask.php tasks/system/Relentless.php tasks/system/TryCatchTask.php tasks/system/TstampCustomFormat.php tasks/system/DefaultExcludes.php tasks/system/ConditionTask.php tasks/system/TaskdefTask.php tasks/system/element/LogLevelAware.php tasks/system/MkdirTask.php tasks/system/XsltTask.php tasks/system/MapEntry.php tasks/system/EchoXML.php tasks/system/AdhocTaskdefTask.php tasks/system/ResolvePathTask.php tasks/system/Basename.php tasks/system/AdhocTypedefTask.php tasks/system/ElseIfTask.php tasks/system/AdhocTask.php tasks/system/Dirname.php tasks/system/TypedefTask.php tasks/system/DynamicTask.php tasks/system/CaseTask.php tasks/system/BlockForTask.php tasks/system/RunTargetTask.php tasks/system/SequentialTask.php tasks/system/PhingReference.php tasks/system/DiagnosticsTask.php tasks/system/WarnTask.php types/selectors/SizeSelector.php types/selectors/DateSelector.php types/selectors/ContainsSelector.php types/selectors/SelectorUtils.php types/selectors/FilenameSelector.php types/selectors/ContainsRegexpSelector.php types/selectors/SelectorAware.php types/selectors/DepthSelector.php types/selectors/AbstractSelectorContainer.php types/selectors/PresentSelector.php types/selectors/DependSelector.php types/selectors/MappingSelector.php types/selectors/TypeSelector.php types/selectors/ExtendSelector.php types/selectors/PosixPermissionsSelector.php types/selectors/MajoritySelector.php types/selectors/SelectSelector.php types/selectors/DifferentSelector.php types/selectors/NoneSelector.php types/selectors/AndSelector.php types/selectors/OrSelector.php types/selectors/BaseSelector.php types/selectors/BaseSelectorContainer.php types/selectors/NotSelector.php types/selectors/BaseExtendSelector.php types/selectors/ReadableSelector.php types/selectors/SymlinkSelector.php types/selectors/WritableSelector.php types/selectors/ExecutableSelector.php types/AbstractFileSet.php types/Path.php types/PatternSet.php types/Commandline.php types/Mapper.php types/FileList.php types/FilterChain.php types/PhingFilterReader.php types/DataType.php types/Excludes.php types/PearPackageFileSet.php types/RegularExpression.php types/element/ClasspathAware.php types/element/DirSetAware.php types/element/FileListAware.php types/element/FilterChainAware.php types/element/FileSetAware.php types/PatternSetNameEntry.php types/TokenSource.php types/Parameter.php types/Description.php types/Reference.php types/environment/EnvVariable.php types/CommandlineMarker.php types/CommandlineArgument.php types/Environment.php types/PropertyValue.php types/ExcludesNameEntry.php types/PathElement.php types/FileSet.php types/TokenReader.php types/DirSet.php system/io/FileSystem.php system/io/WindowsFileSystem.php system/io/PhingFile.php system/io/UnixFileSystem.php system/io/InputStream.php system/io/BufferedReader.php system/io/XmlFileParser.php system/io/OutputStream.php system/io/YamlFileParser.php system/io/IniFileParser.php system/io/StringReader.php system/io/FileInputStream.php system/io/PrintStream.php system/io/InputStreamReader.php system/io/FileOutputStream.php system/io/FilterReader.php system/io/ConsoleReader.php system/io/BufferedWriter.php system/io/OutputStreamWriter.php system/io/FileParserFactory.php system/io/Reader.php system/io/FileReader.php system/io/FileWriter.php system/io/Writer.php system/util/Properties.php system/util/RegisterSlot.php system/util/Timer.php system/util/Register.php system/lang/EventObject.php system/lang/Character.php filters/ReplaceTokens.php filters/XsltFilter.php filters/ReplaceTokensWithFile.php filters/util/ChainReaderHelper.php filters/util/IniFileTokenReader.php filters/TranslateGettext.php filters/LineContainsRegexp.php filters/LineContains.php filters/ConcatFilter.php filters/TailFilter.php filters/XincludeFilter.php filters/StripLineComments.php filters/SuffixLines.php filters/HeadFilter.php filters/TidyFilter.php filters/IconvFilter.php filters/PrefixLines.php filters/SortFilter.php filters/PhpArrayMapLines.php filters/StripLineBreaks.php filters/BaseFilterReader.php filters/TabToSpaces.php filters/EscapeUnicode.php filters/ReplaceRegexp.php filters/StripWhitespace.php filters/StripPhpComments.php filters/XsltParam.php filters/ClassConstants.php filters/Token.php filters/ExpandProperties.php filters/BaseParamFilterReader.php filters/Comment.php filters/Contains.php listener/statistics/StatisticsReport.php listener/statistics/Table.php listener/statistics/Series.php listener/statistics/StatsTimer.php listener/statistics/SeriesTimer.php listener/statistics/TimerMap.php listener/statistics/StringFormatter.php listener/statistics/ProjectTimer.php listener/statistics/ProjectTimerMap.php listener/statistics/Duration.php listener/statistics/SeriesMap.php listener/statistics/TimeFormatter.php listener/statistics/DefaultClock.php listener/XmlLogger.php listener/DefaultLogger.php listener/HtmlColorLogger.php listener/ProgressLogger.php listener/MailLogger.php listener/AnsiColorLogger.php listener/StatisticsListener.php listener/MonologListener.php listener/JsonLogger.php listener/ProfileLogger.php listener/NoBannerLogger.php listener/TargetLogger.php listener/SilentLogger.php listener/TimestampedLogger.php util/DirectoryScanner.php util/FileUtils.php util/PearPackageScanner.php util/regexp/PregEngine.php util/regexp/Regexp.php util/SourceFileScanner.php util/ExtendedFileStream.php util/StringHelper.php util/DataStore.php util/PathTokenizer.php util/XMLFragment.php util/XMLChild.php util/LogWriter.php Phing.php parser/ProjectConfigurator.php parser/TargetHandler.php parser/ProjectHandler.php parser/ElementHandler.php parser/PhingXMLContext.php parser/ExpatParser.php parser/Location.php parser/AbstractHandler.php parser/RootHandler.php parser/AbstractSAXParser.php Project.php IntrospectionHelper.php ComponentHelper.php PropertyHelper.php mappers/GlobMapper.php mappers/RegexpMapper.php mappers/ContainerMapper.php mappers/CutDirsMapper.php mappers/ChainedMapper.php mappers/CompositeMapper.php mappers/MergeMapper.php mappers/FirstMatchMapper.php mappers/FlattenMapper.php mappers/IdentityMapper.php Target.php Task.php UnknownElement.php Diagnostics.php input/ConsoleInputHandler.php input/InputRequest.php input/MultipleChoiceInputRequest.php input/YesNoInputRequest.php input/NoInteractionInputHandler.php RuntimeConfigurable.php dispatch/DispatchUtils.php dispatch/DispatchTask.php BuildEvent.php BuildException.php TaskAdapter.php ProjectComponent.php ConfigurationException.php ExitStatusException.php ExtensionPoint.php

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.


@@ -25,9 +25,7 @@
Loading
25 25
{
26 26
    public function printResult(array $count, $countTests = false)
27 27
    {
28 -
        if (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\XML')) {
29 -
            $printer = new SebastianBergmann\PHPLOC\Log\XML();
30 -
        } elseif (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\Xml')) {
28 +
        if (class_exists('\\SebastianBergmann\\PHPLOC\\Log\\Xml')) {
31 29
            $printer = new SebastianBergmann\PHPLOC\Log\Xml();
32 30
        } else {
33 31
            throw new BuildException('Not supported PHPLOC version used.');

@@ -61,79 +61,28 @@
Loading
61 61
     */
62 62
    public function init(): void
63 63
    {
64 -
        $this->setFormat(VisualizerTask::FORMAT_PNG);
65 -
        $this->setServer(VisualizerTask::SERVER);
66 -
        $this->checkHttpRequestLibrary();
67 -
        $this->checkPlantUmlLibrary();
68 -
        $this->checkXslExtension();
69 -
        $this->checkXmlExtension();
70 -
    }
71 -
72 -
    /**
73 -
     * Checks that `\HTTP_Request2` class is available
74 -
     *
75 -
     * Instead of checking that `pear/http_request2` library is loaded we only check `\HTTP_Request2` class availability
76 -
     */
77 -
    protected function checkHttpRequestLibrary()
78 -
    {
79 -
        $this->classExists('HTTP_Request2', "Please install 'pear/http_request2' library");
80 -
    }
81 -
82 -
    /**
83 -
     * Verifies that provided $class exists
84 -
     *
85 -
     * @param string $class Name of the class to verify
86 -
     * @param string $message Error message to display when class don't exists
87 -
     */
88 -
    protected function classExists(string $class, string $message): void
89 -
    {
90 -
        if (!class_exists($class)) {
91 -
            $this->log($message, Project::MSG_ERR);
92 -
            throw new BuildException($message);
64 +
        parent::init();
65 +
        if (!function_exists(\Jawira\PlantUml\encodep::class)) {
66 +
            $exceptionMessage = get_class($this) . ' requires "jawira/plantuml-encoding" library';
93 67
        }
94 -
    }
95 -
96 -
    /**
97 -
     * Checks that `encodep` function is available
98 -
     *
99 -
     * Instead of checking that `jawira/plantuml-encoding` library is loaded we only check 'encodep' function
100 -
     * availability
101 -
     */
102 -
    protected function checkPlantUmlLibrary()
103 -
    {
104 -
        $function = '\Jawira\PlantUml\encodep';
105 -
        $message = "Please install 'jawira/plantuml-encoding' library";
106 -
107 -
        if (!function_exists($function)) {
108 -
            $this->log($message, Project::MSG_ERR);
109 -
            throw new BuildException($message);
68 +
        if (!class_exists(XSLTProcessor::class)) {
69 +
            $exceptionMessage = get_class($this) . ' requires XSL extension';
110 70
        }
111 -
    }
112 -
113 -
    /**
114 -
     * Checks that `XSLTProcessor` class is available
115 -
     *
116 -
     * Instead of checking that XSL extension is loaded we only check `XSLTProcessor` class availability
117 -
     */
118 -
    protected function checkXslExtension(): void
119 -
    {
120 -
        $this->classExists('XSLTProcessor', 'Please install XSL extension');
121 -
    }
122 -
123 -
    /**
124 -
     * Checks that `SimpleXMLElement` class is available
125 -
     *
126 -
     * Instead of checking that SimpleXML extension is loaded we only check `SimpleXMLElement` class availability
127 -
     */
128 -
    protected function checkXmlExtension(): void
129 -
    {
130 -
        $this->classExists('SimpleXMLElement', 'Please install SimpleXML extension');
71 +
        if (!class_exists(SimpleXMLElement::class)) {
72 +
            $exceptionMessage = get_class($this) . ' requires SimpleXML extension';
73 +
        }
74 +
        if (isset($exceptionMessage)) {
75 +
            $this->log($exceptionMessage, Project::MSG_ERR);
76 +
            throw new BuildException($exceptionMessage);
77 +
        }
78 +
        $this->setFormat(VisualizerTask::FORMAT_PNG);
79 +
        $this->setServer(VisualizerTask::SERVER);
131 80
    }
132 81
133 82
    /**
134 83
     * The main entry point method.
135 84
     *
136 -
     * @throws \HTTP_Request2_Exception
85 +
     * @throws \GuzzleHttp\Exception\GuzzleException
137 86
     * @throws \IOException
138 87
     * @throws \NullPointerException
139 88
     */
@@ -342,7 +291,7 @@
Loading
342 291
     * @param string $format
343 292
     *
344 293
     * @return string
345 -
     * @throws \HTTP_Request2_Exception
294 +
     * @throws \GuzzleHttp\Exception\GuzzleException
346 295
     */
347 296
    protected function generateImage(string $pumlDiagram, string $format): string
348 297
    {
@@ -356,10 +305,10 @@
Loading
356 305
        $encodedPuml = encodep($pumlDiagram);
357 306
        $this->prepareImageUrl($format, $encodedPuml);
358 307
359 -
        $response = $this->request()->send();
308 +
        $response = $this->request();
360 309
        $this->processResponse($response); // used for status validation
361 310
362 -
        return $response->getBody();
311 +
        return $response->getBody()->getContents();
363 312
    }
364 313
365 314
    /**

@@ -20,6 +20,7 @@
Loading
20 20
use GuzzleHttp\Middleware;
21 21
use Psr\Http\Message\ResponseInterface;
22 22
use Symfony\Component\Console\Logger\ConsoleLogger;
23 +
use Symfony\Component\Console\Output\ConsoleOutput;
23 24
24 25
/**
25 26
 * A HTTP request task.
@@ -150,7 +151,7 @@
Loading
150 151
        }
151 152
152 153
        if ($this->verbose) {
153 -
            self::getHandlerStack()->push(Middleware::log(new ConsoleLogger(), new \GuzzleHttp\MessageFormatter()));
154 +
            self::getHandlerStack()->push(Middleware::log(new ConsoleLogger(new ConsoleOutput()), new \GuzzleHttp\MessageFormatter()));
154 155
        }
155 156
156 157
        return parent::request($options);

@@ -39,16 +39,16 @@
Loading
39 39
40 40
        switch ($type) {
41 41
            case "xml":
42 -
                include_once 'phing/tasks/ext/phploc/PHPLocXMLFormatter.php';
43 42
                $formatter = new PHPLocXMLFormatter();
44 43
                break;
44 +
            case "json":
45 +
                $formatter = new PHPLocJSONFormatter();
46 +
                break;
45 47
            case "csv":
46 -
                include_once 'phing/tasks/ext/phploc/PHPLocCSVFormatter.php';
47 48
                $formatter = new PHPLocCSVFormatter();
48 49
                break;
49 50
            case "txt":
50 51
            case "cli":
51 -
                include_once 'phing/tasks/ext/phploc/PHPLocTextFormatter.php';
52 52
                $formatter = new PHPLocTextFormatter();
53 53
                break;
54 54
            default:

@@ -35,7 +35,7 @@
Loading
35 35
    /**
36 36
     * @var array
37 37
     */
38 -
    protected $acceptedReportTypes = ['cli', 'txt', 'xml', 'csv'];
38 +
    protected $acceptedReportTypes = ['cli', 'txt', 'xml', 'csv', 'json'];
39 39
40 40
    /**
41 41
     * @var null
@@ -302,10 +302,10 @@
Loading
302 302
303 303
        if (count($this->filesToCheck) > 0) {
304 304
            foreach ($this->filesToCheck as $file) {
305 -
                $files[] = new SplFileInfo($file);
305 +
                $files[] = (new SplFileInfo($file))->getRealPath();
306 306
            }
307 307
        } elseif ($this->fileToCheck !== null) {
308 -
            $files = [new SplFileInfo($this->fileToCheck)];
308 +
            $files = [(new SplFileInfo($this->fileToCheck))->getRealPath()];
309 309
        }
310 310
311 311
        return $files;

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Learn more Showing 8 files with coverage changes found.

New file classes/phing/tasks/ext/phploc/PHPLocJSONFormatter.php
New
Loading file...
Changes in classes/phing/util/SourceFileScanner.php
-5
+5
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocXMLFormatter.php
-1
+1
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocFormatterFactory.php
-7
+7
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocTask.php
-56
+56
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocCSVFormatter.php
-6
+5
Loading file...
Changes in classes/phing/tasks/ext/phploc/AbstractPHPLocFormatter.php
-16
+13
Loading file...
Changes in classes/phing/tasks/ext/phploc/PHPLocFormatterElement.php
-16
+16
Loading file...
Files Complexity Coverage
classes/phing ø 0.58% 53.07%
Project Totals (477 files) 9306 53.07%
Loading