mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
[ticket/14434] Remove redundant conditional
PHPBB3-14434
This commit is contained in:
parent
ae7aa5dc57
commit
996441a1da
@ -226,7 +226,7 @@ class migrator
|
||||
*/
|
||||
protected function try_apply($name)
|
||||
{
|
||||
if (!class_exists($name) || !self::is_migration($name))
|
||||
if (!self::is_migration($name))
|
||||
{
|
||||
$this->output_handler->write(array('MIGRATION_NOT_VALID', $name), migrator_output_handler_interface::VERBOSITY_DEBUG);
|
||||
return false;
|
||||
@ -401,7 +401,7 @@ class migrator
|
||||
*/
|
||||
protected function try_revert($name)
|
||||
{
|
||||
if (!class_exists($name) || !self::is_migration($name))
|
||||
if (!self::is_migration($name))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -719,7 +719,7 @@ class migrator
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!class_exists($name) || !self::is_migration($name))
|
||||
if (!self::is_migration($name))
|
||||
{
|
||||
return $name;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user