Code Duplication    Length = 9-9 lines in 2 locations

framework/Koch/Config/AbstractConfig.php 1 location

@@ 96-104 (lines=9) @@
93
        $value = \Koch\Functions\Functions::findKeyInArray($keyname, $this->config);
94
95
        // return value or default
96
        if (empty($value) === false) {
97
            return $value;
98
        } elseif ($default_one !== null) {
99
            return $default_one;
100
        } elseif ($default_two !== null) {
101
            return $default_two;
102
        } else {
103
            return;
104
        }
105
    }
106
107
    /**

framework/Koch/Module/AbstractController.php 1 location

@@ 240-248 (lines=9) @@
237
        $value = \Koch\Functions\Functions::array_find_element_by_key($keyname, self::$moduleconfig);
238
239
        // return value or default
240
        if (empty($value) === false) {
241
            return $value;
242
        } elseif ($default_one !== null) {
243
            return $default_one;
244
        } elseif ($default_two !== null) {
245
            return $default_two;
246
        } else {
247
            return;
248
        }
249
    }
250
251
    /**