Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Apr 18, 2023
1 parent 738cf7c commit cc23fe2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/CacheTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function testCacheFactory(string $cacheDriver, array $cacheOptions, strin
$this->assertInstanceOf($expectedClass, $this->getCache($cacheDriver, $cacheOptions));
}

static public function cacheFactoryProvider(): Generator
public static function cacheFactoryProvider(): Generator
{
yield 'file' => [
'file', [], Cache\CacheFile::class,
Expand Down
2 changes: 1 addition & 1 deletion tests/HttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function testResponseWithCode(int $responseCode)
$this->assertEquals($responseCode, $resp->getResponseCode());
}

static public function responseWithCodeProvider(): Generator
public static function responseWithCodeProvider(): Generator
{
yield 'HTTP 202 Created' => [202];
yield 'HTTP 404 Not Found' => [404];
Expand Down
2 changes: 1 addition & 1 deletion tests/ImageTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function testRender(string $typeToRender, int $expectedType, string $expe
$this->assertEquals($expectMimeType, $img->getMimeType());
}

static public function renderDataProvider(): Generator
public static function renderDataProvider(): Generator
{
yield 'jpeg' => [ 'jpeg', IMAGETYPE_JPEG, 'image/jpeg'];
yield 'png' => [ 'png', IMAGETYPE_PNG, 'image/png'];
Expand Down
4 changes: 2 additions & 2 deletions tests/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function testIfModifiedSinceLastModified($lastModified, $headerValue, $ex
/**
* @return array
*/
static public function ifModifiedSinceLastModifiedDataProvider(): array
public static function ifModifiedSinceLastModifiedDataProvider(): array
{
return [
[null, null, false],
Expand Down Expand Up @@ -227,7 +227,7 @@ public function testIfModifiedSinceETag($eTag, $headerValue, $expected)
/**
* @return array
*/
static public function ifModifiedSinceETagDataProvider(): array
public static function ifModifiedSinceETagDataProvider(): array
{
return [
[null, null, false],
Expand Down
2 changes: 1 addition & 1 deletion tests/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testGetPathPrefix(string $homeUrl, string $expected)
$this->assertEquals($expected, $router->getPathPrefix());
}

static public function getPathPrefixDataProvider(): Generator
public static function getPathPrefixDataProvider(): Generator
{
// parse_url( PHP_URL_PATH ) gives null in this case
yield 'Home page at root' => [
Expand Down

0 comments on commit cc23fe2

Please sign in to comment.