File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,14 @@ public function handle(string $sniffPath = null): iterable
32
32
$ filesystem = new Filesystem ();
33
33
34
34
$ standardPath = new Folder ($ repoPath . 'PHPCompatibility/ ' );
35
+ yield "Searching for sniffs... " ;
35
36
36
37
if ($ sniffPath !== null ) {
37
38
$ sniffs = [$ this ->sniffFinder ->getSniff ($ standardPath , $ sniffPath )];
38
39
} else {
39
40
$ sniffs = $ this ->sniffFinder ->getSniffs ($ standardPath );
40
41
}
41
42
42
- $ count = count ($ sniffs );
43
- yield "Found {$ count } sniff(s) " ;
44
-
45
43
foreach ($ sniffs as $ sniff ) {
46
44
$ markdownPath = $ this ->sniffCodeToMarkdownPath ($ sniff ->getCode ());
47
45
$ filesystem ->dumpFile (
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function handle_WithoutArguments_CreatesFile()
48
48
49
49
self ::assertEquals (
50
50
[
51
- 'Found 2 sniff(s) ' ,
51
+ 'Searching for sniffs... ' ,
52
52
'Created file: var/markdown/Standard/Category/First.md ' ,
53
53
'Created file: var/markdown/Standard/Category/Second.md '
54
54
],
@@ -67,7 +67,7 @@ public function handle_WithSniffPath_CreatesSingleFile()
67
67
68
68
self ::assertEquals (
69
69
[
70
- 'Found 1 sniff(s) ' ,
70
+ 'Searching for sniffs... ' ,
71
71
'Created file: var/markdown/Standard/Category/First.md ' ,
72
72
],
73
73
iterator_to_array ($ messages )
You can’t perform that action at this time.
0 commit comments