Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienlucas committed Aug 21, 2020
1 parent 0c6c1d3 commit c9325a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public function __invoke(RegistrationInterface $api, SimpleXMLElement $config =
$api->addStubFile($stubFilePath);
}

if(isset($config->twigCachePath)) {
static::$twig_cache_path = getcwd() . DIRECTORY_SEPARATOR . ltrim((string) $config->twigCachePath, DIRECTORY_SEPARATOR);
if(!is_dir(static::$twig_cache_path) || !is_readable(static::$twig_cache_path)) {
if (isset($config->twigCachePath)) {
static::$twig_cache_path = getcwd().DIRECTORY_SEPARATOR.ltrim((string) $config->twigCachePath, DIRECTORY_SEPARATOR);
if (!is_dir(static::$twig_cache_path) || !is_readable(static::$twig_cache_path)) {
throw new ConfigException(sprintf('The twig directory %s is missing or not readable.', static::$twig_cache_path));
}

Expand Down

0 comments on commit c9325a4

Please sign in to comment.