]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 24 Nov 2020 04:53:21 +0000 (05:53 +0100)
committerRoland Häder <roland@mxchange.org>
Tue, 24 Nov 2020 04:53:21 +0000 (05:53 +0100)
- old array style mostly converted to new
- added more primitive type-hints

Signed-off-by: Roland Häder <roland@mxchange.org>
127 files changed:
application/tests/data.php
application/tests/exceptions.php
application/tests/starter.php
framework/bootstrap/class_FrameworkBootstrap.php
framework/config/class_FrameworkConfiguration.php
framework/loader/class_ClassLoader.php
framework/main/classes/class_BaseFrameworkSystem.php
framework/main/classes/client/http/class_HttpClient.php
framework/main/classes/controller/class_BaseController.php
framework/main/classes/criteria/class_BaseCriteria.php
framework/main/classes/criteria/search/class_SearchCriteria.php
framework/main/classes/database/backend/lfdb_legacy/class_CachedLocalFileDatabase.php
framework/main/classes/database/class_BaseDatabaseWrapper.php
framework/main/classes/factories/class_BaseFactory.php
framework/main/classes/factories/objects/class_ObjectFactory.php
framework/main/classes/feature/class_FrameworkFeature.php
framework/main/classes/file_directories/binary/class_BaseBinaryFile.php
framework/main/classes/file_directories/directory/class_FrameworkDirectoryPointer.php
framework/main/classes/file_directories/io_stream/class_FileIoStream.php
framework/main/classes/file_directories/text/input/csv/class_CsvInputFile.php
framework/main/classes/filter/class_FilterChain.php
framework/main/classes/handler/tasks/class_TaskHandler.php
framework/main/classes/helper/captcha/images/class_ImageHelper.php
framework/main/classes/helper/class_BaseHelper.php
framework/main/classes/lists/class_BaseList.php
framework/main/classes/registry/class_BaseRegistry.php
framework/main/classes/request/class_BaseRequest.php
framework/main/classes/response/class_BaseResponse.php
framework/main/classes/template/class_BaseTemplateEngine.php
framework/main/classes/template/image/class_ImageTemplateEngine.php
framework/main/classes/template/mail/class_MailTemplateEngine.php
framework/main/classes/template/menu/class_MenuTemplateEngine.php
framework/main/exceptions/actions/class_InvalidActionException.php
framework/main/exceptions/auth/class_UserAuthorizationException.php
framework/main/exceptions/base64/class_Base64EncodingBadException.php
framework/main/exceptions/base64/class_Base64EncodingModuloException.php
framework/main/exceptions/class_FrameworkException.php
framework/main/exceptions/compressor/class_MismatchingCompressorsException.php
framework/main/exceptions/config/class_ConfigValueTypeUnsupportedException.php
framework/main/exceptions/config/class_NoConfigEntryException.php
framework/main/exceptions/connection/class_ConnectionAlreadyRegisteredException.php
framework/main/exceptions/controller/class_DefaultControllerException.php
framework/main/exceptions/controller/class_InvalidControllerException.php
framework/main/exceptions/crypto/class_EncryptInvalidLengthException.php
framework/main/exceptions/crypto/class_EncryptMissingException.php
framework/main/exceptions/database/class_DatabaseException.php
framework/main/exceptions/database/general/class_SqlException.php
framework/main/exceptions/database/local_file/class_SavePathIsNoDirectoryException.php
framework/main/exceptions/database/local_file/class_SavePathReadProtectedException.php
framework/main/exceptions/database/local_file/class_SavePathWriteProtectedException.php
framework/main/exceptions/dns/class_UnknownHostnameException.php
framework/main/exceptions/feature/class_FeatureMethodNotCallableException.php
framework/main/exceptions/file_directory/class_DirPointerNotOpenedException.php
framework/main/exceptions/file_directory/class_FileIoException.php
framework/main/exceptions/file_directory/class_FileNotFoundException.php
framework/main/exceptions/file_directory/class_FileReadProtectedException.php
framework/main/exceptions/file_directory/class_FileWriteProtectedException.php
framework/main/exceptions/file_directory/class_InvalidDataLengthException.php
framework/main/exceptions/file_directory/class_InvalidMD5ChecksumException.php
framework/main/exceptions/file_directory/class_InvalidResourceException.php
framework/main/exceptions/file_directory/class_PathIsNoDirectoryException.php
framework/main/exceptions/file_directory/class_PathReadProtectedException.php
framework/main/exceptions/file_directory/class_PathWriteProtectedException.php
framework/main/exceptions/filter/class_FilterChainException.php
framework/main/exceptions/filter/class_InvalidFilterChainException.php
framework/main/exceptions/helper/class_FormClosedException.php
framework/main/exceptions/helper/class_FormGroupClosedException.php
framework/main/exceptions/helper/class_FormOpenedException.php
framework/main/exceptions/helper/class_HelperGroupAlreadyCreatedException.php
framework/main/exceptions/helper/class_HelperNoPreviousOpenedSubGroupException.php
framework/main/exceptions/helper/class_HelperSubGroupAlreadyCreatedException.php
framework/main/exceptions/helper/class_InvalidFormNameException.php
framework/main/exceptions/helper/class_NoGroupOpenedException.php
framework/main/exceptions/helper/class_UserInstanceMissingException.php
framework/main/exceptions/language/class_InvalidLanguagePathStringException.php
framework/main/exceptions/language/class_LanguagePathIsNoDirectoryException.php
framework/main/exceptions/language/class_LanguagePathReadProtectedException.php
framework/main/exceptions/main/class_AssertionException.php
framework/main/exceptions/main/class_ClassMismatchException.php
framework/main/exceptions/main/class_DimNotFoundInArrayException.php
framework/main/exceptions/main/class_FatalErrorException.php
framework/main/exceptions/main/class_IndexOutOfBoundsException.php
framework/main/exceptions/main/class_InvalidArrayCountException.php
framework/main/exceptions/main/class_InvalidCommandException.php
framework/main/exceptions/main/class_InvalidInterfaceException.php
framework/main/exceptions/main/class_InvalidObjectException.php
framework/main/exceptions/main/class_MissingArrayElementsException.php
framework/main/exceptions/main/class_NoClassException.php
framework/main/exceptions/main/class_ResponseHeadersAlreadySentException.php
framework/main/exceptions/main/class_UnsupportedOperationException.php
framework/main/exceptions/main/class_VariableIsNotSetException.php
framework/main/exceptions/result/class_InvalidDatabaseResultException.php
framework/main/exceptions/result/class_ResultUpdateException.php
framework/main/exceptions/socket/class_InvalidServerSocketException.php
framework/main/exceptions/socket/class_InvalidSocketException.php
framework/main/exceptions/socket/class_NoSocketErrorDetectedException.php
framework/main/exceptions/socket/class_SocketAlreadyRegisteredException.php
framework/main/exceptions/socket/class_SocketBindingException.php
framework/main/exceptions/socket/class_SocketConnectionException.php
framework/main/exceptions/socket/class_SocketCreationException.php
framework/main/exceptions/socket/class_SocketOperationException.php
framework/main/exceptions/socket/class_SocketOptionException.php
framework/main/exceptions/socket/class_UnsupportedSocketErrorHandlerException.php
framework/main/exceptions/stacker/class_AlreadyInitializedStackerException.php
framework/main/exceptions/stacker/class_EmptyStackerException.php
framework/main/exceptions/stacker/class_FullStackerException.php
framework/main/exceptions/stacker/class_NoStackerException.php
framework/main/exceptions/state/class_InvalidStateInstanceException.php
framework/main/exceptions/state/class_UnexpectedStateException.php
framework/main/exceptions/state/class_UnresolveableStateException.php
framework/main/exceptions/template/class_BasePathReadProtectedException.php
framework/main/exceptions/template/class_InvalidDirectoryException.php
framework/main/exceptions/template/class_NoVariableException.php
framework/main/exceptions/template/class_UnexpectedTemplateTypeException.php
framework/main/exceptions/template/class_UnsupportedTemplateEngineException.php
framework/main/exceptions/user/class_AccountPasswordMismatchException.php
framework/main/exceptions/user/class_UnexpectedGuestAccountException.php
framework/main/exceptions/user/class_UserEmailMissingException.php
framework/main/exceptions/user/class_UserNoGuestException.php
framework/main/exceptions/user/class_UserPasswordMismatchException.php
framework/main/exceptions/user/class_UsernameMissingException.php
framework/main/exceptions/xml/class_InvalidXmlNodeException.php
framework/main/exceptions/xml/class_XmlNodeMismatchException.php
framework/main/exceptions/xml/class_XmlParserException.php
framework/main/interfaces/criteria/class_Criteria.php
framework/main/interfaces/database/class_DatabaseWrapper.php
framework/main/interfaces/io/directory/class_FrameworkDirectory.php

index 97b049d61fcb6803bc50a626ba6f912fb2bb6ea8..c8eb63d16a3b4c9cf6658761de6332e41814c725 100644 (file)
@@ -31,7 +31,7 @@ $cfg = FrameworkConfiguration::getSelfInstance();
 // Get an instance of the helper
 $app = call_user_func_array(
        array($cfg->getConfigEntry('app_helper_class'), 'getSelfInstance'),
-       array()
+       []
 );
 
 // Set application name and version
index a140c83b18704cbf2da86633fbb3c1c06c797cf2..66121d2bd0c0004273103f8d8dcdc3a3d9674987 100644 (file)
@@ -117,7 +117,7 @@ function tests_error_handler ($errno, $errstr, $errfile, $errline, array $errcon
 } // END - function
 
 // Assertion handler
-function tests_assert_handler ($file, $line, $code) {
+function tests_assert_handler (string $file, int $line, $code) {
        // Empty code?
        if ($code === '') {
                $code = '<em>Unknown</em>';
index a588ec9cab32ea39981ca98a7ebd7b7db03cbe06..ed047ad0e62c2f20bf019174ff7819ad607c20f8 100644 (file)
@@ -27,7 +27,7 @@
 $app = call_user_func_array(
        array(
                FrameworkConfiguration::getSelfInstance()->getConfigEntry('app_helper_class'), 'getSelfInstance'
-       ), array()
+       ), []
 );
 
 // Some sanity checks
@@ -51,4 +51,4 @@ if ((empty($app)) || (is_null($app))) {
 }
 
 // Call user function
-call_user_func_array(array($app, FrameworkConfiguration::getSelfInstance()->getConfigEntry('entry_method')), array());
+call_user_func_array(array($app, FrameworkConfiguration::getSelfInstance()->getConfigEntry('entry_method')), []);
index ad1bf8a2a3168c816564bf81187affa9286a5a6f..0e0cdb6a917259b31b7040b6a64999d67c464092 100644 (file)
@@ -347,7 +347,7 @@ final class FrameworkBootstrap {
                $applicationInstance = call_user_func_array(
                        array(
                                'Org\Mxchange\CoreFramework\Helper\Application\ApplicationHelper', 'getSelfInstance'
-                       ), array()
+                       ), []
                );
 
                // Some sanity checks
index 29fdabea2bc4bfdb063cf8525cc357ccdbc10237..6e969ccbdc9c76ede5d8353855425c3412edb8b6 100644 (file)
@@ -47,7 +47,7 @@ class FrameworkConfiguration implements Registerable {
         * hard-coded configuration data and might be overwritten/extended by
         * config data from the database.
         */
-       private static $config = array();
+       private static $config = [];
 
        /**
         * Call-back instance (unused)
index e03429635566fa8a477cb28ba52431bb8ee115d9..9e0e4bacf06e35c18356a0df568735a3ed29861a 100644 (file)
@@ -62,12 +62,12 @@ class ClassLoader {
        /**
         * Array with all found classes
         */
-       private $foundClasses = array();
+       private $foundClasses = [];
 
        /**
         * List of loaded classes
         */
-       private $loadedClasses = array();
+       private $loadedClasses = [];
 
        /**
         * Suffix with extension for all class files
@@ -83,7 +83,7 @@ class ClassLoader {
         * A list for directory names (no leading/trailing slashes!) which not be scanned by the path scanner
         * @see scanLocalPath
         */
-       private $ignoreList = array();
+       private $ignoreList = [];
 
        /**
         * Debug this class loader? (true = yes, false = no)
@@ -134,7 +134,7 @@ class ClassLoader {
         * Registered paths where test classes can be found. These are all relative
         * to base_path .
         */
-       private static $testPaths = array();
+       private static $testPaths = [];
 
        /**
         * The protected constructor. Please use the factory method below, or use
@@ -351,7 +351,7 @@ class ClassLoader {
         * @param       $strictNamingConvention Whether to strictly check naming-convention
         * @return      void
         */
-       public static function enableStrictNamingConventionCheck ($strictNamingConvention = true) {
+       public static function enableStrictNamingConventionCheck (bool $strictNamingConvention = true) {
                self::$strictNamingConvention = $strictNamingConvention;
        }
 
@@ -362,7 +362,7 @@ class ClassLoader {
         * @param       $relativePath   Relative path to test classes
         * @return      void
         */
-       public static function registerTestsPath ($relativePath) {
+       public static function registerTestsPath (string $relativePath) {
                // Trace message
                //* NOISY-DEBUG: */ printf('[%s:%d]: relativePath=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $relativePath);
 
@@ -379,7 +379,7 @@ class ClassLoader {
         * @param       $className      Name of the class to load
         * @return      void
         */
-       public static function autoLoad ($className) {
+       public static function autoLoad (string $className) {
                // Trace message
                //* NOISY-DEBUG: */ printf('[%s:%d]: className=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $className);
 
@@ -413,7 +413,7 @@ class ClassLoader {
         * @param       $ignoreList             An optional list (array forced) of directory and file names which shall be ignored
         * @return      void
         */
-       public function scanClassPath ($basePath, array $ignoreList = array() ) {
+       public function scanClassPath (string $basePath, array $ignoreList = [] ) {
                // Is a list has been restored from cache, don't read it again
                if ($this->listCached === true) {
                        // Abort here
@@ -565,11 +565,9 @@ class ClassLoader {
         * @return      void
         * @throws      InvalidArgumentException        If strict-checking is enabled and class name is not following naming-convention
         */
-       private function loadClassFile ($className) {
-               // Trace message
-               //* NOISY-DEBUG: */ printf('[%s:%d] className=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $className);
-
+       private function loadClassFile (string $className) {
                // The class name should contain at least 2 back-slashes, so split at them
+               //* NOISY-DEBUG: */ printf('[%s:%d] className=%s - CALLED!' . PHP_EOL, __METHOD__, __LINE__, $className);
                $classNameParts = explode("\\", $className);
 
                // At least 3 parts should be there
index 00dd1f3bb27fd7c96d5e85f117565d31c7e963ed..d1f8888346560e129d3e433feb01f43dd6c292f7 100644 (file)
@@ -133,7 +133,7 @@ abstract class BaseFrameworkSystem extends stdClass implements FrameworkInterfac
        /**
         * Generic array
         */
-       private $genericArray = array();
+       private $genericArray = [];
 
        /***********************
         * Exception codes.... *
@@ -1249,7 +1249,7 @@ Loaded includes:
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      $cacheKey                       A cache key suitable for lookup/storage purposes
         */
-       protected function getCacheKeyByCriteria (Criteria $criteriaInstance, array $onlyKeys = array()) {
+       protected function getCacheKeyByCriteria (Criteria $criteriaInstance, array $onlyKeys = []) {
                // Generate it
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-FRAMEWORK-SYSTEM: criteriaInstance=' . $criteriaInstance->__toString() . ',onlyKeys()=' . count($onlyKeys) . ' - CALLED!');
                $cacheKey = sprintf('%s@%s',
@@ -1566,7 +1566,7 @@ Loaded includes:
                }
 
                // Initialize it
-               $this->genericArray[$keyGroup][$subGroup] = array();
+               $this->genericArray[$keyGroup][$subGroup] = [];
        }
 
        /**
@@ -1590,7 +1590,7 @@ Loaded includes:
                }
 
                // Initialize it
-               $this->genericArray[$keyGroup][$subGroup][$key] = array();
+               $this->genericArray[$keyGroup][$subGroup][$key] = [];
        }
 
        /**
@@ -1615,7 +1615,7 @@ Loaded includes:
                }
 
                // Initialize it
-               $this->genericArray[$keyGroup][$subGroup][$key][$element] = array();
+               $this->genericArray[$keyGroup][$subGroup][$key][$element] = [];
        }
 
        /**
index a1b26093d661a0607669ac0788f3eee7e0425302..eecb89555e0c5962e3838855c1cfeb25078734a0 100644 (file)
@@ -112,7 +112,7 @@ class HttpClient extends BaseClient implements Client {
         * @param       $port                   Port number to connect to
         * @return      $responseArray  Array with raw response
         */
-       private function sendRawHttpRequest ($method, $host, $port, array $header = array()) {
+       private function sendRawHttpRequest ($method, $host, $port, array $header = []) {
                // Minimum raw HTTP/1.1 request
                $rawRequest  = $method . ' ' . $host . ':' . $port . ' HTTP/1.1' . self::HTTP_EOL;
                $rawRequest .= 'Host: ' . $host . ':' . $port . self::HTTP_EOL;
index ad8ab51267c8030ae1370a6d4be1be18b649c487..dc5fe7045a13e3cae5ef180923a85449e54cc8ec 100644 (file)
@@ -53,7 +53,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
        /**
         * Generic filter chains
         */
-       private $filterChains = array();
+       private $filterChains = [];
 
        /**
         * Protected constructor
index 1073cbc4347d1550a4c3d25bfac17e8452389ec9..c7aff1ed2ee04488262bae124816c5023ef9a00e 100644 (file)
@@ -53,6 +53,18 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
                } // END - foreach
        }
 
+       /**
+        * Count the criteria, e.g. useful to find out if a database query has no
+        * limitation (search criteria).
+        *
+        * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
+        * @return      $count  Count of all criteria entries
+        */
+       protected final function count (string $criteriaType = 'default') {
+               // Return it
+               return $this->countGenericArrayGroup('criteria', $criteriaType);
+       }
+
        /**
         * Checks whether given key is set
         *
@@ -60,7 +72,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaKey    Criteria key
         * @return      $isSet                  Whether key is set
         */
-       public function isKeySet ($criteriaType, $criteriaKey) {
+       public function isKeySet (string $criteriaType, string $criteriaKey) {
                // Make sure no 'my-' or 'my_' passes this point
                assert((strpos($criteriaKey, 'my-') === false) && (strpos($criteriaKey, 'my_') === false));
 
@@ -77,7 +89,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaKey    Criteria key
         * @return      $isSet                  Whether key is set
         */
-       public function isChoiceKeySet ($criteriaKey) {
+       public function isChoiceKeySet (string $criteriaKey) {
                // Call inner method
                return $this->isKeySet('choice', $criteriaKey);
        }
@@ -88,7 +100,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaKey    Criteria key
         * @return      $isSet                  Whether key is set
         */
-       public function isExcludeKeySet ($criteriaKey) {
+       public function isExcludeKeySet (string $criteriaKey) {
                // Call inner method
                return $this->isKeySet('exclude', $criteriaKey);
        }
@@ -99,8 +111,8 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $wrapperConfigEntry             Configuration entry which hold the wrapper class' name
         * @return      void
         */
-       public final function setWrapperConfigEntry ($wrapperConfigEntry) {
-               $this->wrapperConfigEntry = (string) $wrapperConfigEntry;
+       public final function setWrapperConfigEntry (string $wrapperConfigEntry) {
+               $this->wrapperConfigEntry = $wrapperConfigEntry;
        }
 
        /**
@@ -118,7 +130,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $criteria
         */
-       public final function getCriteriaArray ($criteriaType = 'default') {
+       public final function getCriteriaArray (string $criteriaType = 'default') {
                return $this->getGenericArrayKey('criteria', $criteriaType, 'entries');
        }
 
@@ -146,7 +158,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaKey    Criteria key to unset
         * @return      void
         */
-       public final function unsetCriteria ($criteriaKey) {
+       public final function unsetCriteria (string $criteriaKey) {
                // Make sure no 'my-' or 'my_' passes this point
                assert((strpos($criteriaKey, 'my-') === false) && (strpos($criteriaKey, 'my_') === false));
 
@@ -169,7 +181,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      void
         */
-       public final function addCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default') {
+       public final function addCriteria (string $criteriaKey, $criteriaValue, string $criteriaType = 'default') {
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($criteriaType) . '-CRITERIA: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue . ',criteriaType=' . $criteriaType . ' - CALLED!');
 
@@ -195,7 +207,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      void
         */
-       public final function setCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default') {
+       public final function setCriteria (string $criteriaKey, $criteriaValue, string $criteriaType = 'default') {
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($criteriaType) . '-CRITERIA: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue . ',criteriaType=' . $criteriaType . ' - CALLED!');
 
@@ -220,7 +232,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaValue  Criteria value
         * @return      void
         */
-       public final function addChoiceCriteria ($criteriaKey, $criteriaValue) {
+       public final function addChoiceCriteria (string $criteriaKey, $criteriaValue) {
                // Make sure no 'my-' or 'my_' passes this point
                assert((strpos($criteriaKey, 'my-') === false) && (strpos($criteriaKey, 'my_') === false) && (!is_bool($criteriaValue)));
 
@@ -239,7 +251,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaValue  Criteria value
         * @return      void
         */
-       public final function addExcludeCriteria ($criteriaKey, $criteriaValue) {
+       public final function addExcludeCriteria (string $criteriaKey, $criteriaValue) {
                // Add it with generic method
                $this->addCriteria($criteriaKey, $criteriaValue, 'exclude');
        }
@@ -252,7 +264,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      void
         */
-       public final function addConfiguredCriteria ($criteriaKey, $configEntry, $criteriaType = 'default') {
+       public final function addConfiguredCriteria ($criteriaKey, $configEntry, string $criteriaType = 'default') {
                // Add the configuration entry as a criteria
                $value = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry($configEntry);
                $this->addCriteria($criteriaKey, $value, $criteriaType);
@@ -265,7 +277,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $value                  Whether the value of the critera or false
         */
-       public function getCriteriaElemnent ($criteriaKey, $criteriaType = 'default') {
+       public function getCriteriaElemnent ($criteriaKey, string $criteriaType = 'default') {
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($criteriaType) . '-CRITERIA: criteriaKey=' . $criteriaKey . ',criteriaType=' . $criteriaType . ' - CALLED!');
 
@@ -300,7 +312,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaKey    The requested criteria key
         * @return      $value                  Whether the value of the critera or false
         */
-       public function getCriteriaChoiceElemnent ($criteriaKey) {
+       public function getCriteriaChoiceElemnent (string $criteriaKey) {
                // Call inner method
                return $this->getCriteriaElemnent($criteriaKey, 'choice');
        }
@@ -311,7 +323,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaKey    The requested criteria key
         * @return      $value                  Whether the value of the critera or false
         */
-       public function getCriteriaExcludeElemnent ($criteriaKey) {
+       public function getCriteriaExcludeElemnent (string $criteriaKey) {
                // Call inner method
                return $this->getCriteriaElemnent($criteriaKey, 'exclude');
        }
@@ -323,7 +335,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $matches                Whether the entry matches or not
         */
-       public function ifEntryMatches (array $entryArray, $criteriaType = 'default') {
+       public function ifEntryMatches (array $entryArray, string $criteriaType = 'default') {
                // First nothing matches and nothing is counted
                $matches = false;
                $counted = 0;
@@ -388,7 +400,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $cacheKey       The key suitable for the cache system
         */
-       public function getCacheKey ($onlyKeys = array(), $criteriaType = 'default') {
+       public function getCacheKey (array $onlyKeys = [], string $criteriaType = 'default') {
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput($this->__toString() . ': criteriaType=' . $criteriaType . ',count()=' . $this->countGenericArray('criteria')));
 
@@ -444,7 +456,7 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $onlyKeys       Only use these keys for a cache key
         * @return      $cacheKey       The key suitable for the cache system
         */
-       public function getCacheKeyChoice ($onlyKeys = array()) {
+       public function getCacheKeyChoice (array $onlyKeys = []) {
                // Call inner method
                return $this->getCacheKey($onlyKeys, 'choice');
        }
@@ -455,23 +467,11 @@ abstract class BaseCriteria extends BaseFrameworkSystem implements Criteria {
         * @param       $onlyKeys       Only use these keys for a cache key
         * @return      $cacheKey       The key suitable for the cache system
         */
-       public function getCacheKeyExclude ($onlyKeys = array()) {
+       public function getCacheKeyExclude (array $onlyKeys = []) {
                // Call inner method
                return $this->getCacheKey($onlyKeys, 'exclude');
        }
 
-       /**
-        * Count the criteria, e.g. useful to find out if a database query has no
-        * limitation (search criteria).
-        *
-        * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
-        * @return      $count  Count of all criteria entries
-        */
-       public final function count ($criteriaType = 'default') {
-               // Return it
-               return $this->countGenericArrayGroup('criteria', $criteriaType);
-       }
-
        /**
         * Count 'choice' criteria, e.g. useful to find out if a database query
         * has no limitation (search criteria).
index 6f9f2aa58a6007ae9bd5e38a71d27b33c06eeb06..d689be2e59c78a5ea6adf0cfe8e73d0baa0fe81c 100644 (file)
@@ -35,7 +35,7 @@ class SearchCriteria extends BaseCriteria implements LocalSearchCriteria {
        /**
         * Criteria to handle
         */
-       private $criteria = array();
+       private $criteria = [];
 
        /**
         * Limitation for the search
@@ -164,14 +164,14 @@ class SearchCriteria extends BaseCriteria implements LocalSearchCriteria {
 
                // 'choice' check
                if ((is_array($searchChoice)) && (count($valueArray) == 1)) {
-                       // $value is a single-search value, so use in_array()
+                       // $value is a single-search value, so use in_[]
                        $isMatching = ((($isMatching === true) || (($searchDefault === false) && (!is_null($value)))) && (in_array($value, $searchChoice)));
 
                        // Debug message
                        //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SEARCH-CRITERIA: getCriteriaChoiceElement(' . $key . ')[]=' . gettype($searchChoice) . ',value[' . gettype($value) . ']=' . $value . ',isMatching=' . intval($isMatching) . ' - SINGLE-MATCH');
                } elseif ((is_array($searchChoice)) && (count($valueArray) > 1)) {
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SEARCH-CRITERIA: getCriteriaChoiceElement(' . $key . ')[]=' . gettype($searchChoice) . ',valueArray()=' . count($valueArray) . ',isMatching=' . intval($isMatching));
+                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SEARCH-CRITERIA: getCriteriaChoiceElement(' . $key . ')[]=' . gettype($searchChoice) . ',value[]=' . count($valueArray) . ',isMatching=' . intval($isMatching));
 
                        // $value is choice-search value, so check all entries
                        $isMatching = (($isMatching === true) || (($searchDefault === false) && (!is_null($value))));
@@ -188,7 +188,7 @@ class SearchCriteria extends BaseCriteria implements LocalSearchCriteria {
                        } // END - foreach
 
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SEARCH-CRITERIA: getCriteriaChoiceElement(' . $key . ')[]=' . gettype($searchChoice) . ',valueArray()=' . count($valueArray) . ',idx=' . $idx . ',isMatching=' . intval($isMatching) . ' - CHOICE-MATCH');
+                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('SEARCH-CRITERIA: getCriteriaChoiceElement(' . $key . ')[]=' . gettype($searchChoice) . ',value[]=' . count($valueArray) . ',idx=' . $idx . ',isMatching=' . intval($isMatching) . ' - CHOICE-MATCH');
                } else {
                        // Choice-match is false
                        // Debug message
index 1171aab931d593e1e3f666dd2721999c12611156..d79963d70c41329ebafd6f784d64f462f695fa07 100644 (file)
@@ -60,7 +60,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
        /**
         * The last read file's content including header information
         */
-       private $lastContents = array();
+       private $lastContents = [];
 
        /**
         * Whether the "connection is already up
@@ -70,7 +70,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
        /**
         * Table information array
         */
-       private $tableInfo = array();
+       private $tableInfo = [];
 
        /**
         * Element for index
@@ -275,7 +275,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
         */
        private function getContentsFromTableInfoFile (StoreableCriteria $dataSetInstance) {
                // Default content is no data
-               $infoArray = array();
+               $infoArray = [];
 
                // Create FQFN for getting the table information file
                $infoInstance = $this->generateFileFromDataSet($dataSetInstance, 'info');
@@ -422,7 +422,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
                        // Initialize the result data, this need to be rewritten e.g. if a local file cannot be read
                        $resultData = array(
                                BaseDatabaseBackend::RESULT_INDEX_STATUS => self::RESULT_OKAY,
-                               BaseDatabaseBackend::RESULT_INDEX_ROWS   => array()
+                               BaseDatabaseBackend::RESULT_INDEX_ROWS   => []
                        );
 
                        // Initialize limit/skip
@@ -451,7 +451,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
                                        $isFound = true;
 
                                        // Search in the criteria with FMFW (First Matches, First Wins)
-                                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CACHED-LFDB: dataArray()=%d', count($dataArray)));
+                                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CACHED-LFDB: data[]=%d', count($dataArray)));
                                        foreach ($dataArray as $key => $value) {
                                                // Make sure value is not bool
                                                assert(!is_bool($value));
@@ -641,7 +641,7 @@ class CachedLocalFileDatabase extends BaseDatabaseBackend implements DatabaseBac
                                                } // END - foreach
 
                                                // Write the data to a local file
-                                               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CACHED-LFDB: Writing dataArray()=' . count($dataArray) . ' to ' . $fileInfoInstance->getPathname() . ' ...');
+                                               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CACHED-LFDB: Writing data[]=' . count($dataArray) . ' to ' . $fileInfoInstance->getPathname() . ' ...');
                                                $this->writeDataArrayToFqfn($fileInfoInstance, $dataArray);
 
                                                // Count found entries up
index 31f79142bbbf05fbb116a5e70bf8871d85008128..13bf4e2e54ede923a4ab2f396ee56aafc3aee297 100644 (file)
@@ -95,7 +95,7 @@ abstract class BaseDatabaseWrapper extends BaseFrameworkSystem {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      void
         */
-       protected function queryInsertDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = array()) {
+       protected function queryInsertDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = []) {
                // Default cache key is NULL
                //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-WRAPPER: dataSetInstance=%s,onlyKeys()=%d - CALLED!', $dataSetInstance->__toString(), count($onlyKeys)));
                $cacheKey = NULL;
@@ -129,7 +129,7 @@ abstract class BaseDatabaseWrapper extends BaseFrameworkSystem {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      void
         */
-       protected function queryUpdateDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = array()) {
+       protected function queryUpdateDataSet (StoreableCriteria $dataSetInstance, array $onlyKeys = []) {
                // Init cache key
                $cacheKey = NULL;
 
@@ -176,11 +176,11 @@ abstract class BaseDatabaseWrapper extends BaseFrameworkSystem {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      $resultInstance         An instance of a database result class
         */
-       public function doSelectByCriteria (Criteria $criteriaInstance, array $onlyKeys = array()) {
+       public function doSelectByCriteria (Criteria $criteriaInstance, array $onlyKeys = []) {
                // Default cache key if cache is not enabled
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-WRAPPER: criteriaInstance=%s,onlyKeys()=%d - CALLED!', $criteriaInstance->__toString(), count($onlyKeys)));
                $cacheKey = NULL;
-               $result = array();
+               $result = [];
 
                // Is the cache enabled?
                if (FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('database_cache_enabled') === true) {
@@ -234,7 +234,7 @@ abstract class BaseDatabaseWrapper extends BaseFrameworkSystem {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      $numRows                        Numbers of rows of database entries
         */
-       public function doSelectCountByCriteria (Criteria $criteriaInstance, $onlyKeys = array()) {
+       public function doSelectCountByCriteria (Criteria $criteriaInstance, array $onlyKeys = []) {
                // Total numbers is -1 so we can distinglish between failed and valid queries
                $numRows = 0;
 
index 33622e1a999c0714fcce28f589fca913ba0706e1..1eea9ce9ae14c970f79831f58813c62e631e5c4f 100644 (file)
@@ -36,7 +36,7 @@ abstract class BaseFactory extends BaseFrameworkSystem {
        /**
         * Counter of all objects
         */
-       private static $objectCounters = array();
+       private static $objectCounters = [];
 
        /**
         * Protected constructor
index e453d9e8dd074443b358bf8c0c62e30174dadbb5..b10907b53e53795695f6ea2f9984300264b9a214 100644 (file)
@@ -54,7 +54,7 @@ class ObjectFactory extends BaseFactory {
         * @throws      NoClassException        If the requested class was not found
         * @throws      InvalidArgumentException        If className is empty or the name not following naming-convention
         */
-       public static final function createObjectByName ($fullClassName, array $args = array()) {
+       public static final function createObjectByName ($fullClassName, array $args = []) {
                // Is the class name valid and is the class there?
                if (empty($fullClassName)) {
                        // Throw an exception here
@@ -96,7 +96,7 @@ class ObjectFactory extends BaseFactory {
         * @param       $args                           Arguments in an indexed array
         * @return      $objectInstance         An instance of the requested object
         */
-       public static final function createObjectByConfiguredName ($configEntry, array $args = array()) {
+       public static final function createObjectByConfiguredName ($configEntry, array $args = []) {
                // Read the configuration entry
                $fullClassName = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry($configEntry);
 
index f5d87d9595b34a69d1da544360493f952899b99f..27227aa1ec63257fe12ed9efde0a12120a1a2c27 100644 (file)
@@ -55,7 +55,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
         *     'instance'     => NULL
         * )
         */
-       private static $enabledFeatures = array();
+       private static $enabledFeatures = [];
 
        /**
         * Protected constructor
index c2ac5ddf0fd8bc6cdd34d4fb9682de5b00df1c70..1c4dcff6965800e44b02e91db1ca65a1dac459f2 100644 (file)
@@ -110,17 +110,17 @@ abstract class BaseBinaryFile extends BaseAbstractFile {
        /**
         * File header
         */
-       private $header = array();
+       private $header = [];
 
        /**
         * Seek positions for gaps ("fragmentation")
         */
-       private $gaps = array();
+       private $gaps = [];
 
        /**
         * Seek positions for damaged entries (e.g. mismatching hash sum, ...)
         */
-       private $damagedEntries = array();
+       private $damagedEntries = [];
 
        /**
         * Back-buffer
@@ -216,8 +216,8 @@ abstract class BaseBinaryFile extends BaseAbstractFile {
                $this->setSeekPosition(0);
 
                // Init arrays
-               $this->gaps = array();
-               $this->damagedEntries = array();
+               $this->gaps = [];
+               $this->damagedEntries = [];
        }
 
        /**
index 23d3b6a97d7ff884108456e92afe4e9d1396b5bc..52a197b1abfe23c0e10e1e9579f3e2757bab6605 100644 (file)
@@ -137,7 +137,7 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem implements Framework
         * @param       $except         Some parts of a directory we want to ignore. Valid: directory and file names, other values will be silently ignored
         * @return      SplFileInfo             An instance of a SplFileInfo class
         */
-       public function readDirectoryExcept (array $except = array()) {
+       public function readDirectoryExcept (array $except = []) {
                // No exceptions given?
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('DIRECTORY-POINTER: except()=%d - CALLED!', count($except)));
                if (count($except) == 0) {
index d3fc82d2da84cae39e6b9b7303b92499cd463528..854f858feb5e5eb9d9f7c548b5fd9cb8f95d9b44 100644 (file)
@@ -153,8 +153,8 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                // Initialize some variables and arrays
                $inputBuffer = '';
                $lastBuffer = '';
-               $header = array();
-               $data = array();
+               $header = [];
+               $data = [];
                $readData = ''; // This will contain our read data
 
                // Get a file input handler
index e18ecadadbca3a9fd9ccee7c6973f0821992a329..cd8745f6577aed77f0fba7721b88a8bc18cab85d 100644 (file)
@@ -99,7 +99,7 @@ class CsvInputFile extends BaseInputTextFile implements CsvInputStreamer {
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] data()=%d,columnSeparator=%s - CALLED!', __METHOD__, __LINE__, strlen($data), $columnSeparator));
 
                // Init return array
-               $lineArray = array();
+               $lineArray = [];
 
                // Whether the parser reads a quoted string (which may contain the column separator again)
                $isInQuotes = false;
@@ -124,7 +124,7 @@ class CsvInputFile extends BaseInputTextFile implements CsvInputStreamer {
                                array_push($lineArray, $column);
 
                                // Debug message
-                               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] lineArray()=%d - After add!', __METHOD__, __LINE__, count($lineArray)));
+                               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] line[]=%d - After add!', __METHOD__, __LINE__, count($lineArray)));
 
                                // Clear variable ...
                                $column = '';
@@ -164,11 +164,11 @@ class CsvInputFile extends BaseInputTextFile implements CsvInputStreamer {
                        array_push($lineArray, $column);
 
                        // Debug message
-                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] lineArray()=%d - After add!', __METHOD__, __LINE__, count($lineArray)));
+                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] line[]=%d - After add!', __METHOD__, __LINE__, count($lineArray)));
                } // END - if
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] lineArray()=%d - EXIT!', __METHOD__, __LINE__, count($lineArray)));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d:] line[]=%d - EXIT!', __METHOD__, __LINE__, count($lineArray)));
 
                // Return it
                return $lineArray;
index 2d3f0a603bd9b9fcaece1ba69db71db79677529f..177a2f1e8aabbc9ff5dab519c6477cfd3d6d6f19 100644 (file)
@@ -83,7 +83,7 @@ class FilterChain extends BaseFrameworkSystem implements Registerable {
         */
        protected function getFilters () {
                // Default is nothing found
-               $filters = array();
+               $filters = [];
 
                // Are some filters set?
                if ($this->isValidGenericArrayKey('filters', 'generic', 'dummy')) {
@@ -102,7 +102,7 @@ class FilterChain extends BaseFrameworkSystem implements Registerable {
         */
        protected function getPostFilters () {
                // Default is nothing found
-               $filters = array();
+               $filters = [];
 
                // Are some filters set?
                if ($this->isValidGenericArrayKey('filters', 'post', 'dummy')) {
index dfdff9a295f6dba459b040ba8841ce83d12ab842..4c3eaaad4adbf54bf2440655c3e5b5eb644f0b7a 100644 (file)
@@ -371,7 +371,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TASK-HANDLER: Shutting down all ' . $this->getListInstance()->count() . ' tasks...');
 
                // Remember all tasks that has been shutdown for removal
-               $tasks = array();
+               $tasks = [];
 
                // Instance a visitor
                $this->setVisitorInstance(ObjectFactory::createObjectByConfiguredName('shutdown_task_visitor_class'));
index 3f22164cdd3b364675b15ce21483304d265fab0c..1353efc2e8acb51730b611398dfe4a39b9e7063d 100644 (file)
@@ -71,7 +71,7 @@ class ImageHelper extends BaseCaptcha implements HelpableTemplate {
        /**
         * All image strings
         */
-       private $imageStrings = array();
+       private $imageStrings = [];
 
        /**
         * Current string name
index 494e3cbd58597c1f077e38276ca0d9236f250ac3..d594489e878dc82652095f575d7fed0100662a1a 100644 (file)
@@ -51,12 +51,12 @@ abstract class BaseHelper extends BaseFrameworkSystem {
        /**
         * Array with groups
         */
-       private $groups = array();
+       private $groups = [];
 
        /**
         * Array with sub group
         */
-       private $subGroups = array();
+       private $subGroups = [];
 
        /**
         * Previously opened group
index 9f3c260c54c74a66935d37e7a6345d04f5b99bc7..08d60de88167a0d48da4e269b983e8dc52424830 100644 (file)
@@ -43,17 +43,17 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
        /**
         * List groups array
         */
-       private $listGroups = array();
+       private $listGroups = [];
 
        /**
         * List entries array
         */
-       private $listEntries = array();
+       private $listEntries = [];
 
        /**
         * List index array
         */
-       private $listIndex = array();
+       private $listIndex = [];
 
        /**
         * Protected constructor
@@ -178,7 +178,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                } // END - if
 
                // Init array
-               $array = array();
+               $array = [];
 
                // Is there another list?
                if (!is_null($list)) {
@@ -200,7 +200,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                } // END - foreach
 
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST: this=' . $this->__toString() . ',list[' . gettype($list) . ']=' . $list . ',array()=' . count($array) . ' - EXIT!');
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('BASE-LIST: this=' . $this->__toString() . ',list[' . gettype($list) . ']=' . $list . ',[]=' . count($array) . ' - EXIT!');
 
                // Return it
                return $array;
@@ -356,8 +356,8 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                $this->listGroups[$groupName]->clearList();
 
                // Clear this list
-               $this->listIndex = array();
-               $this->listEntries = array();
+               $this->listIndex = [];
+               $this->listEntries = [];
        }
        
        /**
@@ -436,7 +436,7 @@ abstract class BaseList extends BaseFrameworkSystem implements IteratorAggregate
                } // END - if
 
                // Init the entries' array
-               $entries = array();
+               $entries = [];
 
                // Get an iterator
                $iteratorInstance = $this->listGroups[$groupName]->getIterator();
index 44a99f7c6ecaa8ad469ba7798267ddc3a0cc26da..4613bc1c778c13a45f947faab62a559be9fc997b 100644 (file)
@@ -177,7 +177,7 @@ abstract class BaseRegistry extends BaseFrameworkSystem implements Register, Reg
                assert(!is_array($arrayKey));
 
                // Init array
-               $entry = array();
+               $entry = [];
 
                // Debug message
                //* DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('REGISTRY: Checking arrayKey=' . $arrayKey . ',lookFor=' . $lookFor);
index 640afef14a557e427a3fbb336faa8661db769b88..c501680a13e8f90afc7157b5f9cb1ff57706021e 100644 (file)
@@ -31,7 +31,7 @@ abstract class BaseRequest extends BaseFrameworkSystem {
        /**
         * Array for the request data
         */
-       private $requestData = array();
+       private $requestData = [];
 
        /**
         * Whether this request is valid and can be further processed. The default is
index 3cc1807d66dffa8d9ff2ec8a38f3077de936b923..7d22336533c98703f625cb9ad8fedb55ed9bb30d 100644 (file)
@@ -41,12 +41,12 @@ abstract class BaseResponse extends BaseFrameworkSystem {
        /**
         * Array with all headers
         */
-       private $responseHeaders = array();
+       private $responseHeaders = [];
 
        /**
         * Cookies we shall sent out
         */
-       private $cookies = array();
+       private $cookies = [];
 
        /**
         * Body of the response
@@ -96,7 +96,7 @@ abstract class BaseResponse extends BaseFrameworkSystem {
         * @return      void
         */
        public final function resetResponseHeaders () {
-               $this->responseHeaders = array();
+               $this->responseHeaders = [];
        }
 
        /**
@@ -208,7 +208,7 @@ abstract class BaseResponse extends BaseFrameworkSystem {
                                header('Set-Cookie: ' . $cookieString);
 
                                // Remove them all
-                               $this->cookies = array();
+                               $this->cookies = [];
                        } // END - if
                }
 
index e996776554520fee0107fd5a017d676dd4113991..05f39746b38f8c9f62244cfa3ebc6076d0d90de3 100644 (file)
@@ -104,17 +104,17 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * The variable stack for the templates
         */
-       private $varStack = array();
+       private $varStack = [];
 
        /**
         * Loaded templates for recursive protection and detection
         */
-       private $loadedTemplates = array();
+       private $loadedTemplates = [];
 
        /**
         * Compiled templates for recursive protection and detection
         */
-       private $compiledTemplates = array();
+       private $compiledTemplates = [];
 
        /**
         * Loaded raw template data
@@ -146,7 +146,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * Loaded helpers
         */
-       private $helpers = array();
+       private $helpers = [];
 
        /**
         * Current variable group
@@ -156,7 +156,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        /**
         * All template groups except "general"
         */
-       private $variableGroups = array();
+       private $variableGroups = [];
 
        /**
         * Code begin
@@ -332,7 +332,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
         */
        private function readCurrentGroup () {
                // Default is not found
-               $result = array();
+               $result = [];
 
                // Is the group there?
                if ($this->isVarStackSet($this->currGroup)) {
@@ -458,7 +458,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
                        // Is the stack there?
                        if (!isset($this->varStack[$variableGroup])) {
                                // Then initialize it here
-                               $this->varStack[$variableGroup] = array();
+                               $this->varStack[$variableGroup] = [];
                        }
 
                        // Not found, add it
@@ -830,8 +830,8 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
                // Initialize some arrays
                if (is_null($this->loadedRawData)) {
                        // Initialize both
-                       $this->loadedRawData = array();
-                       $this->rawTemplates = array();
+                       $this->loadedRawData = [];
+                       $this->rawTemplates = [];
                }
 
                // Load all requested templates
@@ -1314,7 +1314,7 @@ abstract class BaseTemplateEngine extends BaseFrameworkSystem {
        public final function compileVariables () {
                // Initialize the $content array
                $validVar = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('tpl_valid_var');
-               $dummy = array();
+               $dummy = [];
 
                // Iterate through all general variables
                foreach ($this->getVarStack('general') as $currVariable) {
index 96e8a093f100bd980e8124db5ee632a89444e4c0..d01ec650e400b105b3eb6925f07949a575d3f103 100644 (file)
@@ -248,7 +248,7 @@ class ImageTemplateEngine extends BaseTemplateEngine implements CompileableTempl
                $methodName = sprintf('finish%s', StringUtils::convertToClassName($nodeName));
 
                // Call the corresponding method
-               call_user_func_array(array($this->getImageInstance(), $methodName), array());
+               call_user_func_array(array($this->getImageInstance(), $methodName), []);
        }
 
        /**
index 22d06a0e58da8edfa0f6f13bfd01e9c817b5d0e6..24261f747c8badfb8f63a3220d040b1dcc91dc52 100644 (file)
@@ -219,7 +219,7 @@ class MailTemplateEngine extends BaseTemplateEngine implements CompileableTempla
                $methodName = 'finish' . StringUtils::convertToClassName($nodeName);
 
                // Call the corresponding method
-               call_user_func_array(array($this, $methodName), array());
+               call_user_func_array(array($this, $methodName), []);
        }
 
        /**
index a0f8af2cdc69d92055b2083c8bc4997b7092b007..777412745014f0538be020d2209812c03b37bbf9 100644 (file)
@@ -355,7 +355,7 @@ class MenuTemplateEngine extends BaseTemplateEngine implements CompileableTempla
 
                // Call the corresponding method
                //* DEBUG: */ echo "call: ".$methodName."<br />\n";
-               call_user_func_array(array($this, $methodName), array());
+               call_user_func_array(array($this, $methodName), []);
        }
 
        /**
index 25f6793c71fc608eb4e9cc12d3e55fe203edacfa..cb05d38e90c35ea9e767e24bc4d4dd16cecf5ae4 100644 (file)
@@ -31,17 +31,17 @@ class InvalidActionException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       An array with message parts
+        * @param       $messageArray   An array with message parts
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Prepare the message
                $message = sprintf('[%s:%d] Cannot resolve action <span class="exception_reason">%s (%s)</span>.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[0]->getClassName()
+                       $messageArray[1],
+                       $messageArray[0]->getClassName()
                );
 
                // Call parent contructor with message
index 0c103663bf1a0d2e9cca0b9748f40d4e5688a612..c2a0b2f05163fc29621abb6091b3de19bb632a09 100644 (file)
@@ -36,7 +36,7 @@ class UserAuthorizationException extends FrameworkException {
         * @param       $code                           Error code
         * @return      void
         */
-       public function __construct (Filterable $filterInstance, $code) {
+       public function __construct (Filterable $filterInstance, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] Authorization has failed. Error code %s',
                        $filterInstance->__toString(),
index 3669019e8a1abf5a3b04294e4979cdf758ba9729..9e7462a770f67c8177b85b1d5a39292a7a94cad6 100644 (file)
@@ -37,7 +37,7 @@ class Base64EncodingBadException extends FrameworkException {
         * @param       $code           Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Raw data %s contains invalid characters for BASE64-encoding.',
                        $messageArray[0]->__toString(),
index 9f0750e540bc5c7d23fe3d8cb63595ffd50f7015..64bb8d9d63b4aedeb65fd2109b5528a3ed0abf7d 100644 (file)
@@ -36,7 +36,7 @@ class Base64EncodingModuloException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Data length %s modulo 4 is not zero: data=%s',
                        $messageArray[0]->__toString(),
index 94befb3bd8773a6cde33c1a9b761693ecbe18b45..e6c866fd7140315ddf7c80e48e1793f66fe6e487 100644 (file)
@@ -33,7 +33,7 @@ abstract class FrameworkException extends ReflectionException {
        /**
         * Array for the backtrace
         */
-       private $backTrace = array();
+       private $backTrace = [];
 
        /**
         * Extra data
@@ -47,7 +47,7 @@ abstract class FrameworkException extends ReflectionException {
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct ($message, $code = 0) {
+       public function __construct (string $message, int $code = 0) {
                // Make sure everything is assigned properly
                parent::__construct($message, $code);
 
@@ -180,9 +180,12 @@ abstract class FrameworkException extends ReflectionException {
         * @param       $code           Integer code to encode in hex
         * @return      $hexCode        The exception code in hex-decimal format
         */
-       public final function getHexCode ($code = NULL) {
-               // Get the decimal code
-               if (is_null($code)) $code = $this->getCode();
+       public final function getHexCode (int $code = NULL) {
+               // Is NULL?
+               if (is_null($code)) {
+                       // Get default error code
+                       $code = $this->getCode();
+               }
 
                // Format it to hex-decimal, 0x as prefix and 3 chars
                $hexCode = sprintf("0x%03s", dechex($code));
@@ -197,7 +200,7 @@ abstract class FrameworkException extends ReflectionException {
         * @param       $extraData      Extra data to store
         * @return      void
         */
-       protected final function setExtraData ($extraData) {
+       protected final function setExtraData (string $extraData) {
                $this->extraData = $extraData;
        }
 
index 45ce14f43abd66135fae0dfc1fd7818b6b423329..64686444bd1d387bf4893538624717942ce4a705 100644 (file)
@@ -36,7 +36,7 @@ class MismatchingCompressorsException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (array $array, $code) {
+       public function __construct (array $array, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Der Kompressor %s zu den geladenen Daten aus %s und der aktuell verwendete Kompressor %s stimmen nicht &uuml;berein!',
                        $array[0]->__toString(),
index d1a855a51b25e21bce88ac7c754ac706c81e0efe..c2aa476c5f07056e86faf8e09faf28de6b6ec61c 100644 (file)
@@ -38,7 +38,7 @@ class ConfigValueTypeUnsupportedException extends FrameworkException {
         * @param       $code           Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Configuration key %s has unspported value type %s.',
                        $messageArray[0]->__toString(),
index eb6b98c8f0a545b02e5afee4efa37a69f8d9d9df..d0894f070d69848a3f0c9ff283a76aab676945a6 100644 (file)
@@ -36,7 +36,7 @@ class NoConfigEntryException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Configuration entry %s not found.',
                        $classArray[0],
index ba5bd23339e34f84be909cc8b38e050cab1f72a3..f7ecf9c29fcc1f0d73814570fff56a15af81a187 100644 (file)
@@ -36,7 +36,7 @@ class ConnectionAlreadyRegisteredException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Connection with socket %s is already registered.',
                        $messageData[0]->__toString(),
index 444004b7ca910e02d624db9dea3b1913f50986f9..079e8843c5d8f72d3f403c0b234b90bdb4ac7de6 100644 (file)
@@ -36,7 +36,7 @@ class DefaultControllerException extends FrameworkException {
         * @param       $code                           An optional code for better debugging
         * @return      void
         */
-       public function __construct (ControllerResolver $resolverInstance, $code) {
+       public function __construct (ControllerResolver $resolverInstance, int $code) {
                // Prepare the message
                $message = sprintf('[%s:%d] Cannot resolve default controller <span class="exception_reason">(%s)</span>. Maybe missing?',
                        $resolverInstance->__toString(),
index e82806a6499ca1388cb231fb5e55209bd35d9107..f64f2879edbbca17425492492a11421f4412a2ac 100644 (file)
@@ -31,21 +31,21 @@ class InvalidControllerException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       An array with message parts
+        * @param       $messageArray   An array with message parts
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Prepare the message
                $message = sprintf('[%s:%d] Cannot resolve controller <span class="exception_reason">%s (class name: %s)</span>.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[0]->getClassName()
+                       $messageArray[1],
+                       $messageArray[0]->getClassName()
                );
 
                // Set extra data
-               $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
+               $this->setExtraData($messageArray[0]->getClassName() . ':' . $this->getLine());
 
                // Call parent contructor with message
                parent::__construct($message, $code);
index 0ee59605f664d902ca2b4ca9c3151be4b25d1a8b..eae853d7a774937dad28cc5d054c39d54cb68ec5 100644 (file)
@@ -38,7 +38,7 @@ class EncryptInvalidLengthException extends FrameworkException {
         * @param       $code           Error code
         * @return      void
         */
-       public function __construct (Filterable $filterInstance, $code) {
+       public function __construct (Filterable $filterInstance, int $code) {
                // Get length
                $length = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('captcha_string_length');
 
index 5993697c306ed7a8a6afa07f172aeaa7b047abf0..e5bc6aaae7782cea7750732a8d84cab64f5022a2 100644 (file)
@@ -37,7 +37,7 @@ class EncryptMissingException extends FrameworkException {
         * @param       $code           Error code
         * @return      void
         */
-       public function __construct (Filterable $filterInstance, $code) {
+       public function __construct (Filterable $filterInstance, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Encrypt string is missing.',
                        $filterInstance->__toString(),
index a1d483be08d5c9fc7841f7bf5b11dc1897bc5f70..ec6067a55404684989472a34dd56d5c518d822ba 100644 (file)
@@ -35,7 +35,7 @@ class DatabaseException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($message, $code) {
+       public function __construct ($message, int $code) {
                // Just call the parent constructor
                parent::__construct($message, $code);
        }
index 282e5e1006633e1fbf434cf75a3cf1335be33581..74b9e359e859498be59ff1e0e3adb43e111b73f1 100644 (file)
@@ -31,17 +31,17 @@ class SqlException extends DatabaseException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Message array
+        * @param       $messageArray   Message array
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] SQL error detected. Message from database: %s, code: %s.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $this->getHexCode($msgArray[2])
+                       $messageArray[1],
+                       $this->getHexCode($messageArray[2])
                );
 
                // Call parent constructor
index 47a12a6da4af70b539f4e56eee470dea67546664..24577e0ccb4cfc10b7ecd86055c5bd92957a6de2 100644 (file)
@@ -36,7 +36,7 @@ class SavePathIsNoDirectoryException extends DatabaseException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($path, $code) {
+       public function __construct (string $path, int $code) {
                // Add a message around the missing class
                $message = sprintf('Save path %s is no directory.', $path);
 
index 69dbbd1bb1d217c037ad0b8b26573dc5cfbaf1a6..985b0e7e607748ec0eba5093f7116033ddb5f18a 100644 (file)
@@ -36,7 +36,7 @@ class SavePathReadProtectedException extends DatabaseException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($path, $code) {
+       public function __construct (string $path, int $code) {
                // Add a message around the missing class
                $message = sprintf('Path %s is not readable. Please fix your file access rights.', $path);
 
index bcdef61dc2e11f2666749d7d50d40f165aceacf9..994dba5ec5411777613146de75b7df069a69a0f3 100644 (file)
@@ -36,7 +36,7 @@ class SavePathWriteProtectedException extends DatabaseException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($path, $code) {
+       public function __construct (string $path, int $code) {
                // Add a message around the missing class
                $message = sprintf('Save path %s is write-protected. Please fix your file permissions.', $path);
 
index 76a2660250a4937ad79a99abebc5a497322f834e..729bc26247c49260f745e4a820ef1ecd1a1b82ad 100644 (file)
@@ -31,16 +31,16 @@ class UnknownHostnameException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Message array holding all needed data
+        * @param       $messageArray   Message array holding all needed data
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the host name
                $message = sprintf('[%s:%d] Host name "%s" cannot be resolved (NXDOMAIN).',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Call parent constructor
index caaa927c135967e2dfedf187113c7e54527f5225..01f367858cba3d931700d97e56d7cb78c24a3201 100644 (file)
@@ -35,7 +35,7 @@ class FeatureMethodNotCallableException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Method %s cannot be called.',
                        $messageArray[0],
index cbafa2dbcc5cac78d807babb5b853e651c854997..dcdb3e58c8132960f5cc444e30d4a662b3efb25b 100644 (file)
@@ -35,7 +35,7 @@ class DirPointerNotOpenedException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct ($path, $code) {
+       public function __construct (string $path, int $code) {
                // Add a message around the missing class
                $message = sprintf('No pointer could be initialized for path "%s".', $path);
 
index 86cb63f76ffc894ccf2835523c04f062cd39f6b3..a1be8612c89c79744c5864757269f95f372596c7 100644 (file)
@@ -39,7 +39,7 @@ class FileIoException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (SplFileInfo $infoInstance, $code) {
+       public function __construct (SplFileInfo $infoInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('A problem has been detected reading or writing to/from %s.', $infoInstance->getPathname());
 
index 1db8b70a6a1298d3361747505a278ed09a40b312..0658298f054230e853ae9995fbf42bcdd6182e17 100644 (file)
@@ -38,7 +38,7 @@ class FileNotFoundException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (SplFileInfo $infoInstance, $code) {
+       public function __construct (SplFileInfo $infoInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('File "%s" not found.', $infoInstance->getPathname());
 
index 7de24da204f36083976103e019f9d2754190c529..47272db30223e5128f3b70ac3c5fc1ebfdcd90b9 100644 (file)
@@ -38,7 +38,7 @@ class FileReadProtectedException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (SplFileInfo $infoInstance, $code) {
+       public function __construct (SplFileInfo $infoInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('File %s is read-protected. Please set read access rights (CHMOD).', $infoInstance->getPathname());
 
index 202ba1fa6d762224764c0358aadabf043d847602..d440737f75f8770533997e3c570fd536e2afe65f 100644 (file)
@@ -38,7 +38,7 @@ class FileWriteProtectedException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (SplFileInfo $infoInstance, $code) {
+       public function __construct (SplFileInfo $infoInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('File %s cannot be written. Please check file and/or directory permissions.', $infoInstance->getPathname());
 
index 090644d3594bbe935f5098ae9581fdcc008bd1a7..83b5758255cc25ed73f6c855b36ee0a1893d363c 100644 (file)
@@ -32,17 +32,17 @@ class InvalidDataLengthException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Message from the exception
+        * @param       $messageArray   Message from the exception
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Unexpected data length of %s bytes has been detected, %s bytes were expected.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[2]
+                       $messageArray[1],
+                       $messageArray[2]
                );
 
                // Call parent constructor
index c8872c0945471a221a46c2b353aefeb44b13f803..251c051336bd0a85b7e60639bf55b2e1c526929d 100644 (file)
@@ -32,17 +32,17 @@ class InvalidMD5ChecksumException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Message from the exception
+        * @param       $messageArray   Message from the exception
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] MD5 hashes %s and %s doesnt match.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[2]
+                       $messageArray[1],
+                       $messageArray[2]
                );
 
                // Call parent constructor
index f056e24c9f7263d985e68eef10dde364d5ba1873..ad279d4900217acbf8533daad6587ba91bbeb6c4 100644 (file)
@@ -36,7 +36,7 @@ class InvalidResourceException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (FrameworkInterface $class, $code) {
+       public function __construct (FrameworkInterface $class, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Has an invalid resource.',
                        $class->__toString(),
index fa9d5f22dd1f66e9a0b61ef52749756306221c23..1aefbeb1ae9b8ab268db5170a4a9ad766887e6c8 100644 (file)
@@ -36,7 +36,7 @@ class PathIsNoDirectoryException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($path, $code) {
+       public function __construct (string $path, int $code) {
                // Add a message around the missing class
                $message = sprintf('Der angegebene Pfad %s ist ung&uuml;tig (kein Pfad).', $path);
 
index 4437e736241dfee76727d5e491dcdcb933fad009..3f9a1e428d372b38c3ac9f747c4316df50dafa2e 100644 (file)
@@ -36,7 +36,7 @@ class PathReadProtectedException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($path, $code) {
+       public function __construct (string $path, int $code) {
                // Add a message around the missing class
                $message = sprintf('The path %s appears to be read-protected. Please fix your CHMOD rights.', $path);
 
index 3d9945e17a6ecdfee7e3e8a34b5490943de32945..7812f2a1602157643b4d6b9f01988aa79b178273 100644 (file)
@@ -39,7 +39,7 @@ class PathWriteProtectedException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (SplFileInfo $infoInstance, $code) {
+       public function __construct (SplFileInfo $infoInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('Path "%s" cannot be written to. Please check permissions.', $infoInstance->getPath());
 
index aadb0a579e29456816d63649f692f0ba7587b5ce..8a69da7fc5ea632bedf44cd5a1327654c048c15b 100644 (file)
@@ -36,7 +36,7 @@ class FilterChainException extends FrameworkException {
         * @param       $code                           Exception code for better debugging
         * @return      void
         */
-       public function __construct (Filterable $filterInstance, $code) {
+       public function __construct (Filterable $filterInstance, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] Filter chain interruppted by fatal error in filter.',
                        $filterInstance->__toString(),
index 583216e2a8a051669680d3bb8300677affed892c..93057a896965f312f8d60003f27e9289bf947bd6 100644 (file)
@@ -36,7 +36,7 @@ class InvalidFilterChainException extends FrameworkException {
         * @param       $code                           Exception code for better debugging
         * @return      void
         */
-       public function __construct (array $filterArray, $code) {
+       public function __construct (array $filterArray, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] Filter chain %s is not initialized.',
                        $filterArray[0]->__toString(),
index 9aeb0d613e8978f16c1fe7b2a978d354ea3d1cf2..ea9db62952aeb0624ca8ed76477792ca79319c29 100644 (file)
@@ -37,7 +37,7 @@ class FormClosedException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Could not add form element %s because form is closed.',
                        $classArray[0]->__toString(),
index 9be2ed6e838b5ecaf5564c3a47a35a948cbd2f2b..5bf7ebe593ee20d4c56dbed68c2de8b049912e6c 100644 (file)
@@ -36,7 +36,7 @@ class FormGroupClosedException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Could not add sub group %s because no form group has been opened before.',
                        $classArray[0]->__toString(),
index 74fa1d9baf57c7dfd752bf29e4a34287a80ce3fa..a2d97b08bf3dc9623774cebc7b6855f043364e81 100644 (file)
@@ -38,7 +38,7 @@ class FormOpenedException extends FrameworkException {
         * @param       $code                           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseHelper $helperInstance, $code) {
+       public function __construct (BaseHelper $helperInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Form is not yet closed. Close it with method <u>%s::addFormTag()</u> and add no parameters.',
                        $helperInstance->__toString(),
index 744f2136666ecbb7d369469f0dfc703ec41c507f..91714a859760a2b27ee0d0ca627cfd8eabcc9f1f 100644 (file)
@@ -32,16 +32,16 @@ class HelperGroupAlreadyCreatedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Array containing exception data
+        * @param       $messageArray   Array containing exception data
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Group %s already opened before.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Call parent constructor
index b8a1353d635117441c3d6cfefa36945f872e4efc..55bcdccd813ee15e52e59ad51b3954ebfe6b2aad 100644 (file)
@@ -32,16 +32,16 @@ class HelperNoPreviousOpenedSubGroupException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Array containing exception data
+        * @param       $messageArray   Array containing exception data
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Sub group not opened before. Raw text follows: %s',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Call parent constructor
index 7bf2281d35187849c4323d818a1bc19f7d39c8a9..dc417e1ecc05b4f950521ccc1030bd6f55a04551 100644 (file)
@@ -32,16 +32,16 @@ class HelperSubGroupAlreadyCreatedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Array containing exception data
+        * @param       $messageArray   Array containing exception data
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Sub group %s already opened before.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Call parent constructor
index d87676a1798041f88b0c96f3d899d776ba4359d6..687c350f4387cbe8976bc40cb3dc46204a3f8147 100644 (file)
@@ -37,7 +37,7 @@ class InvalidFormNameException extends FrameworkException {
         * @param       $code                           Code number for the exception
         * @return      void
         */
-       public function __construct (BaseHelper $helperInstance, $code) {
+       public function __construct (BaseHelper $helperInstance, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Form name not set.',
                        $helperInstance->__toString(),
index 4643f9f08713bf5646c809b0fb1eed76426a6c13..92ad7f6143a8a86af9820177fb48fd018c446e58 100644 (file)
@@ -32,16 +32,16 @@ class NoGroupOpenedException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Array containing exception data
+        * @param       $messageArray   Array containing exception data
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Group not opened before. Raw text follows: %s',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Call parent constructor
index ee695122254175ffed6ad5c6f93ddbb9b5243082..83317cf8927037b04ee3fe173558e69a05abbfc8 100644 (file)
@@ -36,7 +36,7 @@ class UserInstanceMissingException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Registry key %s does not include a class with implemented interface <u>Manageable(User|Guest)</u>.',
                        $classArray[0]->__toString(),
index 36c93051570de74954c5c9aeb853a11e641293cb..fc49eeb6ba7c608d3779bf53e91754a044a5cbfa 100644 (file)
@@ -36,7 +36,7 @@ class InvalidLanguagePathStringException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] %s is not a string with path.',
                        $classArray[0]->__toString(),
index bc6f61062cb201807e9934a06e8718f1a98ae075..60c6565b44c244b94a1772a01f8f9e867d6706bf 100644 (file)
@@ -36,7 +36,7 @@ class LanguagePathIsNoDirectoryException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Language base path %s does not exist or is not a directory.',
                        $classArray[0]->__toString(),
index e97dd7039b4805450887a8e10351934c3459302c..9b740438b50330256a23d1cba4c3463fd0626779 100644 (file)
@@ -36,7 +36,7 @@ class LanguagePathReadProtectedException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Base language path %s is read-protected. Please change access rights (CHMOD).',
                        $classArray[0]->__toString(),
index 12b6083130720e5d7f96255bbfba8e9c0ca0f144..523f20d1b4018bda1833c9cca1abdbe8524ce78e 100644 (file)
@@ -35,7 +35,7 @@ class AssertionException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($message, $code) {
+       public function __construct (string $message, int $code) {
                // Call parent constructor
                parent::__construct($message, $code);
        }
index bea27a15cf255c6f1d3c8866cf0ea802b1100e16..22a1a87049daef3f26e7b54d6debfcbacaceb670 100644 (file)
@@ -35,7 +35,7 @@ class ClassMismatchException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('The class %s does not match class %s.',
                        $classArray[0],
index 95fa75567eb26ae809302f8b9a9193d658c5b5cb..151fe27fcf746ec7c6dd4d00b0d205333972bfe2 100644 (file)
@@ -37,7 +37,7 @@ class DimNotFoundInArrayException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (FrameworkInterface $class, $code) {
+       public function __construct (FrameworkInterface $class, int $code) {
                if (is_object($class)) {
                        // Add a message around the missing class
                        $message = sprintf('[%s:%d] Dimensions not found in array, array is invalid!',
index 2178c32bd12644114c6060cff7db7df7ff53f260..8a5b7ff8af124e83d55cbfb80d507c78e137dfeb 100644 (file)
@@ -35,7 +35,7 @@ class FatalErrorException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($message, $code) {
+       public function __construct (string $message, int $code) {
                // Call parent constructor
                parent::__construct($message, $code);
        }
index 05f4c12155d52adb06de60a6c743f51a29284350..e8f6aee584c2146a0da1b82ce2b5826cb914c649 100644 (file)
@@ -35,7 +35,7 @@ class IndexOutOfBoundsException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct ($message, $code) {
+       public function __construct (string $message, int $code) {
                // Add a message around the missing class
                $message = sprintf('%s is out of bounds.',
                        $message
index 3bfff9256e7657033bf0504ee5063f5ebd186ec0..d962564b3da442544d958d13809eddb7cdbbf6b9 100644 (file)
@@ -36,7 +36,7 @@ class InvalidArrayCountException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (array $array, $code) {
+       public function __construct (array $array, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] %s has %d elements, expected arre %d.',
                        $array[0]->__toString(),
index 90136e21efea973cdef708e9db7b99d50639f864..bf26dcb52c1c9e507e622549664f0897faeb952c 100644 (file)
@@ -35,17 +35,17 @@ class InvalidCommandException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Invalid command <span class="exception_reason">%s (class %s)</span> detected.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[0]->getClassName()
+                       $messageArray[1],
+                       $messageArray[0]->getClassName()
                );
 
                // Set extra data
-               $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
+               $this->setExtraData($messageArray[0]->getClassName() . ':' . $this->getLine());
 
                // Call parent constructor
                parent::__construct($message, $code);
index 63814d0e81228774fe645c3bb1e6522d03bc0da2..1009583a276960651a5a17097ae372bfc75370ce 100644 (file)
@@ -35,7 +35,7 @@ class InvalidInterfaceException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Object does not implement expected interface %s.',
                        $classArray[0]->__toString(),
index 16dc9cbb30d8dd338fcf6d8499d85b547372e0be..7b55f5e9f4a60822ec2a98cb6666937a11b2d68f 100644 (file)
@@ -37,7 +37,7 @@ class InvalidObjectException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (FrameworkInterface $class, $code) {
+       public function __construct (FrameworkInterface $class, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Object is not allowed here.',
                        $class->__toString(),
index 91323522e136bf872340b3b9f8be145dff9f7455..25e2d39448fd43696ec5a84a3af18a844345e9e8 100644 (file)
@@ -35,7 +35,7 @@ class MissingArrayElementsException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Extract all elements
                $elements = '';
                if ((isset($classArray[2])) && (is_array($classArray[2]))) {
index c993e96d9d26c2edb64cb94638ba5d1fd140699b..0b768a939af7766d3a11ac7ab818e5e4e0a7591b 100644 (file)
@@ -31,20 +31,20 @@ class NoClassException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       Message from the exception
+        * @param       $messageArray   Message from the exception
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Class %s not found.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Set extra data
-               $this->setExtraData($msgArray[1]);
+               $this->setExtraData($messageArray[1]);
 
                // Call parent constructor
                parent::__construct($message, $code);
index f475e3fa7bf71079413be8742249cc475f3b0207..4cd01601cb17ed45589f5826e5770c7409fbefb8 100644 (file)
@@ -36,7 +36,7 @@ class ResponseHeadersAlreadySentException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (FrameworkInterface $class, $code) {
+       public function __construct (FrameworkInterface $class, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Headers are already sent.',
                        $class->__toString(),
index b8b2741eddf1af1dbb7170a24554a2eeb77989ec..1de612a514e26986142547f590c3b64d767001c5 100644 (file)
@@ -37,7 +37,7 @@ class UnsupportedOperationException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Init extra class name
                $extraClassName = '';
 
index 372fa629987146863c33d3a9c2bb6597841a5999..4f882002b534abe0f206986e8eefebfa8af806de 100644 (file)
@@ -36,7 +36,7 @@ class VariableIsNotSetException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (array $array, $code) {
+       public function __construct (array $array, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] While the application %s was initialized, a variable %s was not created.',
                        $array[0]->__toString(),
index 891dba14a3833e89e37ea40f50a07ff2c0c073c3..127e1cc3eaca5095e0cb61838b4788aa9cfb873a 100644 (file)
@@ -31,16 +31,16 @@ class InvalidDatabaseResultException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       Error message array
+        * @param       $messageArray   Error message array
         * @param       $code           Error code
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] Database instance %s contains invalid entries.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]->__toString()
+                       $messageArray[1]->__toString()
                );
 
                // Call parent exception constructor
index f4bc3ce2500a35db33b46af0c68c866c91af773b..f08a59f68c687071ab16139c59fdfe91650b2a71 100644 (file)
@@ -36,7 +36,7 @@ class ResultUpdateException extends FrameworkException {
         * @param       $code                           Error code
         * @return      void
         */
-       public function __construct (UpdateableResult $resultInstance, $code) {
+       public function __construct (UpdateableResult $resultInstance, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] Update of result instance has nothing changed.',
                        $resultInstance->__toString(),
index 1d5be59eeabcca6c4766c6bc2aa9ef5d24ff3d96..94cb9ff8ed4a3ae45dfc020d2d9e2dd6a2c7af5c 100644 (file)
@@ -32,7 +32,7 @@ class InvalidServerSocketException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Socket resource %s is not a server socket.',
                        $messageData[0]->__toString(),
index d53a45715cf11337da2278e05425d866f9e59010..25e70d2ec053cda0c86f2d5d921a70e713f5f630 100644 (file)
@@ -33,7 +33,7 @@ class InvalidSocketException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Invalid socketResource[%s]=%s, errno=%s, errstr=%s',
                        $messageData[0]->__toString(),
index 2340339cecad5e2f2537c2582c4b24351bc34347..42280d161b6569824e7a062bfe0a38a87afa6d2f 100644 (file)
@@ -35,7 +35,7 @@ class NoSocketErrorDetectedException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Socket %s has no error reported.',
                        $messageData[0]->__toString(),
index 3ea97ae7299cddf6cd85580e514a5b3afe2d93dd..05a2f17de7f8ba2f29ef0f251fa87ebb89c60376 100644 (file)
@@ -33,7 +33,7 @@ class SocketAlreadyRegisteredException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Socket %s is already registered.',
                        $messageData[0]->__toString(),
index facf468257ad47a0105eeec472d43aaa26bc47a7..b4376054d63d5504a0ec70b543e01419c5e55b6f 100644 (file)
@@ -31,7 +31,7 @@ class SocketBindingException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Could not bind to socket %s: Type=%s, errno=%s, errstr=%s',
                        $messageData[0]->__toString(),
index 456b0c3e05cbe5ba8b9e0deaa8a8a27899edecc9..39ef8b95439b97a3b0ecfa7836366f37e378481e 100644 (file)
@@ -34,7 +34,7 @@ class SocketConnectionException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Could not make a connection, type=%s, errno=%s, errstr=%s',
                        $messageData[0]->__toString(),
index 0d7a34ec58e350556d5aa5d5e198eb94fd8dcfb4..2955d024500400e80ab5d50ae7f3e2b7b5e75e5c 100644 (file)
@@ -34,7 +34,7 @@ class SocketCreationException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Cannot create socket, type=%s, errno=%s, errstr=%s',
                        $messageData[0]->__toString(),
index 3c189b5118ed310936bd6dbd016b874fb6a50308..8e607fe303bc568578ddcc4bbffa2e7641d9a5d3 100644 (file)
@@ -32,7 +32,7 @@ class SocketOperationException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Socket operation failed, type=%s, errno=%s, errstr=%s',
                        $messageData[0]->__toString(),
index 13fa65ae363b057549a9035eb71f17555b76e5d0..0060bbbf4248a0c696339d8b68fbb7975d3c461f 100644 (file)
@@ -34,7 +34,7 @@ class SocketOptionException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Changing option on socket failed, type=%s, errno=%s, errstr=%s',
                        $messageData[0]->__toString(),
index f8efb245911fc8ac33526a87b820ca0fdc98ebf5..f7d2ec314a1b1e2f707378c0d49a745a6fa3e630 100644 (file)
@@ -33,7 +33,7 @@ class UnsupportedSocketErrorHandlerException extends AbstractSocketException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageData, $code) {
+       public function __construct (array $messageData, int $code) {
                // Construct the message
                $message = sprintf('[%s:] Socket error handler %s is not yet implemented, errorCode=%s, message=%s',
                        $messageData[0]->__toString(),
index 8650fd3a1c68a17b1e3748d1e75d5b459277bb1b..940bee1f1ca977f5a6719048b40d173b66b9371f 100644 (file)
@@ -35,7 +35,7 @@ class AlreadyInitializedStackerException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Stacker %s already initialized, forceReInit=%d.',
                        $messageArray[0]->__toString(),
index 931caac0f5c0ca1f83a8eee5915c390ccfe670b0..08415615d09fa32a079cb6f6223a8f1c7f81eb66 100644 (file)
@@ -36,7 +36,7 @@ class EmptyStackerException extends FrameworkException {
         * @param               $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Stacker %s is empty.',
                        $messageArray[0]->__toString(),
index 03d7ea2a612908667c6603386dc7e613f0ae8357..d543a62f0c2b163cb114cac7174779ba89dc0a4a 100644 (file)
@@ -35,7 +35,7 @@ class FullStackerException extends FrameworkException {
         * @param               $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Stacker %s is full.',
                        $messageArray[0]->__toString(),
index f52069e931a01463390651d19305ac386ce26304..ba1a99b14ddc277003eafd596243ec2c0539f939 100644 (file)
@@ -35,7 +35,7 @@ class NoStackerException extends FrameworkException {
         * @param               $code                   Error code
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Construct message
                $message = sprintf('[%s:%d] Stacker %s is not initialized.',
                        $messageArray[0]->__toString(),
index c5e0ea6a963dec239cf95b32985e6a6b4b009c84..4992cd68015fbd9b2226eeadb2623358aa66e304 100644 (file)
@@ -35,12 +35,12 @@ class InvalidStateInstanceException extends FrameworkException {
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Invalid state %s of type %s detected.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
+                       $messageArray[1],
                        gettype($mgArray[2])
                );
 
index 64f67930f734452fdef43bdcdc02caf896770416..9cef99e9f7a051a88439cdf6d7e43f445e69c75b 100644 (file)
@@ -36,7 +36,7 @@ class UnexpectedStateException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (Stateable $stateInstance, $code) {
+       public function __construct (Stateable $stateInstance, int $code) {
                // Construct the message
                $message = sprintf('[%s:%d] Unexpected state detected.',
                        $stateInstance->__toString(),
index cbc0e580a5f6e3acf429279a50a6fe7c12a2cb85..38d3b0f1bd4e646c3e3214dbae9eb1698e08170c 100644 (file)
@@ -31,21 +31,21 @@ class UnresolveableStateException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       An array with message parts
+        * @param       $messageArray   An array with message parts
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Prepare the message
                $message = sprintf('[%s:%d] Cannot resolve state <span class="exception_reason">%s (class name: %s)</span>.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[0]->getClassName()
+                       $messageArray[1],
+                       $messageArray[0]->getClassName()
                );
 
                // Set extra data
-               $this->setExtraData($msgArray[0]->getClassName() . ':' . $this->getLine());
+               $this->setExtraData($messageArray[0]->getClassName() . ':' . $this->getLine());
 
                // Call parent contructor with message
                parent::__construct($message, $code);
index 255451c4a7f85e8dbcad9a5954426d434e73ba96..b9fa675e6d7770b549431c9a20da87bd6e3174a4 100644 (file)
@@ -36,7 +36,7 @@ class BasePathReadProtectedException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Der Template-Basispfad %s ist lesegesch&uuml;tzt! Bitte Zugriffsrechte (CHMOD) &auml;ndern.',
                        $classArray[0]->__toString(),
index db3abcf21274afdf72cf511a479670898873ffdb..d87cfbefac51748e312b64a0ec1428215fcf69fa 100644 (file)
@@ -35,7 +35,7 @@ class InvalidDirectoryException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Path "%s" is no directory.',
                        $classArray[0]->__toString(),
index 17e05f2466603d8370aa9707665d1364f47ff8bc..30fd5542b5f86cdb216746fb0f80590c17cb60e9 100644 (file)
@@ -36,7 +36,7 @@ class NoVariableException extends FrameworkException {
         * @param       $code                   Code number for the exception
         * @return      void
         */
-       public function __construct (array $messageArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Variable %s is not set, cannot modify(?) its value to %s.',
                        $messageArray[0]->__toString(),
index 11f52768c5cb1db09dba5255f0a2be60e5bda8cc..3225203cd97eec393c4591b8f3813328d937fc8a 100644 (file)
@@ -32,17 +32,17 @@ class UnexpectedTemplateTypeException extends FrameworkException {
        /**
         * The constructor
         *
-        * @param       $msgArray       An array holding our informations
+        * @param       $messageArray   An array holding our informations
         * @param       $code           Code number for the exception
         * @return      void
         */
-       public function __construct (array $msgArray, $code) {
+       public function __construct (array $messageArray, int $code) {
                // Add a message around the missing class
                $message = sprintf('[%s:%d] Der Template-Typ %s entspricht nicht dem erwartetem Template-Typ %s.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[2]
+                       $messageArray[1],
+                       $messageArray[2]
                );
 
                // Call parent constructor
index 3423bc75e9318ed0de3ed8a2cae2a454556d5f26..c46db67e05d813547a23e18ce833886d5be936a3 100644 (file)
@@ -36,7 +36,7 @@ class UnsupportedTemplateEngineException extends FrameworkException {
         * @param       $code   Code number for the exception
         * @return      void
         */
-       public function __construct (FrameworkInterface $class, $code) {
+       public function __construct (FrameworkInterface $class, int $code) {
                // Add a message around the missing class
                $message = sprintf('Template-Engine %s not (yet) supported.',
                        $class->__toString()
index 81c1062b899ec20182f5ac5be3c802d231a49333..e942fe0deb201429b0531284b0af79ec78e0b2f8 100644 (file)
@@ -36,7 +36,7 @@ class AccountPasswordMismatchException extends FrameworkException {
         * @param       $code                           An optional code for better debugging
         * @return      void
         */
-       public function __construct (Filterable $filterInstance, $code) {
+       public function __construct (Filterable $filterInstance, int $code) {
                // Create the message
                $message = sprintf('[%s:%d] Supplied account password did not match with stored.',
                        $filterInstance->__toString(),
index d654f9458a184d321c11aaf375555956f421a676..f817e4ae889830877474fdac3b1219d4bac2b42a 100644 (file)
@@ -31,16 +31,16 @@ class UnexpectedGuestAccountException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       The non-optional message for the exception
+        * @param       $messageArray   The non-optional message for the exception
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code = 0) {
+       public function __construct (array $messageArray, $code = 0) {
                // Create the message
                $message = sprintf('[%s:%d] User %s is a guest account.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Make sure everything is assigned properly
index 4f49adbddb29af0713408fa50e88b7549bb75849..19d5736770607ce4be7cf257ae9e942fe2c7d50d 100644 (file)
@@ -31,16 +31,16 @@ class UserEmailMissingException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       The non-optional message for the exception
+        * @param       $messageArray   The non-optional message for the exception
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code = 0) {
+       public function __construct (array $messageArray, $code = 0) {
                // Create the message
                $message = sprintf('[%s:%d] User email %s was not found.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Make sure everything is assigned properly
index 689b0c78776bbad11623749cd68ed7d5edc103ce..7f1f5121c1f50805f128f9c1337721a8ef11dc7f 100644 (file)
@@ -33,17 +33,17 @@ class UserNoGuestException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       The non-optional message for the exception
+        * @param       $messageArray   The non-optional message for the exception
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code = 0) {
+       public function __construct (array $messageArray, $code = 0) {
                // Create the message
                $message = sprintf('[%s:%d] User %s is not a guest account: %s',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1],
-                       $msgArray[0]->getField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS)
+                       $messageArray[1],
+                       $messageArray[0]->getField(UserDatabaseWrapper::DB_COLUMN_USER_STATUS)
                );
 
                // Make sure everything is assigned properly
index 775d45df7f3c7d5cc6b86854f75cc79198b92a1f..62b787d08536e95cfe7606ffa7bede7d0d71ff5a 100644 (file)
@@ -31,16 +31,16 @@ class UserPasswordMismatchException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       The non-optional message for the exception
+        * @param       $messageArray   The non-optional message for the exception
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code = 0) {
+       public function __construct (array $messageArray, $code = 0) {
                // Create the message
                $message = sprintf('[%s:%d] Supplied password for user %s did not match with stored password.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]->getUserName()
+                       $messageArray[1]->getUserName()
                );
 
                // Make sure everything is assigned properly
index 56cdfd449d4fae61302af9517064d9812adb0590..aad7c357e26fd199fd8c45c2a15a247644ba9c82 100644 (file)
@@ -31,16 +31,16 @@ class UsernameMissingException extends FrameworkException {
        /**
         * The super constructor for all exceptions
         *
-        * @param       $msgArray       The non-optional message for the exception
+        * @param       $messageArray   The non-optional message for the exception
         * @param       $code           An optional code for better debugging
         * @return      void
         */
-       public function __construct (array $msgArray, $code = 0) {
+       public function __construct (array $messageArray, $code = 0) {
                // Create the message
                $message = sprintf('[%s:%d] Username %s was not found.',
-                       $msgArray[0]->__toString(),
+                       $messageArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $messageArray[1]
                );
 
                // Make sure everything is assigned properly
index d86a29e9d28e0511e73c3216064da970179a0f79..454c8d5c63f53cda8090886588e1476e7f1e0c4f 100644 (file)
@@ -35,7 +35,7 @@ class InvalidXmlNodeException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Extract attributes
                $attributes = '<em>None</em>';
                if ((is_array($classArray[2])) && (count($classArray[2]) > 0)) {
index 8c3e879e71064254c025d445e086f4eb96b65909..9d37f15189ffc12730f2d50a091ab4dec6b78aa1 100644 (file)
@@ -35,7 +35,7 @@ class XmlNodeMismatchException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Construct our message
                $message = sprintf('[%s:%d] XML nodes mismatch. Given: %s, Expected: %s',
                        $classArray[0]->__toString(),
index e01226f667043ff44443fd1f8323e055e8c62987..c9ca3e0ff0432c071000c5cb97b826edc160ab8d 100644 (file)
@@ -35,7 +35,7 @@ class XmlParserException extends FrameworkException {
         * @param       $code                   Error code
         * @return      void
         */
-       public function __construct (array $classArray, $code) {
+       public function __construct (array $classArray, int $code) {
                // Construct our message
                $message = sprintf('[%s:%d] XML Error: %s at line %d.',
                        $classArray[0]->__toString(),
index 30fb3ab5de9b1433bf274ac4a47c4cb681e8a190..964d639411b112b6fa9f5693a61d16f8bdab337f 100644 (file)
@@ -34,7 +34,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $wrapperConfigEntry             Configuration entry which hold the wrapper class' name
         * @return      void
         */
-       function setWrapperConfigEntry ($wrapperConfigEntry);
+       function setWrapperConfigEntry (string $wrapperConfigEntry);
 
        /**
         * Getter for wrapper class name
@@ -50,7 +50,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaKey    Criteria key
         * @return      $isSet                  Whether key is set
         */
-       function isKeySet ($criteriaType, $criteriaKey);
+       function isKeySet (string $criteriaType, string $criteriaKey);
 
        /**
         * Checks whether given key is set for 'choice' type
@@ -58,7 +58,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaKey    Criteria key
         * @return      $isSet                  Whether key is set
         */
-       function isChoiceKeySet ($criteriaKey);
+       function isChoiceKeySet (string $criteriaKey);
 
        /**
         * Checks whether given key is set for 'exclude' type
@@ -66,7 +66,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaKey    Criteria key
         * @return      $isSet                  Whether key is set
         */
-       function isExcludeKeySet ($criteriaKey);
+       function isExcludeKeySet (string $criteriaKey);
 
        /**
         * Getter for criteria array
@@ -74,7 +74,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $criteria
         */
-       function getCriteriaArray ($criteriaType = 'default');
+       function getCriteriaArray (string $criteriaType = 'default');
 
        /**
         * Getter for criteria array 'choice' type
@@ -96,7 +96,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaKey    Criteria key to unset
         * @return      void
         */
-       function unsetCriteria ($criteriaKey);
+       function unsetCriteria (string $criteriaKey);
 
        /**
         * Add criteria, this method converts dashes to underscores because dashes
@@ -107,7 +107,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      void
         */
-       function addCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default');
+       function addCriteria (string $criteriaKey, $criteriaValue, string $criteriaType = 'default');
 
        /**
         * Sets criteria, this method converts dashes to underscores because dashes
@@ -118,7 +118,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      void
         */
-       function setCriteria ($criteriaKey, $criteriaValue, $criteriaType = 'default');
+       function setCriteria (string $criteriaKey, $criteriaValue, string $criteriaType = 'default');
 
        /**
         * Add "choice" criteria, this method converts dashes to underscores because
@@ -128,7 +128,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaValue  Criteria value
         * @return      void
         */
-       function addChoiceCriteria ($criteriaKey, $criteriaValue);
+       function addChoiceCriteria (string $criteriaKey, $criteriaValue);
 
        /**
         * Add "exclude" criteria, this method converts dashes to underscores because
@@ -138,7 +138,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaValue  Criteria value
         * @return      void
         */
-       function addExcludeCriteria ($criteriaKey, $criteriaValue);
+       function addExcludeCriteria (string $criteriaKey, $criteriaValue);
 
        /**
         * Add configured criteria
@@ -148,7 +148,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      void
         */
-       function addConfiguredCriteria ($criteriaKey, $configEntry, $criteriaType = 'default');
+       function addConfiguredCriteria (string $criteriaKey, string $configEntry, string $criteriaType = 'default');
 
        /**
         * Get criteria element or false if not found
@@ -157,7 +157,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $value                  Whether the value of the critera or false
         */
-       function getCriteriaElemnent ($criteriaKey, $criteriaType = 'default');
+       function getCriteriaElemnent (string $criteriaKey, string $criteriaType = 'default');
 
        /**
         * Get criteria element or false if not found for 'choice' type
@@ -165,7 +165,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaKey    The requested criteria key
         * @return      $value                  Whether the value of the critera or false
         */
-       function getCriteriaChoiceElemnent ($criteriaKey);
+       function getCriteriaChoiceElemnent (string $criteriaKey);
 
        /**
         * Get criteria element or false if not found for 'exclude' type
@@ -173,7 +173,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaKey    The requested criteria key
         * @return      $value                  Whether the value of the critera or false
         */
-       function getCriteriaExcludeElemnent ($criteriaKey);
+       function getCriteriaExcludeElemnent (string $criteriaKey);
 
        /**
         * Checks whether given array entry matches
@@ -182,7 +182,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $matches                Whether the entry matches or not
         */
-       function ifEntryMatches (array $entryArray, $criteriaType = 'default');
+       function ifEntryMatches (array $entryArray, string $criteriaType = 'default');
 
        /**
         * Checks whether given array 'choice' entry matches
@@ -207,7 +207,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
         * @return      $cacheKey       The key suitable for the cache system
         */
-       function getCacheKey ($onlyKeys = array(), $criteriaType = 'default');
+       function getCacheKey (array $onlyKeys = [], string $criteriaType = 'default');
 
        /**
         * "Getter" for a cache key ('choice' type)
@@ -215,7 +215,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $onlyKeys       Only use these keys for a cache key
         * @return      $cacheKey       The key suitable for the cache system
         */
-       function getCacheKeyChoice ($onlyKeys = array());
+       function getCacheKeyChoice (array $onlyKeys = []);
 
        /**
         * "Getter" for a cache key ('exclude' type)
@@ -223,16 +223,7 @@ interface Criteria extends FrameworkInterface {
         * @param       $onlyKeys       Only use these keys for a cache key
         * @return      $cacheKey       The key suitable for the cache system
         */
-       function getCacheKeyExclude ($onlyKeys = array());
-
-       /**
-        * Count the criteria, e.g. useful to find out if a database query has no
-        * limitation (search criteria).
-        *
-        * @param       $criteriaType   Type of this criteria, can be one of 'default' (default), 'choice' or 'exclude'
-        * @return      $count  Count of all criteria entries
-        */
-       function count ($criteriaType = 'default');
+       function getCacheKeyExclude (array $onlyKeys = []);
 
        /**
         * Count 'choice' criteria, e.g. useful to find out if a database query
index c45908bbefef44dacd81c9ed7425804a1153ee2b..87352f00a6a47f66af74632192feae365448adb2 100644 (file)
@@ -51,7 +51,7 @@ interface DatabaseWrapper extends FrameworkInterface {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      $resultInstance         An instance of a database result class
         */
-       function doSelectByCriteria(Criteria $criteriaInstance, array $onlyKeys = array());
+       function doSelectByCriteria(Criteria $criteriaInstance, array $onlyKeys = []);
 
        /**
         * Count the numbers of rows we shall receive
@@ -60,7 +60,7 @@ interface DatabaseWrapper extends FrameworkInterface {
         * @param       $onlyKeys                       Only use these keys for a cache key
         * @return      $numRows                        Numbers of rows of database entries
         */
-       function doSelectCountByCriteria(Criteria $criteriaInstance, $onlyKeys = array());
+       function doSelectCountByCriteria(Criteria $criteriaInstance, array $onlyKeys = []);
 
        /**
         * Getter for primary key used in wrapped table
index 52a7af62aa7c653aa2ff7482298ffd170a1d86ac..a26a45916d83d05ea3753dde2e9549c977dda644 100644 (file)
@@ -41,7 +41,7 @@ interface FrameworkDirectory extends FrameworkInterface {
         * @param       $except         Some parts of a directory we want to ignore. Valid: directory and file names, other values will be silently ignored
         * @return      SplFileInfo             An instance of a SplFileInfo class
         */
-       function readDirectoryExcept (array $except = array());
+       function readDirectoryExcept (array $except = []);
 
        /**
         * Close a directory source and set it's instance to null and the path name