Skip to content
Permalink
Browse files

coding style: fixed spaces & use statements order

  • Loading branch information...
dg committed Jul 11, 2017
1 parent e4a31f8 commit e7d3c14d1e14b4de5aa0ca84475aea9cf123b73b
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Nette\Application\Routers\Route;
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
namespace App\Model;
@@ -40,5 +39,4 @@ public function insert($values)
{
return $this->findAll()->insert($values);
}
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
namespace App\Model;
@@ -45,5 +44,4 @@ public function authenticate(array $credentials): Security\IIdentity
unset($arr['password']);
return new Security\Identity($row->id, NULL, $arr);
}
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
namespace App\Presenters;
@@ -152,5 +151,4 @@ public function formCancelled()
{
$this->redirect('default');
}
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
namespace App\Presenters;
@@ -55,5 +54,4 @@ public function actionOut()
$this->flashMessage('You have been signed out.');
$this->redirect('in');
}
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
// let bootstrap create Dependency Injection container
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Nette\Application\Routers\SimpleRouter;
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Nette\Application\UI;
@@ -150,5 +149,4 @@ public function saveState(array &$params): void
$params['order'] = implode('.', $params['order']);
}
}
}
@@ -1,12 +1,9 @@
<?php
declare(strict_types=1);
class DefaultPresenter extends Nette\Application\UI\Presenter
{
public function renderDefault()
{
$this->redrawControl('round');
@@ -31,5 +28,4 @@ public function gameOver($sender, $round)
$this->template->flash = 'Congratulations!';
$this->redrawControl('flash');
}
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
// let bootstrap create Dependency Injection container
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Nette\Application\Routers;
@@ -10,7 +9,6 @@
*/
class TemplateRouter extends Routers\RouteList
{
public function __construct($path, $cachePath)
{
if (is_file($cacheFile = $cachePath . '/routes.php')) {
@@ -47,5 +45,4 @@ public function scanRoutes($path)
}
return $routes;
}
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
// Nette Framework Microblog example
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Nette\Application\Routers\Route;
@@ -1,10 +1,8 @@
<?php
declare(strict_types=1);
namespace DemoApp\Module\Admin\Presenters;
class DefaultPresenter extends \DemoApp\Module\Base\Presenters\BasePresenter
{
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
namespace DemoApp\Module\Base\Presenters;
@@ -9,7 +8,6 @@
abstract class BasePresenter extends Nette\Application\UI\Presenter
{
protected function beforeRender()
{
$this->template->viewName = $this->getView();
@@ -24,5 +22,4 @@ protected function beforeRender()
$this->template->presenterName = substr($this->getName(), $a + 1);
}
}
}
@@ -1,10 +1,8 @@
<?php
declare(strict_types=1);
namespace DemoApp\Module\Front\Export\Presenters;
class DefaultPresenter extends \DemoApp\Module\Base\Presenters\BasePresenter
{
}
@@ -1,10 +1,8 @@
<?php
declare(strict_types=1);
namespace DemoApp\Module\Front\Presenters;
class CatalogListPresenter extends \DemoApp\Module\Base\Presenters\BasePresenter
{
}
@@ -1,10 +1,8 @@
<?php
declare(strict_types=1);
namespace DemoApp\Module\Front\Presenters;
class DefaultPresenter extends \DemoApp\Module\Base\Presenters\BasePresenter
{
}
@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
// let bootstrap create Dependency Injection container

0 comments on commit e7d3c14

Please sign in to comment.
You can’t perform that action at this time.