@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | ->setInject(FALSE); |
146 | 146 | |
147 | 147 | $loaders = $this->loadFromFile(__DIR__ . '/config/loaders.neon'); |
148 | - $this->loadLoaders($loaders, $config['loaders'] ? : array_keys($loaders)); |
|
148 | + $this->loadLoaders($loaders, $config['loaders'] ?: array_keys($loaders)); |
|
149 | 149 | |
150 | 150 | if ($this->isRegisteredConsoleExtension()) { |
151 | 151 | $this->loadConsole($config); |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | |
264 | 264 | $this->beforeCompileLogging($config); |
265 | 265 | |
266 | - $registerToLatte = function (Nette\DI\ServiceDefinition $def) { |
|
266 | + $registerToLatte = function(Nette\DI\ServiceDefinition $def) { |
|
267 | 267 | $def |
268 | 268 | ->addSetup('?->onCompile[] = function($engine) { Kdyby\Translation\Latte\TranslateMacros::install($engine->getCompiler()); }', array('@self')) |
269 | 269 | ->addSetup('addFilter', array('translate', array($this->prefix('@helpers'), 'translate'))) |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | */ |
484 | 484 | public static function register(Nette\Configurator $configurator) |
485 | 485 | { |
486 | - $configurator->onCompile[] = function ($config, Nette\DI\Compiler $compiler) { |
|
486 | + $configurator->onCompile[] = function($config, Nette\DI\Compiler $compiler) { |
|
487 | 487 | $compiler->addExtension('translation', new TranslationExtension()); |
488 | 488 | }; |
489 | 489 | } |