From d59f797828e302b83385c81187f38588931b3967 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 19 May 2014 20:57:05 +0200 Subject: [PATCH] Some 'final' more, some 'final' less. ;-) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/stacker/class_BaseStacker.php | 4 ++-- .../main/stacker/file/class_BaseFileStack.php | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/inc/classes/main/stacker/class_BaseStacker.php b/inc/classes/main/stacker/class_BaseStacker.php index 0f4ba20f..f9dc7b6a 100644 --- a/inc/classes/main/stacker/class_BaseStacker.php +++ b/inc/classes/main/stacker/class_BaseStacker.php @@ -92,7 +92,7 @@ class BaseStacker extends BaseFrameworkSystem { * @return $isFull Whether the stack is full * @throws NoStackerException If given stack is missing */ - protected final function isStackFull ($stackerName) { + protected function isStackFull ($stackerName) { // Is the stack not yet initialized? if (!$this->isStackInitialized($stackerName)) { // Throw an exception @@ -113,7 +113,7 @@ class BaseStacker extends BaseFrameworkSystem { * @return $isEmpty Whether the stack is empty * @throws NoStackerException If given stack is missing */ - public final function isStackEmpty ($stackerName) { + public function isStackEmpty ($stackerName) { // Is the stack not yet initialized? if (!$this->isStackInitialized($stackerName)) { // Throw an exception diff --git a/inc/classes/main/stacker/file/class_BaseFileStack.php b/inc/classes/main/stacker/file/class_BaseFileStack.php index 879f19d0..8d5fe13b 100644 --- a/inc/classes/main/stacker/file/class_BaseFileStack.php +++ b/inc/classes/main/stacker/file/class_BaseFileStack.php @@ -103,7 +103,7 @@ class BaseFileStack extends BaseStacker { * * @return $totalEntries Total entries in this stack */ - private function getCounter () { + private final function getCounter () { // Get it return $this->totalEntries; } @@ -113,7 +113,7 @@ class BaseFileStack extends BaseStacker { * * @return void */ - private function incrementCounter () { + private final function incrementCounter () { // Get it $this->totalEntries++; } @@ -123,7 +123,7 @@ class BaseFileStack extends BaseStacker { * * @return $seekPosition Current seek position (stored here in object) */ - private function getSeekPosition () { + private final function getSeekPosition () { // Get it return $this->seekPosition; } @@ -134,7 +134,7 @@ class BaseFileStack extends BaseStacker { * @param $seekPosition Current seek position (stored here in object) * @return void */ - private function setSeekPosition ($seekPosition) { + private final function setSeekPosition ($seekPosition) { // And set it $this->seekPosition = $seekPosition; } @@ -524,7 +524,7 @@ class BaseFileStack extends BaseStacker { * @param $stackerName Name of the stack * @return $isFull Whether the stack is full */ - protected final function isStackFull ($stackerName) { + protected function isStackFull ($stackerName) { // File-based stacks will only run full if the disk space is low. // @TODO Please implement this, returning FALSE $isFull = FALSE; @@ -540,7 +540,7 @@ class BaseFileStack extends BaseStacker { * @return $isEmpty Whether the stack is empty * @throws NoStackerException If given stack is missing */ - public final function isStackEmpty ($stackerName) { + public function isStackEmpty ($stackerName) { // So, is the stack empty? $isEmpty = (($this->getStackCount($stackerName)) == 0); -- 2.39.5