diff options
author | Vishal Pandey <vishpandey2014@gmail.com> | 2017-03-14 17:19:41 +0530 |
---|---|---|
committer | Vishal Pandey <vishpandey2014@gmail.com> | 2017-03-14 17:19:41 +0530 |
commit | b98acb9409bcc3501c8244e7208bb45d29b8382d (patch) | |
tree | cadb98dbed52c96aaa973a43cffc2d8d9fb499da | |
parent | [ticket/11515] Space between if and braces (diff) | |
download | phpbb-b98acb9409bcc3501c8244e7208bb45d29b8382d.tar.gz phpbb-b98acb9409bcc3501c8244e7208bb45d29b8382d.tar.bz2 phpbb-b98acb9409bcc3501c8244e7208bb45d29b8382d.zip |
[ticket/11515] Refactoring the patch.
Removing else conditions.
PHPBB3-11515
-rw-r--r-- | phpBB/phpbb/config/config.php | 5 | ||||
-rw-r--r-- | phpBB/phpbb/lock/db.php | 6 | ||||
-rw-r--r-- | phpBB/phpbb/lock/flock.php | 5 |
3 files changed, 3 insertions, 13 deletions
diff --git a/phpBB/phpbb/config/config.php b/phpBB/phpbb/config/config.php index 0a867342f5..f4b670e834 100644 --- a/phpBB/phpbb/config/config.php +++ b/phpBB/phpbb/config/config.php @@ -164,10 +164,7 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable { return true; } - else - { - throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.'); - } + throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.'); } /** diff --git a/phpBB/phpbb/lock/db.php b/phpBB/phpbb/lock/db.php index d9ad4d3b97..eea919f8f7 100644 --- a/phpBB/phpbb/lock/db.php +++ b/phpBB/phpbb/lock/db.php @@ -117,11 +117,7 @@ class db return true; } } - else - { - - return $this->locked; - } + return $this->locked; } /** diff --git a/phpBB/phpbb/lock/flock.php b/phpBB/phpbb/lock/flock.php index b496ed845e..fa4cbe3690 100644 --- a/phpBB/phpbb/lock/flock.php +++ b/phpBB/phpbb/lock/flock.php @@ -105,10 +105,7 @@ class flock { return (bool) $this->lock_fp; } - else - { - throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.'); - } + throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.'); } return (bool) $this->lock_fp; |