Applied fixes from StyleCI
Dieser Commit ist enthalten in:
Ursprung
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
|
||||
{
|
||||
|
@ -147,11 +147,11 @@ abstract class Entry
|
||||
public function getRelativePath()
|
||||
{
|
||||
$root = $this;
|
||||
while($root->getParent() != null) {
|
||||
while ($root->getParent() != null) {
|
||||
$root = $root->getParent();
|
||||
}
|
||||
|
||||
return substr($this->path, strlen($root->getPath()) +1);
|
||||
return substr($this->path, strlen($root->getPath()) + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren