Classes/Settings/Settings.php
protected function getNested(string $key)
    {
        $parts = explode('.', $key);
        $result = $this->settings[$parts[0]];

        for ($i = 1; $i < count($parts); ++$i) {
            $value = $parts[$i];

            if (is_array($result) && array_key_exists($value, $result)) {
                $result = $result[$value];
                continue;
            }

            $result = null;
            break;
        }

        return $result;
    }
protected function getNested(string $key)
    {
        $parts = explode('.', $key);
        $result = $this->settings[$parts[0]];

        for ($i = 1; $i < count($parts); ++$i) {
            $value = $parts[$i];

            if (is_array($result) && array_key_exists($value, $result)) {
                $result = $result[$value];
                continue;
            }

            $result = null;
            break;
        }

        return $result;
    }
protected function getNested ( string $ key ) { $ parts = explode ( '.' , $ key ) ; $ result = $ this -> settings [ $ parts [ 0 ] ] ; for ( $ i = 1 ; $ i < count ( $ parts ) ; ++ $ i ) { $ value = $ parts [ $ i ] ; if ( is_array ( $ result ) && array_key_exists ( $ value , $ result ) ) { $ result = $ result [ $ value ] ; continue ; } $ result = null ; break ; } return $ result ; }
Retrieves nested data from the settings.

@param string $key The key to recieve

@return mixed
Retrieves nested data from the settings .