Completed
Push — master ( ff6e90...57ee5c )
by Andrii
03:56
created
src/config/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@
 block discarded – undo
7 7
  * @license   BSD-3-Clause
8 8
  * @copyright Copyright (c) 2015-2018, HiQDev (http://hiqdev.com/)
9 9
  */
10
-require_once __DIR__ . '/defines.php';
10
+require_once __DIR__.'/defines.php';
11 11
 
12 12
 if (!defined('HIDEV_VENDOR_DIR')) {
13
-    foreach ([dirname(dirname(__DIR__)) . '/vendor', dirname(dirname(dirname(dirname(__DIR__))))] as $dir) {
14
-        if (file_exists($dir . '/autoload.php')) {
13
+    foreach ([dirname(dirname(__DIR__)).'/vendor', dirname(dirname(dirname(dirname(__DIR__))))] as $dir) {
14
+        if (file_exists($dir.'/autoload.php')) {
15 15
             define('HIDEV_VENDOR_DIR', $dir);
16 16
             break;
17 17
         }
18 18
     }
19 19
 }
20 20
 
21
-if (!defined('HIDEV_VENDOR_DIR') || !file_exists(HIDEV_VENDOR_DIR . '/autoload.php')) {
21
+if (!defined('HIDEV_VENDOR_DIR') || !file_exists(HIDEV_VENDOR_DIR.'/autoload.php')) {
22 22
     fwrite(STDERR, "Run composer to set up dependencies!\n");
23 23
     exit(1);
24 24
 }
25 25
 
26
-require_once HIDEV_VENDOR_DIR . '/autoload.php';
27
-require_once HIDEV_VENDOR_DIR . '/yiisoft/yii2/Yii.php';
26
+require_once HIDEV_VENDOR_DIR.'/autoload.php';
27
+require_once HIDEV_VENDOR_DIR.'/yiisoft/yii2/Yii.php';
28 28
 
29 29
 Yii::setAlias('@hidev', dirname(__DIR__));
30 30
 Yii::setAlias('@vendor', HIDEV_VENDOR_DIR);
Please login to merge, or discard this patch.
src/config/basis.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 $__class = Helper::isYii20() ? 'class' : '__class';
18 18
 
19
-$runtimePath = (substr(__DIR__, 0, 7) === 'phar://' ? dirname($_SERVER['SCRIPT_NAME']) : dirname(HIDEV_VENDOR_DIR)) . '/.hidev/runtime';
19
+$runtimePath = (substr(__DIR__, 0, 7) === 'phar://' ? dirname($_SERVER['SCRIPT_NAME']) : dirname(HIDEV_VENDOR_DIR)).'/.hidev/runtime';
20 20
 
21 21
 return array_filter([
22 22
     'id'                    => 'hidev',
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         ],
106 106
         'own.version' => [
107 107
             'class' => \hidev\components\Version::class,
108
-            'file'  => dirname(dirname(__DIR__)) . '/version',
108
+            'file'  => dirname(dirname(__DIR__)).'/version',
109 109
         ],
110 110
     ]),
111 111
     'controllerMap' => [
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     ],
126 126
     'container' => [
127 127
         'singletons' => [
128
-            \hidev\components\AbstractVcs::class => function () {
128
+            \hidev\components\AbstractVcs::class => function() {
129 129
                 $detectedVCS = 'git'; /// TODO actual detection to be added
130 130
                 return Yii::$app->get($detectedVCS);
131 131
             },
Please login to merge, or discard this patch.
src/log/OldConsoleTarget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if ($style) {
40 40
             $message = Console::ansiFormat($message, $style);
41 41
         }
42
-        Console::stdout($message . "\n");
42
+        Console::stdout($message."\n");
43 43
     }
44 44
 
45 45
     public function getLevel()
Please login to merge, or discard this patch.
src/helpers/Hidev.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 {
20 20
     public static function exec($route, array $args, $wait = false)
21 21
     {
22
-        $path = dirname(__DIR__) . '/bin/hidev';
22
+        $path = dirname(__DIR__).'/bin/hidev';
23 23
         $command = "$path $route";
24 24
         foreach ($args as $arg) {
25
-            $command .= ' ' . escapeshellarg($arg);
25
+            $command .= ' '.escapeshellarg($arg);
26 26
         }
27 27
         $amp = $wait ? '' : '&';
28 28
 
Please login to merge, or discard this patch.
src/log/ConsoleTarget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         if ($this->exportContext[$level] ?? false) {
48 48
             $export = VarDumper::export($context);
49
-            Console::stdout($export . "\n");
49
+            Console::stdout($export."\n");
50 50
         }
51 51
     }
52 52
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         } else {
63 63
             return;
64 64
         }
65
-        Console::stdout($message . "\n");
65
+        Console::stdout($message."\n");
66 66
     }
67 67
 
68 68
     protected function getContextMessage()
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
@@ -48,16 +48,16 @@
 block discarded – undo
48 48
     {
49 49
         $path = parent::detectCommand($path);
50 50
 
51
-        return is_executable($path) ? $path : '/usr/bin/env python ' . $path;
51
+        return is_executable($path) ? $path : '/usr/bin/env python '.$path;
52 52
     }
53 53
 
54 54
     public function install()
55 55
     {
56 56
         if ($this->installer) {
57
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env python', $exitcode);
57
+            passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env python', $exitcode);
58 58
         } elseif ($this->download) {
59
-            $dest = Yii::getAlias('@root/' . $this->name, false);
60
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode);
59
+            $dest = Yii::getAlias('@root/'.$this->name, false);
60
+            passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode);
61 61
         } else {
62 62
             $args = ['pip', 'install'];
63 63
             if (!$_SERVER['VIRTUAL_ENV']) {
Please login to merge, or discard this patch.
src/components/GitHub.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getFull_name()
37 37
     {
38
-        return $this->getVendor() . '/' . $this->getName();
38
+        return $this->getVendor().'/'.$this->getName();
39 39
     }
40 40
 
41 41
     public function setFullName($value)
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     public function createRepo(string $repo = null)
112 112
     {
113 113
         $end = $this->getVendorType() === 'org'
114
-            ?'/orgs/' . $this->getVendor() . '/repos'
114
+            ? '/orgs/'.$this->getVendor().'/repos'
115 115
             : '/user/repos'
116 116
         ;
117 117
         var_dump($end);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     public function cloneRepo($repo)
137 137
     {
138
-        return $this->passthru('git', ['clone', '[email protected]:' . $repo]);
138
+        return $this->passthru('git', ['clone', '[email protected]:'.$repo]);
139 139
     }
140 140
 
141 141
     /**
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public static function exists($repo)
157 157
     {
158
-        return !static::exec('git', ['ls-remote', '[email protected]:' . $repo], true);
158
+        return !static::exec('git', ['ls-remote', '[email protected]:'.$repo], true);
159 159
     }
160 160
 
161 161
     /**
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
             return $wait;
172 172
         }
173 173
 
174
-        return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [
174
+        return $this->request('POST', '/repos/'.$this->getFull_name().'/releases', [
175 175
             'tag_name'  => $release,
176 176
             'name'      => $release,
177 177
             'body'      => $notes,
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
 
193 193
     public function request($method, $path, $data)
194 194
     {
195
-        $url = 'https://api.github.com' . $path;
195
+        $url = 'https://api.github.com'.$path;
196 196
 
197
-        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token ' . $this->getToken(), '--data', Json::encode($data), $url]);
197
+        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token '.$this->getToken(), '--data', Json::encode($data), $url]);
198 198
     }
199 199
 
200 200
     public function findToken()
Please login to merge, or discard this patch.