Completed
Push — master ( 2aa843...683412 )
by Andrii
03:09
created
src/handlers/JsonHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function renderType($data)
25 25
     {
26
-        return Json::encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . "\n";
26
+        return Json::encode($data, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)."\n";
27 27
     }
28 28
 
29 29
     /**
Please login to merge, or discard this patch.
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/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/GithubController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     public function getFull_name()
36 36
     {
37
-        return $this->getVendor() . '/' . $this->getName();
37
+        return $this->getVendor().'/'.$this->getName();
38 38
     }
39 39
 
40 40
     public function setFullName($value)
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function actionCreate()
97 97
     {
98
-        $res = $this->request('POST', '/orgs/' . $this->getVendor() . '/repos', [
98
+        $res = $this->request('POST', '/orgs/'.$this->getVendor().'/repos', [
99 99
             'name'        => $this->getName(),
100 100
             'description' => $this->getDescription(),
101 101
         ]);
@@ -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
     public function actionRelease($version = null)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             return $wait;
149 149
         }
150 150
 
151
-        return $this->request('POST', '/repos/' . $this->getFull_name() . '/releases', [
151
+        return $this->request('POST', '/repos/'.$this->getFull_name().'/releases', [
152 152
             'tag_name'  => $version,
153 153
             'name'      => $version,
154 154
             'body'      => $notes,
@@ -169,9 +169,9 @@  discard block
 block discarded – undo
169 169
 
170 170
     public function request($method, $path, $data)
171 171
     {
172
-        $url = 'https://api.github.com' . $path;
172
+        $url = 'https://api.github.com'.$path;
173 173
 
174
-        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token ' . $this->getToken(), '--data', Json::encode($data), $url]);
174
+        return $this->passthru('curl', ['-X', $method, '-H', 'Authorization: token '.$this->getToken(), '--data', Json::encode($data), $url]);
175 175
     }
176 176
 
177 177
     public function findToken()
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/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.