Skip to content

Commit eeaa15a

Browse files
committed
Cleaning up
1 parent 70936e6 commit eeaa15a

File tree

6 files changed

+36
-36
lines changed

6 files changed

+36
-36
lines changed

tests/unit/classes/ClassInspectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// START CLASSES
1717
// --------------------------------------------------------------------------
1818

19-
#[Attribute()]
19+
#[Attribute]
2020
class AA
2121
{
2222
}

tests/unit/cli/output/components/AlertTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testRender(): void
3030
/** @var Mockery\MockInterface|Output $output */
3131
$output = Mockery::mock(Output::class);
3232

33-
(function () use ($env) {
33+
(function () use ($env): void {
3434
$this->formatter = null;
3535
$this->environment = $env;
3636
})->bindTo($output, Output::class)();
@@ -59,7 +59,7 @@ public function testRenderWithWidth(): void
5959

6060
$output->shouldReceive('getFormatter')->andReturn(null);
6161

62-
(function () {
62+
(function (): void {
6363
$this->formatter = null;
6464
})->bindTo($output, Output::class)();
6565

@@ -99,7 +99,7 @@ public function testDraw(): void
9999
/** @var Mockery\MockInterface|Output $output */
100100
$output = Mockery::mock(Output::class);
101101

102-
(function () use ($env) {
102+
(function () use ($env): void {
103103
$this->formatter = null;
104104
$this->environment = $env;
105105
})->bindTo($output, Output::class)();

tests/unit/cli/output/components/OrderedListTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testBasicList(): void
2424
/** @var Mockery\MockInterface|Output $output */
2525
$output = Mockery::mock(Output::class);
2626

27-
(function() {
27+
(function (): void {
2828
$this->formatter = null;
2929
})->bindTo($output, Output::class)();
3030

@@ -46,7 +46,7 @@ public function testNestedLists(): void
4646
/** @var Mockery\MockInterface|Output $output */
4747
$output = Mockery::mock(Output::class);
4848

49-
(function() {
49+
(function (): void {
5050
$this->formatter = null;
5151
})->bindTo($output, Output::class)();
5252

@@ -72,7 +72,7 @@ public function testCustomMarker(): void
7272
/** @var Mockery\MockInterface|Output $output */
7373
$output = Mockery::mock(Output::class);
7474

75-
(function() {
75+
(function (): void {
7676
$this->formatter = null;
7777
})->bindTo($output, Output::class)();
7878

@@ -94,7 +94,7 @@ public function testDraw(): void
9494
/** @var Mockery\MockInterface|Output $output */
9595
$output = Mockery::mock(Output::class);
9696

97-
(function() {
97+
(function (): void {
9898
$this->formatter = null;
9999
})->bindTo($output, Output::class)();
100100

@@ -118,7 +118,7 @@ public function testDrawWithCustomMarker(): void
118118
/** @var Mockery\MockInterface|Output $output */
119119
$output = Mockery::mock(Output::class);
120120

121-
(function() {
121+
(function (): void {
122122
$this->formatter = null;
123123
})->bindTo($output, Output::class)();
124124

tests/unit/cli/output/components/TableTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testBasicTable(): void
2727
/** @var Mockery\MockInterface|Output $output */
2828
$output = Mockery::mock(Output::class);
2929

30-
(function () {
30+
(function (): void {
3131
$this->formatter = null;
3232
})->bindTo($output, Output::class)();
3333

@@ -51,7 +51,7 @@ public function testBasicTableWithAsciiBorder(): void
5151
/** @var Mockery\MockInterface|Output $output */
5252
$output = Mockery::mock(Output::class);
5353

54-
(function () {
54+
(function (): void {
5555
$this->formatter = null;
5656
})->bindTo($output, Output::class)();
5757

@@ -75,7 +75,7 @@ public function testTableWithMultipleRows(): void
7575
/** @var Mockery\MockInterface|Output $output */
7676
$output = Mockery::mock(Output::class);
7777

78-
(function () {
78+
(function (): void {
7979
$this->formatter = null;
8080
})->bindTo($output, Output::class)();
8181

@@ -100,7 +100,7 @@ public function testTableWithMultipleColumns(): void
100100
/** @var Mockery\MockInterface|Output $output */
101101
$output = Mockery::mock(Output::class);
102102

103-
(function () {
103+
(function (): void {
104104
$this->formatter = null;
105105
})->bindTo($output, Output::class)();
106106

@@ -124,7 +124,7 @@ public function testTableWithMultipleColumnsAndRows(): void
124124
/** @var Mockery\MockInterface|Output $output */
125125
$output = Mockery::mock(Output::class);
126126

127-
(function () {
127+
(function (): void {
128128
$this->formatter = null;
129129
})->bindTo($output, Output::class)();
130130

@@ -156,7 +156,7 @@ public function testStyledContent(): void
156156
/** @var Mockery\MockInterface|Output $output */
157157
$output = Mockery::mock(Output::class);
158158

159-
(function () use ($formatter) {
159+
(function () use ($formatter): void {
160160
$this->formatter = $formatter;
161161
})->bindTo($output, Output::class)();
162162

@@ -180,7 +180,7 @@ public function testDraw(): void
180180
/** @var Mockery\MockInterface|Output $output */
181181
$output = Mockery::mock(Output::class);
182182

183-
(function () {
183+
(function (): void {
184184
$this->formatter = null;
185185
})->bindTo($output, Output::class)();
186186

@@ -208,7 +208,7 @@ public function testInvalidInput(): void
208208
/** @var Mockery\MockInterface|Output $output */
209209
$output = Mockery::mock(Output::class);
210210

211-
(function () {
211+
(function (): void {
212212
$this->formatter = null;
213213
})->bindTo($output, Output::class)();
214214

tests/unit/reactor/ReactorTest.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testNoInput(): void
8080
/** @var Input|Mockery\MockInterface $input */
8181
$input = Mockery::mock(Input::class);
8282

83-
(function () use ($argvParser) {
83+
(function () use ($argvParser): void {
8484
$this->argumentParser = $argvParser;
8585
})->bindTo($input, Input::class)();
8686

@@ -93,7 +93,7 @@ public function testNoInput(): void
9393
/** @var Mockery\MockInterface|Output $output */
9494
$output = Mockery::mock(Output::class);
9595

96-
(function () {
96+
(function (): void {
9797
$this->formatter = null;
9898
})->bindTo($output, Output::class)();
9999

@@ -173,7 +173,7 @@ public function testNoInputWithMute(): void
173173
/** @var Input|Mockery\MockInterface $input */
174174
$input = Mockery::mock(Input::class);
175175

176-
(function () use ($argvParser) {
176+
(function () use ($argvParser): void {
177177
$this->argumentParser = $argvParser;
178178
})->bindTo($input, Input::class)();
179179

@@ -188,7 +188,7 @@ public function testNoInputWithMute(): void
188188

189189
$output->shouldReceive('mute')->once();
190190

191-
(function () {
191+
(function (): void {
192192
$this->formatter = null;
193193
})->bindTo($output, Output::class)();
194194

@@ -266,7 +266,7 @@ public function testUknownCommand(): void
266266
/** @var Input|Mockery\MockInterface $input */
267267
$input = Mockery::mock(Input::class);
268268

269-
(function () use ($argvParser) {
269+
(function () use ($argvParser): void {
270270
$this->argumentParser = $argvParser;
271271
})->bindTo($input, Input::class)();
272272

@@ -279,7 +279,7 @@ public function testUknownCommand(): void
279279
/** @var Mockery\MockInterface|Output $output */
280280
$output = Mockery::mock(Output::class);
281281

282-
(function () {
282+
(function (): void {
283283
$this->formatter = null;
284284
})->bindTo($output, Output::class)();
285285

@@ -316,7 +316,7 @@ public function testUknownCommandWithSuggestion(): void
316316
/** @var Input|Mockery\MockInterface $input */
317317
$input = Mockery::mock(Input::class);
318318

319-
(function () use ($argvParser) {
319+
(function () use ($argvParser): void {
320320
$this->argumentParser = $argvParser;
321321
})->bindTo($input, Input::class)();
322322

@@ -331,7 +331,7 @@ public function testUknownCommandWithSuggestion(): void
331331

332332
$output->shouldReceive('write')->times(3);
333333

334-
(function () {
334+
(function (): void {
335335
$this->formatter = null;
336336
})->bindTo($output, Output::class)();
337337

@@ -375,7 +375,7 @@ public function testUknownCommandWithNoSuggestion(): void
375375
/** @var Input|Mockery\MockInterface $input */
376376
$input = Mockery::mock(Input::class);
377377

378-
(function () use ($argvParser) {
378+
(function () use ($argvParser): void {
379379
$this->argumentParser = $argvParser;
380380
})->bindTo($input, Input::class)();
381381

@@ -390,7 +390,7 @@ public function testUknownCommandWithNoSuggestion(): void
390390

391391
$output->shouldReceive('write')->times(3);
392392

393-
(function () {
393+
(function (): void {
394394
$this->formatter = null;
395395
})->bindTo($output, Output::class)();
396396

@@ -434,7 +434,7 @@ public function testCommandWithInvalidArguments(): void
434434
/** @var Input|Mockery\MockInterface $input */
435435
$input = Mockery::mock(Input::class);
436436

437-
(function () use ($argvParser) {
437+
(function () use ($argvParser): void {
438438
$this->argumentParser = $argvParser;
439439
})->bindTo($input, Input::class)();
440440

@@ -488,7 +488,7 @@ public function testCommandWithInvalidInput(): void
488488
/** @var Input|Mockery\MockInterface $input */
489489
$input = Mockery::mock(Input::class);
490490

491-
(function () use ($argvParser) {
491+
(function () use ($argvParser): void {
492492
$this->argumentParser = $argvParser;
493493
})->bindTo($input, Input::class)();
494494

@@ -542,7 +542,7 @@ public function testCommand(): void
542542
/** @var Input|Mockery\MockInterface $input */
543543
$input = Mockery::mock(Input::class);
544544

545-
(function () use ($argvParser) {
545+
(function () use ($argvParser): void {
546546
$this->argumentParser = $argvParser;
547547
})->bindTo($input, Input::class)();
548548

@@ -594,7 +594,7 @@ public function testDisplayCommandHelp(): void
594594
/** @var Input|Mockery\MockInterface $input */
595595
$input = Mockery::mock(Input::class);
596596

597-
(function () use ($argvParser) {
597+
(function () use ($argvParser): void {
598598
$this->argumentParser = $argvParser;
599599
})->bindTo($input, Input::class)();
600600

@@ -609,7 +609,7 @@ public function testDisplayCommandHelp(): void
609609
/** @var Mockery\MockInterface|Output $output */
610610
$output = Mockery::mock(Output::class);
611611

612-
(function () {
612+
(function (): void {
613613
$this->formatter = null;
614614
})->bindTo($output, Output::class)();
615615

@@ -673,7 +673,7 @@ public function testDisplayCommandHelpWithoutAttributes(): void
673673
/** @var Input|Mockery\MockInterface $input */
674674
$input = Mockery::mock(Input::class);
675675

676-
(function () use ($argvParser) {
676+
(function () use ($argvParser): void {
677677
$this->argumentParser = $argvParser;
678678
})->bindTo($input, Input::class)();
679679

@@ -688,7 +688,7 @@ public function testDisplayCommandHelpWithoutAttributes(): void
688688
/** @var Mockery\MockInterface|Output $output */
689689
$output = Mockery::mock(Output::class);
690690

691-
(function () {
691+
(function (): void {
692692
$this->formatter = null;
693693
})->bindTo($output, Output::class)();
694694

tests/unit/reactor/attributes/ArgumentsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class ArgumentsTest extends TestCase
2121
*/
2222
public function testGetArguments(): void
2323
{
24-
/** @var Argument&\Mockery\LegacyMockInterface&\Mockery\MockInterface $arg1 */
24+
/** @var Argument&Mockery\LegacyMockInterface&Mockery\MockInterface $arg1 */
2525
$arg1 = Mockery::mock(Argument::class);
26-
/** @var Argument&\Mockery\LegacyMockInterface&\Mockery\MockInterface $arg2 */
26+
/** @var Argument&Mockery\LegacyMockInterface&Mockery\MockInterface $arg2 */
2727
$arg2 = Mockery::mock(Argument::class);
2828

2929
$arguments = new CommandArguments($arg1, $arg2);

0 commit comments

Comments
 (0)