File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,8 +260,8 @@ public function run(Input $input): void
260260 }
261261
262262 if ($ mw ->isChanged ()) {
263- CliHelper::info (date ( ' Y/m/d H:i:s ' ) . ' : file changed! ' );
264- Show::aList ($ mw ->getChangedInfo (), 'modify info ' );
263+ CliHelper::info (' Have changed files ' );
264+ Show::aList ($ mw ->getChangedInfo (), 'changed file ' );
265265 CliHelper::info ('Will restart server ' );
266266
267267 if (false === $ this ->stopServer ($ pid )) {
@@ -271,7 +271,7 @@ public function run(Input $input): void
271271
272272 $ pid = $ this ->startServer ();
273273 } elseif ($ this ->debug ) {
274- CliHelper::info (date ( ' Y/m/d H:i:s ' ) . ' : files no change! ' );
274+ CliHelper::info (' files no change! ' );
275275 }
276276
277277 sleep ($ this ->interval );
@@ -290,7 +290,12 @@ private function startServer(): int
290290 return $ p ->start ();
291291 }
292292
293- public function stopServer (int $ pid ): bool
293+ /**
294+ * @param int $pid
295+ *
296+ * @return bool
297+ */
298+ protected function stopServer (int $ pid ): bool
294299 {
295300 CliHelper::info ('Stop old server. PID ' . $ pid );
296301
You can’t perform that action at this time.
0 commit comments