Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Dec 3, 2023
1 parent b6cb16f commit 42f9cd1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions tests/Runtime/RouterRuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ public function testRouteExists(): void
}

/**
* @dataProvider getSplitList
* @dataProvider provideSplitTagCases
*/
public function testSplitTag(string $input, string $tag, array $output): void
{
self::assertSame($output, $this->extension->splitTag($input, $tag));
}

public static function getSplitList(): iterable
public static function provideSplitTagCases(): iterable

Check failure on line 55 in tests/Runtime/RouterRuntimeTest.php

View workflow job for this annotation

GitHub Actions / run / Static Code Analysis (8.3)

Method Nucleos\Twig\Tests\Runtime\RouterRuntimeTest::provideSplitTagCases() return type has no value type specified in iterable type iterable.
{
return [
['<h1>Foo</h1><p>Bar</p><h1>Baz</h1>Bar', 'h1', ['<h1>Foo</h1><p>Bar</p>', '<h1>Baz</h1>Bar']],
Expand Down
8 changes: 4 additions & 4 deletions tests/Runtime/StringRuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected function setUp(): void
}

/**
* @dataProvider getBase10
* @dataProvider provideFormatBytesBase10Cases
*
* @param float|int $bits
*/
Expand All @@ -38,7 +38,7 @@ public function testFormatBytesBase10(string $expected, $bits): void
}

/**
* @dataProvider getBase2
* @dataProvider provideFormatBytesBase2Cases
*
* @param float|int $bits
*/
Expand All @@ -55,7 +55,7 @@ public function testFormatBytesBase2(string $expected, $bits): void
/**
* @return int[][]|string[][]
*/
public static function getBase10(): iterable
public static function provideFormatBytesBase10Cases(): iterable
{
return [
['500,0 B', 500],
Expand All @@ -73,7 +73,7 @@ public static function getBase10(): iterable
/**
* @return int[][]|string[][]
*/
public static function getBase2(): iterable
public static function provideFormatBytesBase2Cases(): iterable
{
return [
['512,0 B', 512],
Expand Down
12 changes: 6 additions & 6 deletions tests/Runtime/UrlAutoConverterRuntimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testConvertLinksWithPlanText(): void
}

/**
* @dataProvider getLinkText
* @dataProvider provideConvertLinksWithLinksCases
*/
public function testConvertLinksWithLinks(string $input, string $output): void
{
Expand All @@ -34,7 +34,7 @@ public function testConvertLinksWithLinks(string $input, string $output): void
}

/**
* @dataProvider getMailText
* @dataProvider provideConvertLinksWithMailsCases
*/
public function testConvertLinksWithMails(string $input, string $output): void
{
Expand All @@ -44,7 +44,7 @@ public function testConvertLinksWithMails(string $input, string $output): void
}

/**
* @dataProvider getLinkTargetText
* @dataProvider provideConvertLinksWithOptionsCases
*/
public function testConvertLinksWithOptions(string $input, string $output): void
{
Expand All @@ -53,7 +53,7 @@ public function testConvertLinksWithOptions(string $input, string $output): void
self::assertSame($output, $extension->convertLinks($input, ['target' => '_blank']));
}

public static function getLinkText(): iterable
public static function provideConvertLinksWithLinksCases(): iterable

Check failure on line 56 in tests/Runtime/UrlAutoConverterRuntimeTest.php

View workflow job for this annotation

GitHub Actions / run / Static Code Analysis (8.3)

Method Nucleos\Twig\Tests\Runtime\UrlAutoConverterRuntimeTest::provideConvertLinksWithLinksCases() return type has no value type specified in iterable type iterable.
{
// @noinspection JSUnusedLocalSymbols
return [
Expand Down Expand Up @@ -87,7 +87,7 @@ public static function getLinkText(): iterable
/**
* @return string[][]
*/
public static function getLinkTargetText(): iterable
public static function provideConvertLinksWithOptionsCases(): iterable
{
// @noinspection JSUnusedLocalSymbols
return [
Expand All @@ -109,7 +109,7 @@ public static function getLinkTargetText(): iterable
/**
* @return string[][]
*/
public static function getMailText(): iterable
public static function provideConvertLinksWithMailsCases(): iterable
{
// @noinspection JSUnusedLocalSymbols
return [
Expand Down
4 changes: 2 additions & 2 deletions tests/Util/StringUtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
final class StringUtilsTest extends TestCase
{
/**
* @dataProvider getObfuscatedStrings
* @dataProvider provideObfuscateCases
*/
public function testObfuscate(string $input, int $start, int $end, string $replacement, string $output): void
{
self::assertSame($output, StringUtils::obfuscate($input, $start, $end, $replacement));
}

public static function getObfuscatedStrings(): iterable
public static function provideObfuscateCases(): iterable

Check failure on line 27 in tests/Util/StringUtilsTest.php

View workflow job for this annotation

GitHub Actions / run / Static Code Analysis (8.3)

Method Nucleos\Twig\Tests\Util\StringUtilsTest::provideObfuscateCases() return type has no value type specified in iterable type iterable.
{
return [
['Foo Bar Baz', 'start' => -3, 'end' => 1, 'replacement' => ' ', 'Foo Bar z'],
Expand Down

0 comments on commit 42f9cd1

Please sign in to comment.