1414class ReadCommand extends Command
1515{
1616 protected $ signature = 'read '
17- . ' {repository?* : Full or partial repository names} '
18- . ' {--r|except-repository=* : Exclude repositories from processing} '
19- . ' {--i|except-issues : Exclude issues from processing} '
20- . ' {--p|except-pulls : Exclude Pull Requests from processing} '
21- . ' {--m|except-mentions : Exclude notifications with your mention from processing} '
22- . ' {--o|with-open : Process including open Issues and Pull Requests} '
23- . ' {--token= : Specifies the token to use} ' ;
17+ . ' {repository?* : Full or partial repository names} '
18+ . ' {--r|except-repository=* : Exclude repositories from processing} '
19+ . ' {--i|except-issues : Exclude issues from processing} '
20+ . ' {--p|except-pulls : Exclude Pull Requests from processing} '
21+ . ' {--m|except-mentions : Exclude notifications with your mention from processing} '
22+ . ' {--o|with-open : Process including open Issues and Pull Requests} '
23+ . ' {--token= : Specifies the token to use} ' ;
2424
2525 protected $ description = 'Marks as read all notifications based on specified conditions ' ;
2626
2727 public function handle (): void
2828 {
2929 $ include = $ this ->repositories ();
30- $ except = $ this ->exceptRepositories ();
30+ $ except = $ this ->exceptRepositories ();
3131
3232 $ this ->welcome ($ include , $ except );
3333
@@ -46,7 +46,7 @@ protected function welcome(array $repositories, ?array $exceptRepositories): voi
4646 $ this ->bulletList ('You specified the following masks to exclude repositories: ' , $ exceptRepositories );
4747 }
4848
49- if (!$ repositories && !$ exceptRepositories ) {
49+ if (! $ repositories && ! $ exceptRepositories ) {
5050 Output::info ('Mark as read all notifications except open ones ' );
5151 }
5252 }
@@ -75,10 +75,10 @@ protected function read(array $repositories): void
7575 protected function shouldBeAll (array $ repositories ): bool
7676 {
7777 return empty ($ repositories )
78- && !$ this ->exceptRepositories ()
79- && !$ this ->exceptIssues ()
80- && !$ this ->exceptPulls ()
81- && !$ this ->exceptMentions ()
78+ && ! $ this ->exceptRepositories ()
79+ && ! $ this ->exceptIssues ()
80+ && ! $ this ->exceptPulls ()
81+ && ! $ this ->exceptMentions ()
8282 && $ this ->withOpen ();
8383 }
8484
@@ -87,8 +87,8 @@ protected function gitHub(): GitHub
8787 $ client = ClientFactory::make ($ this ->token ());
8888
8989 return app (GitHub::class, [
90- 'output ' => $ this ->components ,
91- 'github ' => $ client ,
90+ 'output ' => $ this ->components ,
91+ 'github ' => $ client ,
9292 'paginator ' => new ResultPager ($ client ),
9393 ]);
9494 }
0 commit comments