Applied fixes from StyleCI

This commit is contained in:
onigoetz 2016-07-29 16:44:35 -04:00 committed by Stéphane Goetz
parent 2081acc3c5
commit 6d871c3f62
8 changed files with 24 additions and 6 deletions

View File

@ -1,11 +1,11 @@
<?php namespace Todaymade\Daux\Console;
use Symfony\Component\Console\Application as SymfonyApplication;
use Symfony\Component\Console\Input\InputInterface;
class Application extends SymfonyApplication
{
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN') {
public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
{
parent::__construct($name, $version);
$this->add(new Generate());

View File

@ -1,9 +1,6 @@
<?php namespace Todaymade\Daux\Server;
use Symfony\Component\Console\Output\NullOutput;
use Symfony\Component\Process\ProcessUtils;
use Symfony\Component\Process\PhpExecutableFinder;
use Todaymade\Daux\Config;
use Todaymade\Daux\Daux;
use Todaymade\Daux\DauxHelper;
use Todaymade\Daux\Exception;

View File

@ -1,6 +1,5 @@
<?php namespace Todaymade\Daux\Tree;
abstract class ContentAbstract extends Entry
{
/** @var string */

View File

@ -6,12 +6,14 @@
<h1><?= $page['breadcrumbs'] ? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
</div>
<?php
} else {
?>
<div class="Page__header">
<h1><?= $page['breadcrumbs'] ? $this->get_breadcrumb_title($page, $base_page) : $page['title'] ?></h1>
</div>
<?php
} ?>
<div class="s-content">
@ -24,13 +26,16 @@
<ul class="Pager">
<?php if (!empty($page['prev'])) {
?><li class=Pager--prev><a href="<?= $base_url . $page['prev']->getUrl() ?>">Previous</a></li><?php
} ?>
<?php if (!empty($page['next'])) {
?><li class=Pager--next><a href="<?= $base_url . $page['next']->getUrl() ?>">Next</a></li><?php
} ?>
</ul>
</nav>
<?php
} ?>
</article>

View File

@ -9,6 +9,7 @@
?>
<a href="https://github.com/<?= $params['html']['repo']; ?>" target="_blank" id="github-ribbon" class="Github hidden-print"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<?php
} ?>
<div class="Homepage">
@ -46,6 +47,7 @@
?>
<div id="tipue_search_content" style="display:none"></div>
<?php
} ?>
<div class="doc_content s-content">
@ -66,6 +68,7 @@
} ?>
</ul>
<?php
} ?>
<?php if (!empty($params['html']['twitter'])) {
@ -77,9 +80,11 @@
<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:162px; height:20px;" src="https://platform.twitter.com/widgets/follow_button.html?screen_name=<?= $handle; ?>&amp;show_count=false"></iframe>
</div>
<?php
} ?>
</div>
<?php
} ?>
</div>
</div>

View File

@ -30,6 +30,7 @@
<!-- Tipue Search -->
<link href="<?= $base_url; ?>tipuesearch/tipuesearch.css" rel="stylesheet">
<?php
} ?>
<!--[if lt IE 9]>
@ -79,6 +80,7 @@
});
</script>
<?php
} ?>
</body>

View File

@ -4,6 +4,7 @@
?>
<a href="https://github.com/<?= $params['html']['repo']; ?>" target="_blank" id="github-ribbon" class="Github hidden-print"><img src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<?php
} ?>
<div class="Navbar hidden-print">
@ -43,8 +44,10 @@
<a href="<?= $url ?>" target="_blank"><?= $name ?></a>
<br />
<?php
} ?>
<?php
} ?>
<?php if ($params['html']['toggle_code']) {
@ -60,13 +63,16 @@
<button class="Button Button--default Button--small CodeToggler__button CodeToggler__button--float">Inline</button>
</div>
<?php
} else {
?>
<a class="CodeToggler__button CodeToggler__button--main" href="#">Show Code Blocks Inline</a><br>
<?php
} ?>
</div>
<?php
} ?>
<?php if (!empty($params['html']['twitter'])) {
@ -79,9 +85,11 @@
<br />
<br />
<?php
} ?>
</div>
<?php
} ?>
</div>
</div>
@ -96,6 +104,7 @@
?>
<div id="tipue_search_content" style="display:none"></div>
<?php
} ?>
<div class="doc_content">

View File

@ -7,4 +7,5 @@
<input type="search" id="tipue_search_input" class="Search__field" placeholder="Search..." autocomplete="on" results=25 autosave=text_search>
</div>
<?php
} ?>