Completed
Push — master ( 48aefa...87bdd5 )
by Andrii
03:08
created
src/config/basis.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     'name'                  => 'HiDev',
18 18
     'basePath'              => dirname(__DIR__),
19 19
     'vendorPath'            => HIDEV_VENDOR_DIR,
20
-    'runtimePath'           => dirname(HIDEV_VENDOR_DIR) . '/.hidev/runtime',
20
+    'runtimePath'           => dirname(HIDEV_VENDOR_DIR).'/.hidev/runtime',
21 21
     'controllerNamespace'   => 'hidev\\controllers',
22 22
     'defaultRoute'          => 'default',
23 23
     'bootstrap'             => ['log'],
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         ],
87 87
         'own.version' => [
88 88
             'class' => \hidev\components\Version::class,
89
-            'file'  => dirname(dirname(__DIR__)) . '/version',
89
+            'file'  => dirname(dirname(__DIR__)).'/version',
90 90
         ],
91 91
         'codeception' => [
92 92
             'class' => \hidev\components\WTF::class,
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     ],
104 104
     'container' => [
105 105
         'singletons' => [
106
-            \hidev\components\AbstractVcs::class => function () {
106
+            \hidev\components\AbstractVcs::class => function() {
107 107
                 $detectedVCS = 'git';
108 108
                 return Yii::$app->get($detectedVCS);
109 109
             },
Please login to merge, or discard this patch.
src/base/Interpolator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
                 $this->do($item);
31 31
             }
32 32
         } elseif (is_string($data)) {
33
-            $data = preg_replace_callback('/\\$(\\w+)\\[\'(.+?)\'\\]/', function ($matches) {
33
+            $data = preg_replace_callback('/\\$(\\w+)\\[\'(.+?)\'\\]/', function($matches) {
34 34
                 return $this->get($matches[1], $matches[2]);
35 35
             }, $data);
36 36
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,11 +23,13 @@
 block discarded – undo
23 23
         $this->do($data);
24 24
     }
25 25
 
26
-    private function do(&$data)
26
+    private function do {
27
+        (&$data)
27 28
     {
28 29
         if (is_array($data)) {
29 30
             foreach ($data as &$item) {
30 31
                 $this->do($item);
32
+    }
31 33
             }
32 34
         } elseif (is_string($data)) {
33 35
             $data = preg_replace_callback('/\\$(\\w+)\\[\'(.+?)\'\\]/', function ($matches) {
Please login to merge, or discard this patch.
src/base/Directory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
             $type = isset($config['template']) || isset($config['copy']) ? 'ConfigFile' : 'Directory';
29 29
             $defaults = [
30 30
                 'class' => "hidev\\base\\$type",
31
-                'path'  => $this->path . '/' . $id,
31
+                'path'  => $this->path.'/'.$id,
32 32
             ];
33 33
             $config = array_merge($defaults, $config ?: []);
34 34
             $object = Yii::createObject($config);
Please login to merge, or discard this patch.