Completed
Branch YONA-1 (daa132)
by Alexander
02:02
created
core/Service/LoaderService.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
modules/AdminKernel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
modules/Application/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
     },
Please login to merge, or discard this patch.
core/View/Volt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.