Completed
Push — symfony-console ( e84eb9...8a66e5 )
by Arnaud
02:25 queued 11s
created
src/Command/CommandServe.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -143,6 +143,9 @@
 block discarded – undo
143 143
         return 0;
144 144
     }
145 145
 
146
+    /**
147
+     * @param OutputInterface $output
148
+     */
146 149
     private function setUpServer($output)
147 150
     {
148 151
         try {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             'php -S %s:%d -t %s %s',
83 83
             $this->host,
84 84
             $this->port,
85
-            $this->getPath() . '/' . $this->getBuilder($output)->getConfig()->get('output.dir'),
85
+            $this->getPath().'/'.$this->getBuilder($output)->getConfig()->get('output.dir'),
86 86
             sprintf('%s/%s/router.php', $this->getPath(), self::$tmpDir)
87 87
         );
88 88
         $process = new Process($command);
@@ -146,27 +146,27 @@  discard block
 block discarded – undo
146 146
     private function setUpServer($output)
147 147
     {
148 148
         try {
149
-            $root = __DIR__ . '/../../';
149
+            $root = __DIR__.'/../../';
150 150
             if (Plateform::isPhar()) {
151
-                $root = Plateform::getPharPath() . '/';
151
+                $root = Plateform::getPharPath().'/';
152 152
             }
153 153
             // copy router
154 154
             $this->fs->copy(
155
-                $root . 'res/server/router.php',
156
-                $this->getPath() . '/' . self::$tmpDir . '/router.php',
155
+                $root.'res/server/router.php',
156
+                $this->getPath().'/'.self::$tmpDir.'/router.php',
157 157
                 true
158 158
             );
159 159
             // copy livereload JS
160 160
             if (!$this->nowatcher) {
161 161
                 $this->fs->copy(
162
-                    $root . 'res/server/livereload.js',
163
-                    $this->getPath() . '/' . self::$tmpDir . '/livereload.js',
162
+                    $root.'res/server/livereload.js',
163
+                    $this->getPath().'/'.self::$tmpDir.'/livereload.js',
164 164
                     true
165 165
                 );
166 166
             }
167 167
             // copy baseurl text file
168 168
             $this->fs->dumpFile(
169
-                $this->getPath() . '/' . self::$tmpDir . '/baseurl',
169
+                $this->getPath().'/'.self::$tmpDir.'/baseurl',
170 170
                 sprintf(
171 171
                     '%s;%s',
172 172
                     $this->getBuilder($output)->getConfig()->get('baseurl'),
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     public function tearDownServer()
185 185
     {
186 186
         try {
187
-            $this->fs->remove($this->getPath() . '/' . self::$tmpDir);
187
+            $this->fs->remove($this->getPath().'/'.self::$tmpDir);
188 188
         } catch (IOExceptionInterface $e) {
189 189
             throw new \Exception(sprintf($e->getMessage()));
190 190
         }
Please login to merge, or discard this patch.