Completed
Push — master ( 375de1...c13e1e )
by Andrii
13:21
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/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/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/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/controllers/CommandController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         foreach ($commands as $command) {
37 37
             $command = trim($command);
38 38
             if ($command) {
39
-                passthru(($this->sudo ? 'sudo ' : '') . $command);
39
+                passthru(($this->sudo ? 'sudo ' : '').$command);
40 40
             }
41 41
         }
42 42
     }
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/handlers/BaseHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,11 +146,11 @@
 block discarded – undo
146 146
     public function read($path, $asArray = false)
147 147
     {
148 148
         if (file_exists($path)) {
149
-            Yii::info('Read file: ' . $path, 'file');
149
+            Yii::info('Read file: '.$path, 'file');
150 150
 
151 151
             return $asArray ? file($path) : file_get_contents($path);
152 152
         } else {
153
-            Yii::error('Couldn\'t read file: ' . $path, 'file');
153
+            Yii::error('Couldn\'t read file: '.$path, 'file');
154 154
 
155 155
             return;
156 156
         }
Please login to merge, or discard this patch.
src/controllers/VersionController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     public function actionSave()
53 53
     {
54
-        $this->getFile()->write(implode(' ', [$this->version, $this->date, $this->time, $this->zone, $this->hash]) . "\n");
54
+        $this->getFile()->write(implode(' ', [$this->version, $this->date, $this->time, $this->zone, $this->hash])."\n");
55 55
     }
56 56
 
57 57
     public function setVersion($version = null)
Please login to merge, or discard this patch.