Completed
Push — master ( 447b48...ea4f97 )
by Andrii
17:22 queued 02:17
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/base/Binary.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $command = $this->getCommand();
67 67
         if (is_string($args)) {
68
-            return $command . ' ' . trim($args);
68
+            return $command.' '.trim($args);
69 69
         }
70 70
 
71 71
         foreach ($args as $arg) {
72 72
             if ($arg instanceof ModifierInterface) {
73 73
                 $command = $arg->modify($command);
74 74
             } else {
75
-                $command .= ' ' . escapeshellarg($arg);
75
+                $command .= ' '.escapeshellarg($arg);
76 76
             }
77 77
         }
78 78
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
     public function install()
83 83
     {
84
-        throw new InvalidConfigException('Don\'t know how to install ' . $this->name);
84
+        throw new InvalidConfigException('Don\'t know how to install '.$this->name);
85 85
     }
86 86
 
87 87
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function detectPath($name)
115 115
     {
116
-        return exec('which ' . $name) ?: null;
116
+        return exec('which '.$name) ?: null;
117 117
     }
118 118
 
119 119
     /**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             $path = $this->getPath();
149 149
         }
150 150
         if (!$path || !file_exists($path)) {
151
-            throw new InvalidConfigException('Failed to find how to run ' . $this->name);
151
+            throw new InvalidConfigException('Failed to find how to run '.$this->name);
152 152
         }
153 153
 
154 154
         return $path;
Please login to merge, or discard this patch.
src/modifiers/Sudo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 {
16 16
     public function modify($command)
17 17
     {
18
-        return 'sudo ' . $command;
18
+        return 'sudo '.$command;
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
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/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.
src/base/Component.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
     {
35 35
         $ref = new ReflectionClass($this);
36 36
 
37
-        return dirname(dirname($ref->getFileName())) . '/views';
37
+        return dirname(dirname($ref->getFileName())).'/views';
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/components/Vendor.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.