Completed
Push — master ( ecfb8f...133dd2 )
by Andrii
03:07
created
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/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.
src/controllers/VendorController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     public function getTitleAndHomepage()
34 34
     {
35
-        return $this->title . ($this->homepage ? ' (' . $this->homepage . ')' : '');
35
+        return $this->title.($this->homepage ? ' ('.$this->homepage.')' : '');
36 36
     }
37 37
 
38 38
     public function getDescription()
Please login to merge, or discard this patch.
src/base/Logger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             if ($style) {
47 47
                 $message = Console::ansiFormat($message, $style);
48 48
             }
49
-            Console::stdout($message . "\n");
49
+            Console::stdout($message."\n");
50 50
         }
51 51
         parent::log($message, $level, $category);
52 52
     }
Please login to merge, or discard this patch.
src/handlers/CopyHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function renderPath($path, $data)
25 25
     {
26 26
         copy($data->getCopy(), $path);
27
-        Yii::warning('Copied file: ' . $path);
27
+        Yii::warning('Copied file: '.$path);
28 28
     }
29 29
 
30 30
     /**
Please login to merge, or discard this patch.
src/base/BinaryPhp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@
 block discarded – undo
66 66
     {
67 67
         $path = parent::detectCommand($path);
68 68
 
69
-        return is_executable($path) ? $path : '/usr/bin/env php ' . $path;
69
+        return is_executable($path) ? $path : '/usr/bin/env php '.$path;
70 70
     }
71 71
 
72 72
     public function install()
73 73
     {
74 74
         if ($this->installer) {
75
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env php', $exitcode);
75
+            passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env php', $exitcode);
76 76
         } elseif ($this->download) {
77
-            $dest = Yii::getAlias('@root/' . $this->name . '.phar', false);
78
-            passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode);
77
+            $dest = Yii::getAlias('@root/'.$this->name.'.phar', false);
78
+            passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode);
79 79
         } else {
80 80
             return parent::install();
81 81
         }
Please login to merge, or discard this patch.