Skip to content

Commit 452a93b

Browse files
authored
Merge pull request #202 from PHPCSStandards/feature/various-minor-cs-fixes-stable
CS: few small tweaks
2 parents 3d52cd2 + 14c1e5d commit 452a93b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/build/Website.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ private function mdBadgeToHtml(string $mdBadge): string
248248
private function getContents(string $source): string
249249
{
250250
$contents = \file_get_contents($source);
251-
if (!$contents) {
251+
if (\is_string($contents) === false) {
252252
throw new RuntimeException(\sprintf('Failed to read doc file: %s', $source));
253253
}
254254

PHPCSDebug/Tests/Debug/TokenListUnitTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ final class TokenListUnitTest extends UtilityMethodTestCase
3838
*/
3939
public function testOutput()
4040
{
41-
if (version_compare(Config::VERSION, '3.99.99', '>') === true) {
41+
if (\version_compare(Config::VERSION, '3.99.99', '>') === true) {
4242
// As of PHPCS 4.0, whitespace after the long PHP open tag is tokenized separately,
4343
// hence the difference in test expectations.
44-
$expected = file_get_contents(__DIR__ . '/TokenListExpectationPhpcs4.txt');
44+
$expected = \file_get_contents(__DIR__ . '/TokenListExpectationPhpcs4.txt');
4545
} else {
46-
$expected = file_get_contents(__DIR__ . '/TokenListExpectationPhpcs3.txt');
46+
$expected = \file_get_contents(__DIR__ . '/TokenListExpectationPhpcs3.txt');
4747
}
4848

4949
if (empty(self::$phpcsFile->ruleset->tokenListeners)) {

0 commit comments

Comments
 (0)