Completed
Push — master ( 375de1...c13e1e )
by Andrii
13:21
created
src/base/BinaryPhp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $path = parent::detectCommand($path);
48 48
 
49
-        return is_executable($path) ? $path : '/usr/bin/env php ' . $path;
49
+        return is_executable($path) ? $path : '/usr/bin/env php '.$path;
50 50
     }
51 51
 
52 52
     public function install()
53 53
     {
54 54
         if ($this->installer) {
55
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env php', $exitcode);
55
+            passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env php', $exitcode);
56 56
         } elseif ($this->download) {
57
-            $dest = Yii::getAlias('@root/' . $this->name . '.phar', false);
58
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode);
57
+            $dest = Yii::getAlias('@root/'.$this->name.'.phar', false);
58
+            passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode);
59 59
         } else {
60 60
             return parent::install();
61 61
         }
@@ -65,6 +65,6 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function getVcsignore()
67 67
     {
68
-        return $this->name . '.phar';
68
+        return $this->name.'.phar';
69 69
     }
70 70
 }
Please login to merge, or discard this patch.
src/controllers/DirectoryController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         foreach ($this->getItems() as $id => $config) {
41 41
             $defaults = [
42 42
                 'class' => isset($config['template']) || isset($config['copy']) ? 'template' : 'directory',
43
-                'file'  => $this->path . '/' . $id,
43
+                'file'  => $this->path.'/'.$id,
44 44
             ];
45 45
             if ($this->recursive) {
46 46
                 $defaults['recursive'] = $this->recursive;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function mkdir($path)
59 59
     {
60
-        Yii::warning('mkdir ' . $path, 'dir');
60
+        Yii::warning('mkdir '.$path, 'dir');
61 61
         mkdir($path);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/controllers/GithubController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function getFull_name()
35 35
     {
36
-        return $this->getVendor() . '/' . $this->getName();
36
+        return $this->getVendor().'/'.$this->getName();
37 37
     }
38 38
 
39 39
     public function setFullName($value)
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function actionCreate()
96 96
     {
97
-        $res = $this->request('POST', '/orgs/' . $this->getVendor() . '/repos', [
97
+        $res = $this->request('POST', '/orgs/'.$this->getVendor().'/repos', [
98 98
             'name'        => $this->getName(),
99 99
             'description' => $this->getDescription(),
100 100
         ]);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function actionClone($repo)
116 116
     {
117
-        return $this->passthru('git', ['clone', '[email protected]:' . $repo]);
117
+        return $this->passthru('git', ['clone', '[email protected]:'.$repo]);
118 118
     }
119 119
 
120 120
     /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public static function exists($repo)
136 136
     {
137
-        return !static::exec('git', ['ls-remote', '[email protected]:' . $repo], true);
137
+        return !static::exec('git', ['ls-remote', '[email protected]:'.$repo], true);
138 138
     }
139 139
 
140 140
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             return $wait;
150 150
         }
151 151
 
152
-        return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [
152
+        return $this->request('POST', '/repos/'.$this->getFull_name().'/releases', [
153 153
             'tag_name'  => $version,
154 154
             'name'      => $version,
155 155
             'body'      => $notes,
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
 
171 171
     public function request($method, $path, $data)
172 172
     {
173
-        $url = 'https://api.github.com' . $path;
173
+        $url = 'https://api.github.com'.$path;
174 174
 
175
-        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token ' . $this->getToken(), '--data', Json::encode($data), $url]);
175
+        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token '.$this->getToken(), '--data', Json::encode($data), $url]);
176 176
     }
177 177
 
178 178
     public function findToken()
Please login to merge, or discard this patch.
src/base/File.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected static $_extension2type = [
125 125
         'json'      => 'json',
126
-        'yml'       => 'yaml',  /// first one is preferred
126
+        'yml'       => 'yaml', /// first one is preferred
127 127
         'yaml'      => 'yaml',
128 128
         'xml'       => 'xml',
129 129
         'xml.dist'  => 'xml',
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 
177 177
     public function setBasename($basename)
178 178
     {
179
-        $this->setPath($this->_dirname . '/' . $basename);
179
+        $this->setPath($this->_dirname.'/'.$basename);
180 180
     }
181 181
 
182 182
     public function getBasename()
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
     public function setDirname($dirname)
188 188
     {
189
-        $this->setPath($dirname . '/' . $this->_basename);
189
+        $this->setPath($dirname.'/'.$this->_basename);
190 190
     }
191 191
 
192 192
     public function getDirname()
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
     public function setFilename($filename)
198 198
     {
199
-        $this->setPath($this->_dirname . '/' . $filename . '.' . $this->_extension);
199
+        $this->setPath($this->_dirname.'/'.$filename.'.'.$this->_extension);
200 200
     }
201 201
 
202 202
     public function getFilename()
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 
207 207
     public function setExtension($extension)
208 208
     {
209
-        $this->setPath($this->_dirname . '/' . $this->_filename . '.' . $extension);
209
+        $this->setPath($this->_dirname.'/'.$this->_filename.'.'.$extension);
210 210
     }
211 211
 
212 212
     public function getExtension()
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     {
258 258
         if (!is_object($this->_handler)) {
259 259
             $this->_handler = Yii::createObject([
260
-                'class'    => 'hidev\handlers\\' . $this->getCtype() . 'Handler',
260
+                'class'    => 'hidev\handlers\\'.$this->getCtype().'Handler',
261 261
                 'template' => $this->template,
262 262
                 'goal'     => $this->goal,
263 263
             ]);
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 
361 361
     public function chown($value)
362 362
     {
363
-        $ownergroup = $this->getOwner() . ':' . $this->getGroup();
363
+        $ownergroup = $this->getOwner().':'.$this->getGroup();
364 364
         if (in_array((string) $value, [$ownergroup, $this->getOwner(), $this->getUid()], true)) {
365 365
             return;
366 366
         }
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
@@ -49,16 +49,16 @@
 block discarded – undo
49 49
     {
50 50
         $path = parent::detectCommand($path);
51 51
 
52
-        return is_executable($path) ? $path : '/usr/bin/env python ' . $path;
52
+        return is_executable($path) ? $path : '/usr/bin/env python '.$path;
53 53
     }
54 54
 
55 55
     public function install()
56 56
     {
57 57
         if ($this->installer) {
58
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env python', $exitcode);
58
+            passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env python', $exitcode);
59 59
         } elseif ($this->download) {
60
-            $dest = Yii::getAlias('@root/' . $this->name, false);
61
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode);
60
+            $dest = Yii::getAlias('@root/'.$this->name, false);
61
+            passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode);
62 62
         } else {
63 63
             $args = ['install'];
64 64
             if (!$_SERVER['VIRTUAL_ENV']) {
Please login to merge, or discard this patch.
src/controllers/OwnVersionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function actionMake($version = null)
27 27
     {
28
-        $path = dirname(dirname(__DIR__)) . '/bin/hidev';
28
+        $path = dirname(dirname(__DIR__)).'/bin/hidev';
29 29
         echo "HiDev $this->version $this->date $this->time $this->hash\n";
30 30
         echo "run from $path\n";
31 31
     }
Please login to merge, or discard this patch.
src/config/bootstrap.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,24 +8,24 @@
 block discarded – undo
8 8
  * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9 9
  */
10 10
 
11
-require_once __DIR__ . '/defines.php';
11
+require_once __DIR__.'/defines.php';
12 12
 
13 13
 if (!defined('HIDEV_VENDOR_DIR')) {
14
-    foreach ([dirname(dirname(__DIR__)) . '/vendor', dirname(dirname(dirname(dirname(__DIR__))))] as $dir) {
15
-        if (file_exists($dir . '/autoload.php')) {
14
+    foreach ([dirname(dirname(__DIR__)).'/vendor', dirname(dirname(dirname(dirname(__DIR__))))] as $dir) {
15
+        if (file_exists($dir.'/autoload.php')) {
16 16
             define('HIDEV_VENDOR_DIR', $dir);
17 17
             break;
18 18
         }
19 19
     }
20 20
 }
21 21
 
22
-if (!defined('HIDEV_VENDOR_DIR') || !file_exists(HIDEV_VENDOR_DIR . '/autoload.php')) {
22
+if (!defined('HIDEV_VENDOR_DIR') || !file_exists(HIDEV_VENDOR_DIR.'/autoload.php')) {
23 23
     fwrite(STDERR, "Run composer to set up dependencies!\n");
24 24
     exit(1);
25 25
 }
26 26
 
27
-require_once HIDEV_VENDOR_DIR . '/autoload.php';
28
-require_once HIDEV_VENDOR_DIR . '/yiisoft/yii2/Yii.php';
27
+require_once HIDEV_VENDOR_DIR.'/autoload.php';
28
+require_once HIDEV_VENDOR_DIR.'/yiisoft/yii2/Yii.php';
29 29
 
30 30
 Yii::setAlias('@hidev', dirname(__DIR__));
31 31
 Yii::setAlias('@vendor', HIDEV_VENDOR_DIR);
Please login to merge, or discard this patch.
src/helpers/FileHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         }
33 33
 
34 34
         $level = $die ? Logger::LEVEL_ERROR : Logger::LEVEL_WARNING;
35
-        Yii::getLogger()->log('Failed to read file: ' . $path, $level, 'file');
35
+        Yii::getLogger()->log('Failed to read file: '.$path, $level, 'file');
36 36
 
37 37
         return false;
38 38
     }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                 unlink($tmp);
65 65
             }
66 66
         }
67
-        Yii::warning('Written file: ' . $path, 'file');
67
+        Yii::warning('Written file: '.$path, 'file');
68 68
 
69 69
         return true;
70 70
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $path = rtrim(trim($path), '/');
82 82
         if (!file_exists($path)) {
83 83
             mkdir($path, 0777, true);
84
-            Yii::warning('Created dir:  ' . $path . '/', 'file');
84
+            Yii::warning('Created dir:  '.$path.'/', 'file');
85 85
 
86 86
             return true;
87 87
         }
Please login to merge, or discard this patch.
src/base/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
     {
36 36
         $ref = new ReflectionClass($this);
37 37
 
38
-        return dirname($ref->getFileName()) . '/views';
38
+        return dirname($ref->getFileName()).'/views';
39 39
     }
40 40
 }
Please login to merge, or discard this patch.