Skip to content

Commit c1e3049

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Run 'tools/php-cs-fixer fix'
1 parent 6e1229d commit c1e3049

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

src/Framework/Constraint/ArraySubset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ public function __construct(iterable $subset, bool $strict = false)
6161
*/
6262
public function evaluate($other, string $description = '', bool $returnResult = false)
6363
{
64-
//type cast $other & $this->subset as an array to allow
65-
//support in standard array functions.
64+
// type cast $other & $this->subset as an array to allow
65+
// support in standard array functions.
6666
$other = $this->toArray($other);
6767
$this->subset = $this->toArray($this->subset);
6868

src/Framework/MockObject/Builder/InvocationStubber.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,46 @@ interface InvocationStubber
1717
public function will(Stub $stub): Identity;
1818

1919
/** @return self */
20-
public function willReturn($value, ...$nextValues)/*: self */;
20+
public function willReturn($value, ...$nextValues)/* : self */;
2121

2222
/**
2323
* @param mixed $reference
2424
*
2525
* @return self
2626
*/
27-
public function willReturnReference(&$reference)/*: self */;
27+
public function willReturnReference(&$reference)/* : self */;
2828

2929
/**
3030
* @param array<int, array<int, mixed>> $valueMap
3131
*
3232
* @return self
3333
*/
34-
public function willReturnMap(array $valueMap)/*: self */;
34+
public function willReturnMap(array $valueMap)/* : self */;
3535

3636
/**
3737
* @param int $argumentIndex
3838
*
3939
* @return self
4040
*/
41-
public function willReturnArgument($argumentIndex)/*: self */;
41+
public function willReturnArgument($argumentIndex)/* : self */;
4242

4343
/**
4444
* @param callable $callback
4545
*
4646
* @return self
4747
*/
48-
public function willReturnCallback($callback)/*: self */;
48+
public function willReturnCallback($callback)/* : self */;
4949

5050
/** @return self */
51-
public function willReturnSelf()/*: self */;
51+
public function willReturnSelf()/* : self */;
5252

5353
/**
5454
* @param mixed $values
5555
*
5656
* @return self
5757
*/
58-
public function willReturnOnConsecutiveCalls(...$values)/*: self */;
58+
public function willReturnOnConsecutiveCalls(...$values)/* : self */;
5959

6060
/** @return self */
61-
public function willThrowException(Throwable $exception)/*: self */;
61+
public function willThrowException(Throwable $exception)/* : self */;
6262
}

src/Framework/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ protected function getMockForTrait($traitName, array $arguments = [], $mockClass
19471947
*
19481948
* @return object
19491949
*/
1950-
protected function getObjectForTrait($traitName, array $arguments = [], $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true)/*: object*/
1950+
protected function getObjectForTrait($traitName, array $arguments = [], $traitClassName = '', $callOriginalConstructor = true, $callOriginalClone = true, $callAutoload = true)/* : object */
19511951
{
19521952
$this->recordDoubledType($traitName);
19531953

src/Util/Annotation/DocBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ private function getDataFromTestWithAnnotation(string $docComment): ?array
563563

564564
private function cleanUpMultiLineAnnotation(string $docComment): string
565565
{
566-
//removing initial ' * ' for docComment
566+
// removing initial ' * ' for docComment
567567
$docComment = str_replace("\r\n", "\n", $docComment);
568568
$docComment = preg_replace('/\n\s*\*\s?/', "\n", $docComment);
569569
$docComment = (string) substr($docComment, 0, -1);

tests/end-to-end/regression/1337/Issue1337Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function dataProvider()
2424
return [
2525
'c:\\' => [true],
2626
// The following is commented out because it no longer works in PHP >= 8.1
27-
//0.9 => [true],
27+
// 0.9 => [true],
2828
];
2929
}
3030
}

tests/end-to-end/regression/2137/Issue2137Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testBrandService($provided, $expected): void
2424
public function provideBrandService()
2525
{
2626
return [
27-
//[true, true]
27+
// [true, true]
2828
new stdClass, // not valid
2929
];
3030
}

tests/end-to-end/regression/498/Issue498Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function shouldBeFalse($testData): void
3737

3838
public function shouldBeTrueDataProvider()
3939
{
40-
//throw new Exception("Can't create the data");
40+
// throw new Exception("Can't create the data");
4141
return [
4242
[true],
4343
[false],

tests/unit/Framework/AssertTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,7 +2569,7 @@ protected function notEqualValues(): array
25692569
new DateTime('2013-03-29T05:13:35-0500'),
25702570
],
25712571
// Exception
2572-
//array(new Exception('Exception 1'), new Exception('Exception 2')),
2572+
// array(new Exception('Exception 1'), new Exception('Exception 2')),
25732573
// different types
25742574
[new SampleClass(4, 8, 15), false],
25752575
[false, new SampleClass(4, 8, 15)],
@@ -2654,7 +2654,7 @@ protected function equalValues(): array
26542654
new DateTime('2013-03-29T04:13:35-0600'),
26552655
],
26562656
// Exception
2657-
//array(new Exception('Exception 1'), new Exception('Exception 1')),
2657+
// array(new Exception('Exception 1'), new Exception('Exception 1')),
26582658
// mixed types
26592659
[0, '0'],
26602660
['0', 0],

0 commit comments

Comments
 (0)