Skip to content

Commit 0f89e2c

Browse files
Reorganize
1 parent 75a0f91 commit 0f89e2c

39 files changed

+59
-58
lines changed

.psalm/baseline.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,17 @@
4343
<code>waiting()</code>
4444
</UndefinedFunction>
4545
</file>
46+
<file src="src/Data/ProcessedCodeCoverageData.php">
47+
<PossiblyNullArgument occurrences="1">
48+
<code>$this-&gt;functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code>
49+
</PossiblyNullArgument>
50+
<PossiblyNullArrayAccess occurrences="1">
51+
<code>$this-&gt;functionCoverage[$file][$functionName]['branches']</code>
52+
</PossiblyNullArrayAccess>
53+
<PossiblyNullArrayAssignment occurrences="1">
54+
<code>$this-&gt;functionCoverage[$file][$functionName]['branches']</code>
55+
</PossiblyNullArrayAssignment>
56+
</file>
4657
<file src="src/Driver/Xdebug2Driver.php">
4758
<UndefinedConstant occurrences="3">
4859
<code>XDEBUG_CC_BRANCH_CHECK</code>
@@ -131,17 +142,6 @@
131142
<code>$position</code>
132143
</PropertyNotSetInConstructor>
133144
</file>
134-
<file src="src/ProcessedCodeCoverageData.php">
135-
<PossiblyNullArgument occurrences="1">
136-
<code>$this-&gt;functionCoverage[$file][$functionName]['branches'][$branchId]['hit']</code>
137-
</PossiblyNullArgument>
138-
<PossiblyNullArrayAccess occurrences="1">
139-
<code>$this-&gt;functionCoverage[$file][$functionName]['branches']</code>
140-
</PossiblyNullArrayAccess>
141-
<PossiblyNullArrayAssignment occurrences="1">
142-
<code>$this-&gt;functionCoverage[$file][$functionName]['branches']</code>
143-
</PossiblyNullArrayAssignment>
144-
</file>
145145
<file src="src/Report/Html/Renderer/File.php">
146146
<InternalClass occurrences="7">
147147
<code>BaseTestRunner::STATUS_ERROR</code>

src/CodeCoverage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
use PHPUnit\Runner\PhptTestCase;
2727
use PHPUnit\Util\Test;
2828
use ReflectionClass;
29+
use SebastianBergmann\CodeCoverage\Data\ProcessedCodeCoverageData;
30+
use SebastianBergmann\CodeCoverage\Data\RawCodeCoverageData;
2931
use SebastianBergmann\CodeCoverage\Driver\Driver;
3032
use SebastianBergmann\CodeCoverage\Node\Builder;
3133
use SebastianBergmann\CodeCoverage\Node\Directory;

src/ProcessedCodeCoverageData.php renamed to src/Data/ProcessedCodeCoverageData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
namespace SebastianBergmann\CodeCoverage;
10+
namespace SebastianBergmann\CodeCoverage\Data;
1111

1212
use function array_key_exists;
1313
use function array_keys;

src/RawCodeCoverageData.php renamed to src/Data/RawCodeCoverageData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
namespace SebastianBergmann\CodeCoverage;
10+
namespace SebastianBergmann\CodeCoverage\Data;
1111

1212
use function array_diff;
1313
use function array_diff_key;

src/Driver/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
use function sprintf;
1313
use SebastianBergmann\CodeCoverage\BranchAndPathCoverageNotSupportedException;
14+
use SebastianBergmann\CodeCoverage\Data\RawCodeCoverageData;
1415
use SebastianBergmann\CodeCoverage\DeadCodeDetectionNotSupportedException;
1516
use SebastianBergmann\CodeCoverage\Filter;
1617
use SebastianBergmann\CodeCoverage\NoCodeCoverageDriverAvailableException;
1718
use SebastianBergmann\CodeCoverage\NoCodeCoverageDriverWithPathCoverageSupportAvailableException;
18-
use SebastianBergmann\CodeCoverage\RawCodeCoverageData;
1919

2020
/**
2121
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

src/Driver/PcovDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
use function pcov\stop;
1919
use function pcov\waiting;
2020
use function phpversion;
21+
use SebastianBergmann\CodeCoverage\Data\RawCodeCoverageData;
2122
use SebastianBergmann\CodeCoverage\Filter;
22-
use SebastianBergmann\CodeCoverage\RawCodeCoverageData;
2323

2424
/**
2525
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

src/Driver/PhpdbgDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use function phpdbg_end_oplog;
1919
use function phpdbg_get_executable;
2020
use function phpdbg_start_oplog;
21-
use SebastianBergmann\CodeCoverage\RawCodeCoverageData;
21+
use SebastianBergmann\CodeCoverage\Data\RawCodeCoverageData;
2222

2323
/**
2424
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

src/Driver/Xdebug2Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
use function xdebug_set_filter;
2626
use function xdebug_start_code_coverage;
2727
use function xdebug_stop_code_coverage;
28+
use SebastianBergmann\CodeCoverage\Data\RawCodeCoverageData;
2829
use SebastianBergmann\CodeCoverage\Filter;
29-
use SebastianBergmann\CodeCoverage\RawCodeCoverageData;
3030

3131
/**
3232
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

src/Driver/Xdebug3Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
use function xdebug_set_filter;
2727
use function xdebug_start_code_coverage;
2828
use function xdebug_stop_code_coverage;
29+
use SebastianBergmann\CodeCoverage\Data\RawCodeCoverageData;
2930
use SebastianBergmann\CodeCoverage\Filter;
30-
use SebastianBergmann\CodeCoverage\RawCodeCoverageData;
3131

3232
/**
3333
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

src/Exception/DirectoryCouldNotBeCreatedException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
* For the full copyright and license information, please view the LICENSE
88
* file that was distributed with this source code.
99
*/
10-
namespace SebastianBergmann\CodeCoverage;
10+
namespace SebastianBergmann\CodeCoverage\Util;
1111

1212
use RuntimeException;
13+
use SebastianBergmann\CodeCoverage\Exception;
1314

1415
final class DirectoryCouldNotBeCreatedException extends RuntimeException implements Exception
1516
{

0 commit comments

Comments
 (0)