diff options
author | Vishal Pandey <vishpandey2014@gmail.com> | 2017-03-14 02:16:18 +0530 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-08 21:48:59 +0200 |
commit | 530e5bca87758342bfe0f212191ace8a709bdb75 (patch) | |
tree | 93689613d6f00ae41735f1c1bc1f60def707400f /phpBB/phpbb | |
parent | 26acd8a5e43f6fc697728f04f4966b26bbd05230 (diff) | |
download | forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar.gz forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar.bz2 forums-530e5bca87758342bfe0f212191ace8a709bdb75.tar.xz forums-530e5bca87758342bfe0f212191ace8a709bdb75.zip |
[ticket/11515] Change If...else statement struct
Modifications in if-else structure.
PHPBB3-11515
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/config/config.php | 4 | ||||
-rw-r--r-- | phpBB/phpbb/lock/db.php | 4 | ||||
-rw-r--r-- | phpBB/phpbb/lock/flock.php | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/phpBB/phpbb/config/config.php b/phpBB/phpbb/config/config.php index 036ae32cef..239e4c2e55 100644 --- a/phpBB/phpbb/config/config.php +++ b/phpBB/phpbb/config/config.php @@ -163,7 +163,9 @@ class config implements \ArrayAccess, \IteratorAggregate, \Countable if(isset($this->config[$key]) && $this->config[$key] == $new_value) { return true; - } else { + } + else + { 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 7765619422..d9ad4d3b97 100644 --- a/phpBB/phpbb/lock/db.php +++ b/phpBB/phpbb/lock/db.php @@ -116,7 +116,9 @@ class db { return true; } - } else { + } + else + { return $this->locked; } diff --git a/phpBB/phpbb/lock/flock.php b/phpBB/phpbb/lock/flock.php index 89ff7cbe48..b496ed845e 100644 --- a/phpBB/phpbb/lock/flock.php +++ b/phpBB/phpbb/lock/flock.php @@ -104,7 +104,9 @@ class flock if (@flock($this->lock_fp, LOCK_EX)) { return (bool) $this->lock_fp; - } else { + } + else + { throw new \phpbb\exception\http_exception(500, 'Failure while aqcuiring locks.'); } } |