]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/filter/shutdown/class_HubShutdownFlushNodeListFilter.php
'public static final' is the right thing, some variables renamed to make clear what...
[hub.git] / application / hub / main / filter / shutdown / class_HubShutdownFlushNodeListFilter.php
index f55f3f0349528b9ddd80aba9ac2f459df079b1a7..100e088c73578ed64e4b888593b6ffc311934e7c 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -37,7 +37,7 @@ class HubShutdownFlushNodeListFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createHubShutdownFlushNodeListFilter () {
+       public static final function createHubShutdownFlushNodeListFilter () {
                // Get a new instance
                $filterInstance = new HubShutdownFlushNodeListFilter();
 
@@ -58,12 +58,6 @@ class HubShutdownFlushNodeListFilter extends BaseFilter implements Filterable {
                // Get node instance
                $nodeInstance = Registry::getRegistry()->getInstance('node');
 
-               // Sanity-check on it
-               if (is_null($nodeInstance)) {
-                       // Throws a FilterChainException to stop further processing
-                       throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
-               } // END - if
-
                // Now do something
                $this->partialStub('Please implement this step.');
        }