Skip to content

Commit a857004

Browse files
committed
move files into Analyser namespace
1 parent 8f20359 commit a857004

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

conf/services.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ services:
108108
autowired: false
109109

110110
-
111-
class: PHPStan\Diagnose\ProcessedFilesCollector
111+
class: PHPStan\Analyser\ProcessedFilesCollector
112112

113113
-
114-
class: PHPStan\Diagnose\ProcessedFilesAnalysisDiagnoseExtension
114+
class: PHPStan\Analyser\ProcessedFilesDiagnoseExtension
115115
arguments:
116116
simpleRelativePathHelper: @simpleRelativePathHelper
117117
tags:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace PHPStan\Diagnose;
3+
namespace PHPStan\Analyser;
44

55
use function array_count_values;
66
use function array_slice;

src/Diagnose/ProcessedFilesAnalysisDiagnoseExtension.php renamed to src/Analyser/ProcessedFilesDiagnoseExtension.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<?php declare(strict_types = 1);
22

3-
namespace PHPStan\Diagnose;
3+
namespace PHPStan\Analyser;
44

55
use PHPStan\Command\Output;
6+
use PHPStan\Diagnose\DiagnoseExtension;
67
use PHPStan\File\RelativePathHelper;
78
use function count;
89
use function sprintf;
910

10-
final class ProcessedFilesAnalysisDiagnoseExtension implements DiagnoseExtension
11+
final class ProcessedFilesDiagnoseExtension implements DiagnoseExtension
1112
{
1213

1314
public function __construct(

src/Command/AnalyseApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
use PHPStan\Analyser\Error;
88
use PHPStan\Analyser\FileAnalyserResult;
99
use PHPStan\Analyser\Ignore\IgnoredErrorHelper;
10+
use PHPStan\Analyser\ProcessedFilesCollector;
1011
use PHPStan\Analyser\ResultCache\ResultCacheManagerFactory;
1112
use PHPStan\Collectors\CollectedData;
1213
use PHPStan\DependencyInjection\AutowiredService;
13-
use PHPStan\Diagnose\ProcessedFilesCollector;
1414
use PHPStan\Internal\BytesHelper;
1515
use PHPStan\PhpDoc\StubFilesProvider;
1616
use PHPStan\PhpDoc\StubValidator;

tests/PHPStan/Diagnose/ProcessedFilesCollectorTest.php renamed to tests/PHPStan/Analyser/ProcessedFilesCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace PHPStan\Diagnose;
3+
namespace PHPStan\Analyser;
44

55
use PHPUnit\Framework\TestCase;
66
use function array_keys;

tests/PHPStan/Diagnose/ProcessedFilesAnalysisDiagnoseExtensionTest.php renamed to tests/PHPStan/Analyser/ProcessedFilesDiagnoseExtensionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?php declare(strict_types = 1);
22

3-
namespace PHPStan\Diagnose;
3+
namespace PHPStan\Analyser;
44

55
use PHPStan\Command\Output;
66
use PHPStan\File\NullRelativePathHelper;
77
use PHPUnit\Framework\TestCase;
88

9-
class ProcessedFilesAnalysisDiagnoseExtensionTest extends TestCase
9+
class ProcessedFilesDiagnoseExtensionTest extends TestCase
1010
{
1111

1212
public function testNoOutput(): void
1313
{
1414
$collector = new ProcessedFilesCollector();
15-
$extension = new ProcessedFilesAnalysisDiagnoseExtension($collector, new NullRelativePathHelper());
15+
$extension = new ProcessedFilesDiagnoseExtension($collector, new NullRelativePathHelper());
1616

1717
$lines = [];
1818
$output = $this->createOutput($lines);
@@ -28,7 +28,7 @@ public function testPrintsTopFiles(): void
2828
$collector->addProcessedFiles(['/src/B.php', '/src/Trait1.php', '/src/Trait2.php']);
2929
$collector->addProcessedFiles(['/src/C.php', '/src/Trait1.php']);
3030

31-
$extension = new ProcessedFilesAnalysisDiagnoseExtension($collector, new NullRelativePathHelper());
31+
$extension = new ProcessedFilesDiagnoseExtension($collector, new NullRelativePathHelper());
3232

3333
$lines = [];
3434
$output = $this->createOutput($lines);

0 commit comments

Comments
 (0)