Test Failed
Push — master ( ecdf37...a6f320 )
by
unknown
46s queued 12s
created
src/LTDBeget/vim/Vim.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,10 +69,10 @@  discard block
 block discarded – undo
69 69
     public function __construct(Options $options = NULL)
70 70
     {
71 71
         $editor = shell_exec('which vim');
72
-        if(empty($editor)) {
72
+        if (empty($editor)) {
73 73
             throw new \LogicException('Install vim');
74 74
         }
75
-        $this->editor  =  trim($editor);
75
+        $this->editor  = trim($editor);
76 76
         $this->options = $options ?? new Options();
77 77
     }
78 78
 
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     public function __destruct()
132 132
     {
133 133
         foreach ($this->getFilesPath() as $fileName) {
134
-            if(is_file($fileName)) {
134
+            if (is_file($fileName)) {
135 135
                 unlink($fileName);
136 136
             }
137 137
         }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     private function getFilesPath() : array
144 144
     {
145
-        $paths =[];
145
+        $paths = [];
146 146
         foreach ($this->tempFiles as $fileName) {
147 147
             $paths[] = $fileName;
148 148
         }
@@ -157,13 +157,13 @@  discard block
 block discarded – undo
157 157
         $command = [];
158 158
 
159 159
         if (!empty($this->prependCommand)) {
160
-            $command[] = escapeshellcmd($this->prependCommand) . " &&";
160
+            $command[] = escapeshellcmd($this->prependCommand)." &&";
161 161
         }
162 162
 
163 163
         $command = array_merge($command, [
164 164
             $this->editor,
165
-            (string)$this->options,
166
-            implode(' ', array_map(function (string $path) {
165
+            (string) $this->options,
166
+            implode(' ', array_map(function(string $path) {
167 167
                 return escapeshellarg($path);
168 168
             }, $this->getFilesPath())),
169 169
             '2> /dev/null'
Please login to merge, or discard this patch.