Completed
Push — master ( e41aa3...4e75e9 )
by Andrii
02:33
created
src/base/Application.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,6 @@  discard block
 block discarded – undo
86 86
 
87 87
     /**
88 88
      * Load extra config files.
89
-     * @param array $config
90 89
      */
91 90
     public function loadExtraVendor($dir)
92 91
     {
@@ -185,8 +184,8 @@  discard block
 block discarded – undo
185 184
 
186 185
     /**
187 186
      * Run request.
188
-     * @param string|array $query
189
-     * @return Response
187
+     * @param string $query
188
+     * @return \yii\console\Response
190 189
      */
191 190
     public function runRequest($query)
192 191
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     public static function readExtraVendor($dir)
72 72
     {
73
-        return static::readExtraConfig($dir . '/hiqdev/config/hidev.php');
73
+        return static::readExtraConfig($dir.'/hiqdev/config/hidev.php');
74 74
     }
75 75
 
76 76
     public static function readExtraConfig($path)
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         foreach (['params', 'aliases', 'modules', 'components'] as $key) {
107 107
             if (isset($config[$key])) {
108
-                $this->{'setExtra' . ucfirst($key)}($config[$key]);
108
+                $this->{'setExtra'.ucfirst($key)}($config[$key]);
109 109
             }
110 110
         }
111 111
 
Please login to merge, or discard this patch.
src/config/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     'name'                  => 'HiDev',
15 15
     'basePath'              => dirname(__DIR__),
16 16
     'vendorPath'            => HIDEV_VENDOR_DIR,
17
-    'runtimePath'           => substr(__DIR__, 0, 7) === 'phar://' ? dirname($_SERVER['SCRIPT_NAME']) : dirname(HIDEV_VENDOR_DIR) . '/runtime',
17
+    'runtimePath'           => substr(__DIR__, 0, 7) === 'phar://' ? dirname($_SERVER['SCRIPT_NAME']) : dirname(HIDEV_VENDOR_DIR).'/runtime',
18 18
     'enableCoreCommands'    => false,
19 19
     'controllerNamespace'   => 'hidev\\controllers',
20 20
     'defaultRoute'          => 'default',
Please login to merge, or discard this patch.
src/helpers/FileHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         if (!is_file($path) || file_get_contents($path) !== $content) {
33 33
             static::mkdir(dirname($path));
34 34
             file_put_contents($path, $content);
35
-            Yii::warning('Written file: ' . $path, 'file');
35
+            Yii::warning('Written file: '.$path, 'file');
36 36
 
37 37
             return true;
38 38
         }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $path = rtrim(trim($path), '/');
53 53
         if (!file_exists($path)) {
54 54
             mkdir($path, 0777, true);
55
-            Yii::warning('Created dir:  ' . $path . '/', 'file');
55
+            Yii::warning('Created dir:  '.$path.'/', 'file');
56 56
 
57 57
             return true;
58 58
         }
Please login to merge, or discard this patch.
src/controllers/VersionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     public function actionSave()
53 53
     {
54
-        $this->getFile()->write(implode(' ', [$this->version, $this->date, $this->time, $this->zone, $this->hash]) . "\n");
54
+        $this->getFile()->write(implode(' ', [$this->version, $this->date, $this->time, $this->zone, $this->hash])."\n");
55 55
     }
56 56
 
57 57
     public function setVersion($version = null)
Please login to merge, or discard this patch.
src/controllers/InitController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $this->package = $package;
50 50
         }
51 51
         if (!$this->package || !$this->vendor) {
52
-            throw new InvalidParamException('Wrong vendor/package given: ' . $name);
52
+            throw new InvalidParamException('Wrong vendor/package given: '.$name);
53 53
         }
54 54
     }
55 55
 
Please login to merge, or discard this patch.
src/base/BinaryPython.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,16 +70,16 @@
 block discarded – undo
70 70
     {
71 71
         $path = parent::detectCommand($path);
72 72
 
73
-        return is_executable($path) ? $path : '/usr/bin/env python ' . $path;
73
+        return is_executable($path) ? $path : '/usr/bin/env python '.$path;
74 74
     }
75 75
 
76 76
     public function install()
77 77
     {
78 78
         if ($this->installer) {
79
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env python', $exitcode);
79
+            passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env python', $exitcode);
80 80
         } elseif ($this->download) {
81
-            $dest = Yii::getAlias('@root/' . $this->name, false);
82
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode);
81
+            $dest = Yii::getAlias('@root/'.$this->name, false);
82
+            passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode);
83 83
         } else {
84 84
             passthru("/usr/bin/pip install {$this->package}", $exitcode);
85 85
         }
Please login to merge, or discard this patch.
src/controllers/StartController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
         Yii::setAlias('@root', $this->getRootDir());
80 80
         $config = $this->takeConfig()->rawItem('package');
81 81
         $alias  = strtr($config['namespace'], '\\', '/');
82
-        if ($alias && !Yii::getAlias('@' . $alias, false)) {
83
-            $srcdir = Yii::getAlias('@root/' . ($config['src'] ?: 'src'));
82
+        if ($alias && !Yii::getAlias('@'.$alias, false)) {
83
+            $srcdir = Yii::getAlias('@root/'.($config['src'] ?: 'src'));
84 84
             Yii::setAlias($alias, $srcdir);
85 85
         }
86 86
         $aliases = $this->takeConfig()->rawItem('aliases');
@@ -213,6 +213,6 @@  discard block
 block discarded – undo
213 213
 
214 214
     public function buildRootPath($subpath)
215 215
     {
216
-        return $this->getRootDir() . DIRECTORY_SEPARATOR . $subpath;
216
+        return $this->getRootDir().DIRECTORY_SEPARATOR.$subpath;
217 217
     }
218 218
 }
Please login to merge, or discard this patch.