Permalink
Browse files

coding style: fixed spaces & use statements order

  • Loading branch information...
dg committed Jul 11, 2017
1 parent 51f1e05 commit 35e3541b9a4780cca30b0b5301a7aa589adc9581
Showing with 2 additions and 6 deletions.
  1. +0 −2 app/presenters/Error4xxPresenter.php
  2. +1 −2 app/presenters/ErrorPresenter.php
  3. +1 −2 app/router/RouterFactory.php
@@ -9,7 +9,6 @@
class Error4xxPresenter extends Nette\Application\UI\Presenter
{
public function startup()
{
parent::startup();
@@ -25,5 +24,4 @@ public function renderDefault(Nette\Application\BadRequestException $exception)
$file = __DIR__ . "/templates/Error/{$exception->getCode()}.latte";
$this->template->setFile(is_file($file) ? $file : __DIR__ . '/templates/Error/4xx.latte');
}
}
@@ -28,7 +28,7 @@ public function run(Nette\Application\Request $request): Nette\Application\IResp
$exception = $request->getParameter('exception');
if ($exception instanceof Nette\Application\BadRequestException) {
list($module, , $sep) = Nette\Application\Helpers::splitName($request->getPresenterName());
[$module, , $sep] = Nette\Application\Helpers::splitName($request->getPresenterName());
return new Responses\ForwardResponse($request->setPresenterName($module . $sep . 'Error4xx'));
}
@@ -37,5 +37,4 @@ public function run(Nette\Application\Request $request): Nette\Application\IResp
require __DIR__ . '/templates/Error/500.phtml';
});
}
}
@@ -5,8 +5,8 @@
namespace App;
use Nette;
use Nette\Application\Routers\RouteList;
use Nette\Application\Routers\Route;
use Nette\Application\Routers\RouteList;
class RouterFactory
@@ -22,5 +22,4 @@ public static function createRouter()
$router[] = new Route('<presenter>/<action>[/<id>]', 'Homepage:default');
return $router;
}
}

0 comments on commit 35e3541

Please sign in to comment.