Completed
Push — master ( 900d18...1ab4f8 )
by Andrii
03:26
created
src/handlers/GitignoreHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $res = '';
49 49
         foreach ($comments as $comment => $items) {
50 50
             ksort($items);
51
-            $res .= static::renderComment($comment) . implode("\n", $items) . "\n";
51
+            $res .= static::renderComment($comment).implode("\n", $items)."\n";
52 52
         }
53 53
 
54 54
         return ltrim($res);
@@ -56,6 +56,6 @@  discard block
 block discarded – undo
56 56
 
57 57
     public static function renderComment($comment)
58 58
     {
59
-        return "\n#" . ($comment[0] === '#' ? '' : ' ') . "$comment\n";
59
+        return "\n#".($comment[0] === '#' ? '' : ' ')."$comment\n";
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
src/controllers/VcsignoreController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         $items = [];
39 39
         foreach ($this->takeGoal('binaries')->keys() as $name) {
40
-            $items[$name . '.phar'] = 'PHARs';
40
+            $items[$name.'.phar'] = 'PHARs';
41 41
         }
42 42
         unset($items['git.phar']);
43 43
         $this->takeVcs()->setIgnore($items);
Please login to merge, or discard this patch.
src/controllers/InitController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                 $exists = false;
39 39
             }
40 40
             if ($exists) {
41
-                $this->setItem('vendorRequire', str_pad($vendorPlugin . ':', 23) . ' "*"');
41
+                $this->setItem('vendorRequire', str_pad($vendorPlugin.':', 23).' "*"');
42 42
                 $this->setItem('novendor', true);
43 43
             }
44 44
         }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $this->package = $package;
47 47
         }
48 48
         if (!$this->package || !$this->vendor) {
49
-            throw new InvalidParamException('Wrong vendor/package given: ' . $name);
49
+            throw new InvalidParamException('Wrong vendor/package given: '.$name);
50 50
         }
51 51
     }
52 52
 
Please login to merge, or discard this patch.
src/controllers/PackageController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $cur = (integer) date('Y');
35 35
         $old = (integer) $this->year;
36 36
 
37
-        return ($old && $old < $cur ? $this->year . '-' : '') . $cur;
37
+        return ($old && $old < $cur ? $this->year.'-' : '').$cur;
38 38
     }
39 39
 
40 40
     public function getYear()
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function getIssues()
51 51
     {
52
-        return $this->getItem('issues') ?: ($this->source . '/issues');
52
+        return $this->getItem('issues') ?: ($this->source.'/issues');
53 53
     }
54 54
 
55 55
     public function getWiki()
56 56
     {
57
-        return $this->getItem('wiki') ?: ($this->source . '/wiki');
57
+        return $this->getItem('wiki') ?: ($this->source.'/wiki');
58 58
     }
59 59
 
60 60
     public function getKeywords()
@@ -64,12 +64,12 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function getFullName()
66 66
     {
67
-        return $this->getItem('fullName') ?: ($this->takeVendor()->name . '/' . $this->name);
67
+        return $this->getItem('fullName') ?: ($this->takeVendor()->name.'/'.$this->name);
68 68
     }
69 69
 
70 70
     public function getSource()
71 71
     {
72
-        return $this->getItem('source') ?: ('https://github.com/' . $this->takeGoal('github')->full_name);
72
+        return $this->getItem('source') ?: ('https://github.com/'.$this->takeGoal('github')->full_name);
73 73
     }
74 74
 
75 75
     public function getVersion()
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     public static function defaultNamespace($vendor, $package)
86 86
     {
87
-        return preg_replace('/[^a-zA-Z0-9\\\\]+/', '', $vendor . strtr("-$package", '-', '\\'));
87
+        return preg_replace('/[^a-zA-Z0-9\\\\]+/', '', $vendor.strtr("-$package", '-', '\\'));
88 88
     }
89 89
 
90 90
     public function getSrc()
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     public function getHomepage()
98 98
     {
99
-        return $this->getItem('homepage') ?: ($this->isDomain() ? 'http://' . $this->name . '/' : $this->getSource());
99
+        return $this->getItem('homepage') ?: ($this->isDomain() ? 'http://'.$this->name.'/' : $this->getSource());
100 100
     }
101 101
 
102 102
     public function getForum()
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
     public function getRepositoryUrl($file)
133 133
     {
134
-        return 'https://github.com/' . $this->getFullName() . '/blob/master/' . $file;
134
+        return 'https://github.com/'.$this->getFullName().'/blob/master/'.$file;
135 135
     }
136 136
     public function getAuthors()
137 137
     {
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
@@ -77,8 +77,8 @@  discard block
 block discarded – undo
77 77
         Yii::setAlias('@prjdir', $this->getPrjDir());
78 78
         $config = $this->takeConfig()->rawItem('package');
79 79
         $alias  = strtr($config['namespace'], '\\', '/');
80
-        if ($alias && !Yii::getAlias('@' . $alias, false)) {
81
-            $srcdir = Yii::getAlias('@prjdir/' . ($config['src'] ?: 'src'));
80
+        if ($alias && !Yii::getAlias('@'.$alias, false)) {
81
+            $srcdir = Yii::getAlias('@prjdir/'.($config['src'] ?: 'src'));
82 82
             Yii::setAlias($alias, $srcdir);
83 83
         }
84 84
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     protected function findPrjDir()
149 149
     {
150 150
         $configDir = '.hidev';
151
-        for ($i = 0;$i < 9;++$i) {
151
+        for ($i = 0; $i < 9; ++$i) {
152 152
             if (is_dir($configDir)) {
153 153
                 $this->prjdir = getcwd();
154 154
                 return $this->prjdir;
Please login to merge, or discard this patch.
src/controllers/CommitsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
         $first = true;
41 41
         foreach ($history as $tag => $value) {
42 42
             if (substr($tag, 0, strlen($this->_version)) === $this->_version) {
43
-                Yii::error('Version already there: ' . $this->_version);
43
+                Yii::error('Version already there: '.$this->_version);
44 44
                 return 0;
45 45
             }
46 46
             if ($first) {
47 47
                 $first = false;
48 48
                 $new[$tag] = ['tag' => $tag];
49
-                $tag = $this->_version . $this->getHandler()->renderDate('today');
49
+                $tag = $this->_version.$this->getHandler()->renderDate('today');
50 50
                 $value['tag'] = $tag;
51 51
             }
52 52
             $new[$tag] = $value;
Please login to merge, or discard this patch.
src/controllers/GenerateController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         $a = pathinfo($template);
22 22
 
23
-        return $a['dirname'] . '/' . $a['filename'] . $extension;
23
+        return $a['dirname'].'/'.$a['filename'].$extension;
24 24
     }
25 25
 
26 26
     public function actionPerform($template = null, $file = null)
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']) ? 'template' : 'directory',
43
-                'file'  => $this->path . '/' . $id,
43
+                'file'  => $this->path.'/'.$id,
44 44
             ];
45 45
             $goal = $this->takeConfig()->createItem($id, array_merge($defaults, $config ?: []));
46 46
             $goal->perform();
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
     public function mkdir($path)
51 51
     {
52
-        Yii::warning('mkdir ' . $path, 'dir');
52
+        Yii::warning('mkdir '.$path, 'dir');
53 53
         mkdir($path);
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/controllers/VersionController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@
 block discarded – undo
36 36
     {
37 37
         $v = trim($this->exec('git', ['log', '-n', '1', '--pretty=%ai %H %s'])[0]);
38 38
         list($date, $time, $zone, $hash, $commit) = explode(' ', $v, 5);
39
-        if (!$this->exists() || !in_array($commit, ['minor', 'version bump to ' . $this->version], true)) {
39
+        if (!$this->exists() || !in_array($commit, ['minor', 'version bump to '.$this->version], true)) {
40 40
             if ($hash !== $this->hash) {
41 41
                 $this->version = 'dev';
42 42
             }
43 43
             $version = $version ?: $this->takeGoal('bump')->version ?: $this->version ?: 'dev';
44
-            $this->getFile()->write(implode(' ', [$version, $date, $time, $zone, $hash]) . "\n");
44
+            $this->getFile()->write(implode(' ', [$version, $date, $time, $zone, $hash])."\n");
45 45
         }
46 46
     }
47 47
 }
Please login to merge, or discard this patch.