Skip to content

Commit

Permalink
Enhancement: Enable no_unneeded_control_parentheses fixer (FakerPHP#217)
Browse files Browse the repository at this point in the history
* Enhancement: Enable no_unneeded_control_parentheses fixer

* Fix: Run 'make cs'
  • Loading branch information
localheinz committed Dec 21, 2020
1 parent 0a971b5 commit 61f3d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ return $config
'no_spaces_around_offset' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
'no_unneeded_final_method' => true,
'no_unreachable_default_argument_value' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/Faker/Provider/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,6 @@ public static function getDefaultTimezone()
*/
private static function resolveTimezone($timezone)
{
return ((null === $timezone) ? ((null === static::$defaultTimezone) ? date_default_timezone_get() : static::$defaultTimezone) : $timezone);
return (null === $timezone) ? ((null === static::$defaultTimezone) ? date_default_timezone_get() : static::$defaultTimezone) : $timezone;
}
}

0 comments on commit 61f3d30

Please sign in to comment.