Applied fixes from StyleCI
This commit is contained in:
parent
6a83c1fe18
commit
5b75fd0d10
@ -100,12 +100,13 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
|
||||
// Absolute urls, shouldn't either
|
||||
if ($this->isExternalUrl($url)) {
|
||||
$element->setAttribute('class', 'external');
|
||||
|
||||
return $element;
|
||||
}
|
||||
|
||||
// if there's a hash component in the url, ensure we
|
||||
// don't put that part through the resolver.
|
||||
$urlAndHash = explode("#", $url);
|
||||
$urlAndHash = explode('#', $url);
|
||||
$url = $urlAndHash[0];
|
||||
|
||||
try {
|
||||
@ -120,7 +121,7 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
|
||||
}
|
||||
|
||||
if (isset($urlAndHash[1])) {
|
||||
$url .= "#" . $urlAndHash[1];
|
||||
$url .= '#' . $urlAndHash[1];
|
||||
}
|
||||
|
||||
$element->setAttribute('href', $url);
|
||||
|
@ -34,7 +34,7 @@ class Generator implements \Todaymade\Daux\Format\Base\Generator
|
||||
$confluence = $config->getConfluenceConfiguration();
|
||||
|
||||
if ($confluence == null) {
|
||||
throw new \RuntimeException("You must specify your Confluence configuration");
|
||||
throw new \RuntimeException('You must specify your Confluence configuration');
|
||||
}
|
||||
|
||||
$mandatory = ['space_id', 'base_url', 'user', 'pass', 'prefix'];
|
||||
@ -46,7 +46,7 @@ class Generator implements \Todaymade\Daux\Format\Base\Generator
|
||||
}
|
||||
|
||||
if (count($errors)) {
|
||||
throw new \RuntimeException("The following options are mandatory for confluence : '" . join("', '", $errors) . "'");
|
||||
throw new \RuntimeException("The following options are mandatory for confluence : '" . implode("', '", $errors) . "'");
|
||||
}
|
||||
|
||||
if (!array_key_exists('ancestor_id', $confluence) && !array_key_exists('root_id', $confluence)) {
|
||||
|
@ -41,7 +41,8 @@ class Generator implements \Todaymade\Daux\Format\Base\Generator, LiveGenerator
|
||||
];
|
||||
}
|
||||
|
||||
protected function ensureEmptyDestination($destination) {
|
||||
protected function ensureEmptyDestination($destination)
|
||||
{
|
||||
if (is_dir($destination)) {
|
||||
GeneratorHelper::rmdir($destination);
|
||||
} else {
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
use RuntimeException;
|
||||
use SplFileInfo;
|
||||
use Todaymade\Daux\Daux;
|
||||
use Todaymade\Daux\DauxHelper;
|
||||
|
||||
class Builder
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
use ArrayIterator;
|
||||
use RuntimeException;
|
||||
use Todaymade\Daux\Daux;
|
||||
|
||||
class Directory extends Entry implements \ArrayAccess, \IteratorAggregate
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user