@@ -55,7 +55,7 @@ |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @param $services |
|
58 | + * @param Config $services |
|
59 | 59 | * @param array $autoLoad |
60 | 60 | * |
61 | 61 | * @throws 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 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $di->set('dispatcher', $dispatcher); |
32 | 32 | |
33 | 33 | // Views config |
34 | - \define('VIEW_PATH', __DIR__ . '/Views/'); |
|
34 | + \define('VIEW_PATH', __DIR__ . '/Views/'); |
|
35 | 35 | |
36 | 36 | /** @var View $view */ |
37 | 37 | $view = $di->get('view'); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | // for all modules |
45 | 45 | foreach ($this->modules as $moduleName => $module) { |
46 | 46 | // gets route class |
47 | - [ 'collections' => $collectionClass ] = $module; |
|
47 | + ['collections' => $collectionClass] = $module; |
|
48 | 48 | |
49 | 49 | /** @var CollectionsInterface $route */ |
50 | 50 | $route = new $collectionClass(); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | // checks the implementation of the interface |
53 | 53 | if ($route instanceof CollectionsInterface === false) { |
54 | - throw new Exception("Route $route must be instanceof CollectionsInterface"); |
|
54 | + throw new Exception("route $route must be instanceof CollectionsInterface"); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | // gets all collections for the module |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $module = new $moduleClass(); |
105 | 105 | |
106 | 106 | if ($module instanceof MicroModuleInterface === false) { |
107 | - throw new Exception("Module $moduleClass must be instanceof MicroModuleInterface"); |
|
107 | + throw new Exception("module $moduleClass must be instanceof MicroModuleInterface"); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | // init module |