Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed May 17, 2020
1 parent 6a47e4b commit 3564863
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/TargetDirectoryLocator.php
Expand Up @@ -25,15 +25,16 @@ public function __construct(Config $config, PhiveXmlConfig $phiveXmlConfig, Opti
* @throws ConfigException
*/
public function getTargetDirectory(): Directory {

switch (true) {
case $this->cliOptions->hasOption('target'): {
$directory = new Directory($this->cliOptions->getOption('target'));

break;
}

case $this->phiveXmlConfig->hasTargetDirectory(): {
$directory = $this->phiveXmlConfig->getTargetDirectory();

break;
}

Expand All @@ -43,6 +44,7 @@ public function getTargetDirectory(): Directory {
}

$directory->ensureExists();

return $directory;
}
}

0 comments on commit 3564863

Please sign in to comment.