Completed
Push — dev ( 8a0e98...4f1f6b )
by Zach
02:15
created
src/Config/Config.php 2 patches
Doc Comments   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,6 @@  discard block
 block discarded – undo
44 44
     /**
45 45
      * Private constructor.
46 46
      *
47
-     * @param array $configArray
48 47
      */
49 48
     private function __construct()
50 49
     {
@@ -69,7 +68,6 @@  discard block
 block discarded – undo
69 68
     /**
70 69
      * Get instance of self with config array set.
71 70
      *
72
-     * @param array $configArray
73 71
      *
74 72
      * @return Config
75 73
      */
@@ -112,9 +110,9 @@  discard block
 block discarded – undo
112 110
     /**
113 111
      * Get a value by key from config.
114 112
      *
115
-     * @param string|array $key
113
+     * @param string $key
116 114
      *
117
-     * @return mixed
115
+     * @return string
118 116
      */
119 117
     public function get($key)
120 118
     {
@@ -271,7 +269,7 @@  discard block
 block discarded – undo
271 269
     /**
272 270
      * Validate that a setting exists.
273 271
      *
274
-     * @param array $settings
272
+     * @param string[] $settings
275 273
      *
276 274
      * @throws InvalidConfig
277 275
      */
Please login to merge, or discard this 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 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
     return new MetaDataAdapter();
37 37
 });
38 38
 
39
- $di->set('modelsManager', function () {
40
-     return new ModelsManager();
41
- });
39
+    $di->set('modelsManager', function () {
40
+        return new ModelsManager();
41
+    });
42 42
 
43 43
 $di->set('yarak', function () {
44 44
     return new Kernel();
Please login to merge, or discard this 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.