protected function buildSettings($keys, $value) {
        $result = [];

        $index = array_shift($keys);

        if (!isset($keys[0])) {
            $result[$index] = $value;
        } else {
            $result[$index] = $this->buildSettings($keys, $value);
        }

        return $result;
    }
protected function buildSettings($keys, $value) {
        $result = [];

        $index = array_shift($keys);

        if (!isset($keys[0])) {
            $result[$index] = $value;
        } else {
            $result[$index] = $this->buildSettings($keys, $value);
        }

        return $result;
    }
protected function buildSettings ( $ keys , $ value ) { $ result = [ ] ; $ index = array_shift ( $ keys ) ; if ( ! isset ( $ keys [ 0 ] ) ) { $ result [ $ index ] = $ value ; } else { $ result [ $ index ] = $ this -> buildSettings ( $ keys , $ value ) ; } return $ result ; }
Create associative array for settings

@param string[] $keys Setting path
@param mixed $value Value

@return array
Create associative array for settings