@@ -6,7 +6,6 @@ |
||
| 6 | 6 | namespace Core\Service; |
| 7 | 7 | |
| 8 | 8 | use Phalcon\Config; |
| 9 | -use Phalcon\Di\FactoryDefault; |
|
| 10 | 9 | use Phalcon\Di\Injectable; |
| 11 | 10 | use Phalcon\DiInterface; |
| 12 | 11 | use Phalcon\Exception; |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | if ($di->has($name)) { |
| 94 | 94 | $di->get($name); |
| 95 | 95 | } else { |
| 96 | - throw new Exception("Service $name not found in config file"); |
|
| 96 | + throw new Exception("service $name not found in config file"); |
|
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | $dotenv->load(); |
| 14 | 14 | |
| 15 | 15 | defined('APPLICATION_ENV') || |
| 16 | -define('APPLICATION_ENV', getenv('APPLICATION_ENV') ? : 'production'); |
|
| 16 | +define('APPLICATION_ENV', getenv('APPLICATION_ENV') ?: 'production'); |
|
| 17 | 17 | |
| 18 | 18 | \define('IMAGES_SERVER', getenv('IMAGE_SERVER')); |
| 19 | 19 | \define('STATIC_SERVER', getenv('STATIC_SERVER')); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | public function init(array $modules, array $config) |
| 17 | 17 | { |
| 18 | 18 | $di = new \Phalcon\DI\FactoryDefault(); |
| 19 | - $di->setShared('appConfig', function() use ($config) { |
|
| 19 | + $di->setShared('appConfig', function () use ($config) { |
|
| 20 | 20 | return $config; |
| 21 | 21 | }); |
| 22 | 22 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $serviceLoader = new \Core\Service\LoaderService($configServices, $di); |
| 38 | 38 | $di->set('serviceLoader', $serviceLoader, true); |
| 39 | 39 | |
| 40 | - \define('VIEW_PATH', APP_PATH . '/views/'. $this->getPrefix() . '/'); |
|
| 40 | + \define('VIEW_PATH', APP_PATH . '/views/' . $this->getPrefix() . '/'); |
|
| 41 | 41 | |
| 42 | 42 | // Views config |
| 43 | 43 | $view = $di->get('view'); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | 'loader' => \Phalcon\Loader::class, |
| 9 | 9 | 'eventsManager' => \Phalcon\Events\Manager::class, |
| 10 | 10 | |
| 11 | - 'view' => function($di) { |
|
| 11 | + 'view' => function ($di) { |
|
| 12 | 12 | $view = new \Core\View\View(); |
| 13 | 13 | return $view->register($di); |
| 14 | 14 | }, |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | $compiler = $this->getCompiler(); |
| 10 | 10 | |
| 11 | - $compiler->addFunction('const', function($resolvedArgs) { |
|
| 11 | + $compiler->addFunction('const', function ($resolvedArgs) { |
|
| 12 | 12 | return $resolvedArgs; |
| 13 | 13 | }); |
| 14 | 14 | |