Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #190

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cmfcmf/OpenWeatherMap/AirPollution/NO2AirPollution.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

class NO2AirPollution extends BaseAirPollution
{

/**
* @var Unit
*/
Expand Down
1 change: 0 additions & 1 deletion Cmfcmf/OpenWeatherMap/AirPollution/O3AirPollution.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

class O3AirPollution extends BaseAirPollution
{

/**
* @var Unit
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

class PrecisionPressureValueAirPollution extends BaseAirPollution
{

/**
* @var object[]
*/
Expand Down
22 changes: 11 additions & 11 deletions tests/MyTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ public static function assertInternalType(string $expected, $actual, string $mes
{
if (version_compare(phpversion(), '7.2', '>=')) {
switch ($expected) {
case 'string':
static::assertIsString($actual);
break;
case 'object':
static::assertIsObject($actual);
break;
case 'float':
static::assertIsFloat($actual);
break;
default:
throw new Error();
case 'string':
static::assertIsString($actual);
break;
case 'object':
static::assertIsObject($actual);
break;
case 'float':
static::assertIsFloat($actual);
break;
default:
throw new Error();
}
} else {
\PHPUnit\Framework\TestCase::assertInternalType($expected, $actual, $message);
Expand Down
Loading