]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/class_BaseFrameworkSystem.php
Continued:
[core.git] / framework / main / classes / class_BaseFrameworkSystem.php
index 194ee491f16edff3825b8a113f7bd7db3d92554c..41648caa23b500a92999f4570b8fd086fd7cf543 100644 (file)
@@ -1037,7 +1037,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                }
@@ -1058,7 +1058,7 @@ Loaded includes:
         * @return      $isset          Whether the given key is set
         * @throws      InvalidArgumentException        If a parameter is not valid
         */
-       protected final function isGenericArrayKeySet (string $keyGroup, string $subGroup, $key) {
+       protected final function isGenericArrayKeySet (string $keyGroup, string $subGroup, string $key) {
                // Check parameter
                if (empty($keyGroup)) {
                        // Throw IAE
@@ -1141,7 +1141,7 @@ Loaded includes:
         * @return      void
         * @throws      InvalidArgumentException        If a parameter is not valid
         */
-       protected final function unsetGenericArrayKey (string $keyGroup, string $subGroup, $key) {
+       protected final function unsetGenericArrayKey (string $keyGroup, string $subGroup, string $key) {
                // Check parameter
                //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
                if (empty($keyGroup)) {
@@ -1181,7 +1181,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                }
@@ -1247,7 +1247,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                }
@@ -1347,7 +1347,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                } elseif (($forceInit === false) && ($this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element))) {
@@ -1369,7 +1369,7 @@ Loaded includes:
         * @return      $count          Number of array elements
         * @throws      InvalidArgumentException        If a parameter is not valid
         */
-       protected final function pushValueToGenericArrayKey (string $keyGroup, string $subGroup, $key, $value) {
+       protected final function pushValueToGenericArrayKey (string $keyGroup, string $subGroup, string $key, $value) {
                // Check parameter
                //* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',value[' . gettype($value) . ']=' . print_r($value, true));
                if (empty($keyGroup)) {
@@ -1418,7 +1418,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                } elseif (!$this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element)) {
@@ -1445,7 +1445,7 @@ Loaded includes:
         * @throws      InvalidArgumentException        If a parameter is not valid
         * @throws      BadMethodCallException  If key/sub group isn't there but this method is invoked
         */
-       protected final function popGenericArrayElement (string $keyGroup, string $subGroup, $key) {
+       protected final function popGenericArrayElement (string $keyGroup, string $subGroup, string $key) {
                // Check parameter
                //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
                if (empty($keyGroup)) {
@@ -1481,7 +1481,7 @@ Loaded includes:
         * @throws      InvalidArgumentException        If a parameter is not valid
         * @throws      BadMethodCallException  If key/sub group isn't there but this method is invoked
         */
-       protected final function shiftGenericArrayElement (string $keyGroup, string $subGroup, $key) {
+       protected final function shiftGenericArrayElement (string $keyGroup, string $subGroup, string $key) {
                // Check parameter
                //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
                if (empty($keyGroup)) {
@@ -1575,7 +1575,7 @@ Loaded includes:
         * @throws      InvalidArgumentException        If a parameter is not valid
         * @throws      BadMethodCallException  If key/sub group isn't there but this method is invoked
         */
-       protected final function countGenericArrayElements (string $keyGroup, string $subGroup, $key) {
+       protected final function countGenericArrayElements (string $keyGroup, string $subGroup, string $key) {
                // Check parameter
                //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
                if (empty($keyGroup)) {
@@ -1637,7 +1637,7 @@ Loaded includes:
         * @throws      InvalidArgumentException        If a parameter is not valid
         * @throws      BadMethodCallException  If key/sub group isn't there but this method is invoked
         */
-       protected final function setGenericArrayKey (string $keyGroup, string $subGroup, $key, $value) {
+       protected final function setGenericArrayKey (string $keyGroup, string $subGroup, string $key, $value) {
                // Check parameters
                //* NOISY-DEBUG: */ if (!is_object($value)) $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key . ',value[' . gettype($value) . ']=' . print_r($value, true));
                if (empty($keyGroup)) {
@@ -1668,7 +1668,7 @@ Loaded includes:
         * @throws      InvalidArgumentException        If a parameter is not valid
         * @throws      BadMethodCallException  If key/sub group isn't there but this method is invoked
         */
-       protected final function getGenericArrayKey (string $keyGroup, string $subGroup, $key) {
+       protected final function getGenericArrayKey (string $keyGroup, string $subGroup, string $key) {
                // Check parameters
                //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
                if (empty($keyGroup)) {
@@ -1712,7 +1712,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                } elseif (!$this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element)) {
@@ -1747,7 +1747,7 @@ Loaded includes:
                } elseif (empty($key)) {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "key" is empty');
-               } elseif (empty($element)) {
+               } elseif ($element === '') {
                        // Throw IAE
                        throw new InvalidArgumentException('Parameter "element" is empty');
                } elseif (!$this->isGenericArrayElementSet($keyGroup, $subGroup, $key, $element)) {
@@ -1793,7 +1793,7 @@ Loaded includes:
         * @param       $key            Key to check
         * @return      $isValid        Whether given sub group is valid
         */
-       protected final function isValidGenericArrayKey (string $keyGroup, string $subGroup, $key) {
+       protected final function isValidGenericArrayKey (string $keyGroup, string $subGroup, string $key) {
                // Check parameters
                //* NOISY-DEBUG: */ $this->outputLine('[' . __METHOD__ . ':' . __LINE__ . '] keyGroup=' . $keyGroup . ',subGroup=' . $subGroup . ',key=' . $key);
                if (empty($keyGroup)) {