mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 04:23:38 +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)
|
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);
|
$this->output_handler->write(array('MIGRATION_NOT_VALID', $name), migrator_output_handler_interface::VERBOSITY_DEBUG);
|
||||||
return false;
|
return false;
|
||||||
@ -401,7 +401,7 @@ class migrator
|
|||||||
*/
|
*/
|
||||||
protected function try_revert($name)
|
protected function try_revert($name)
|
||||||
{
|
{
|
||||||
if (!class_exists($name) || !self::is_migration($name))
|
if (!self::is_migration($name))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -719,7 +719,7 @@ class migrator
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!class_exists($name) || !self::is_migration($name))
|
if (!self::is_migration($name))
|
||||||
{
|
{
|
||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user