Completed
Push — dev ( 8a0e98...4f1f6b )
by Zach
02:15
created
src/Config/Config.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Yarak\Config;
4 4
 
5
-use Phalcon\DI;
6 5
 use Yarak\Exceptions\InvalidConfig;
7 6
 use Phalcon\Config as PhalconConfig;
8 7
 
Please login to merge, or discard this patch.
app/config/services.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 use Phalcon\Mvc\Model\Manager as ModelsManager;
5 5
 use Phalcon\Mvc\Model\Metadata\Memory as MetaDataAdapter;
6 6
 
7
-$di->setShared('config', function () {
7
+$di->setShared('config', function() {
8 8
     return include APP_PATH.'/config/config.php';
9 9
 });
10 10
 
11
-$di->setShared('db', function () {
11
+$di->setShared('db', function() {
12 12
     $config = $this->getConfig();
13 13
 
14 14
     $class = 'Phalcon\Db\Adapter\Pdo\\'.$config->database->adapter;
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
     return $connection;
33 33
 });
34 34
 
35
-$di->setShared('modelsMetadata', function () {
35
+$di->setShared('modelsMetadata', function() {
36 36
     return new MetaDataAdapter();
37 37
 });
38 38
 
39
- $di->set('modelsManager', function () {
39
+ $di->set('modelsManager', function() {
40 40
      return new ModelsManager();
41 41
  });
42 42
 
43
-$di->set('yarak', function () {
43
+$di->set('yarak', function() {
44 44
     return new Kernel();
45 45
 });
Please login to merge, or discard this patch.