1
0
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:
Matt Friedman 2016-01-27 12:24:18 -08:00
parent ae7aa5dc57
commit 996441a1da

View File

@ -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;
}