protected function loadPresets()
    {
        if (!isset($this->presets)) {
            $this->presets = json_decode(
                $this->driverComposite->getFileContent($this->settings['repositoryUrl'], $this->settings['filePath']),
                true
            );
            if (empty($this->presets)) {
                throw new Exception('Could not load presets', 1407782202);
            }
        }
        return $this->presets;
    }
protected function loadPresets()
    {
        if (!isset($this->presets)) {
            $this->presets = json_decode(
                $this->driverComposite->getFileContent($this->settings['repositoryUrl'], $this->settings['filePath']),
                true
            );
            if (empty($this->presets)) {
                throw new Exception('Could not load presets', 1407782202);
            }
        }
        return $this->presets;
    }
protected function loadPresets ( ) { if ( ! isset ( $ this -> presets ) ) { $ this -> presets = json_decode ( $ this -> driverComposite -> getFileContent ( $ this -> settings [ 'repositoryUrl' ] , $ this -> settings [ 'filePath' ] ) , true ) ; if ( empty ( $ this -> presets ) ) { throw new Exception ( 'Could not load presets' , 1407782202 ) ; } } return $ this -> presets ; }
Load the presets.

@return array $presets
@throws Exception
Load the presets .