Skip to content

Commit cef2ebf

Browse files
committed
Code style cleanup.
1 parent 6c8c0fd commit cef2ebf

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

scoper.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function (SplFileInfo $fileInfo) {
2222
->name('bootstrap*.php'),
2323
false
2424
)
25-
);
25+
);
2626

2727
$polyfillsStubs = [];
2828

src/CodeCleaner/ValidClassNamePass.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ protected function ensureInterfacesExist(array $interfaces, Stmt $stmt)
265265
* Get a symbol type key for storing in the scope name cache.
266266
*
267267
* @deprecated No longer used. Scope type should be passed into ensureCanDefine directly.
268+
*
268269
* @codeCoverageIgnore
269270
*
270271
* @throws FatalErrorException

src/Formatter/SignatureFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public static function format(\Reflector $reflector): string
3838
case $reflector instanceof ReflectionLanguageConstruct:
3939
return self::formatFunction($reflector);
4040

41-
// this case also covers \ReflectionObject:
4241
case $reflector instanceof \ReflectionClass:
42+
// this case also covers \ReflectionObject
4343
return self::formatClass($reflector);
4444

4545
case $reflector instanceof ReflectionClassConstant:

src/Output/Theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function __construct($config = 'modern')
9595
$config = static::MODERN_THEME;
9696
break;
9797

98-
case 'compact':
98+
case 'compact':
9999
$config = static::COMPACT_THEME;
100100
break;
101101

src/TabCompletion/Matcher/CommandsMatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function hasMatched(array $tokens): bool
9999

100100
switch (true) {
101101
case self::tokenIs($command, self::T_STRING) &&
102-
!$this->isCommand($command[1]) &&
103-
$this->matchCommand($command[1]) &&
104-
empty($tokens):
102+
!$this->isCommand($command[1]) &&
103+
$this->matchCommand($command[1]) &&
104+
empty($tokens):
105105
return true;
106106
}
107107

src/TabCompletion/Matcher/KeywordsMatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function hasMatched(array $tokens): bool
7373
case self::hasToken([self::T_OPEN_TAG, self::T_VARIABLE], $token):
7474
// case is_string($token) && $token === '$':
7575
case self::hasToken([self::T_OPEN_TAG, self::T_VARIABLE], $prevToken) &&
76-
self::tokenIs($token, self::T_STRING):
76+
self::tokenIs($token, self::T_STRING):
7777
case self::isOperator($token):
7878
return true;
7979
}

test/SudoTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testCallMethod()
4747
$this->assertSame(
4848
'private and method with ["foo",2]',
4949
Sudo::callMethod($obj, 'privateMethod', ['foo', 2]
50-
));
50+
));
5151
}
5252

5353
public function testStaticProperty()
@@ -72,7 +72,7 @@ public function testCallStatic()
7272
$this->assertSame(
7373
'private and static and method with ["foo",2]',
7474
Sudo::callStatic($obj, 'privateStaticMethod', ['foo', 2]
75-
));
75+
));
7676
}
7777

7878
public function testFetchClassConst()
@@ -97,7 +97,7 @@ public function testParentMethods()
9797
$this->assertSame(
9898
'private and method with ["foo",2]',
9999
Sudo::callMethod($obj, 'privateMethod', ['foo', 2]
100-
));
100+
));
101101
}
102102

103103
public function testParentStaticProps()
@@ -122,7 +122,7 @@ public function testParentStaticMethods()
122122
$this->assertSame(
123123
'private and static and method with ["foo",2]',
124124
Sudo::callStatic($obj, 'privateStaticMethod', ['foo', 2]
125-
));
125+
));
126126
}
127127

128128
public function testParentConsts()

test/TabCompletion/AutoCompleterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class AutoCompleterTest extends \Psy\Test\TestCase
2424
* @param string $line
2525
* @param array $mustContain
2626
* @param array $mustNotContain
27+
*
2728
* @dataProvider classesInput
2829
*/
2930
public function testClassesCompletion($line, $mustContain, $mustNotContain)

0 commit comments

Comments
 (0)