diff --git a/config/serve_livereload.php b/config/serve_livereload.php
index 050dbec..b8bdcde 100644
--- a/config/serve_livereload.php
+++ b/config/serve_livereload.php
@@ -1,5 +1,5 @@
['/app', '/public', '/config', '/routes', '/resources']
+ 'dirs' => ['/app', '/public', '/config', '/routes', '/resources'],
];
diff --git a/src/CommandServiceProvider.php b/src/CommandServiceProvider.php
index 6539ca7..bac14be 100644
--- a/src/CommandServiceProvider.php
+++ b/src/CommandServiceProvider.php
@@ -10,7 +10,6 @@
class CommandServiceProvider extends ServiceProvider implements DeferrableProvider
{
-
public function register()
{
// override serve command
@@ -22,7 +21,7 @@ public function register()
$this->commands([
ServeCommand::class,
ServeHttpCommand::class,
- ServeWebSocketsCommand::class
+ ServeWebSocketsCommand::class,
]);
$this->mergeConfigFrom(__DIR__.'/../config/serve_livereload.php', 'serve_livereload');
@@ -31,7 +30,7 @@ public function register()
public function boot()
{
$this->publishes([
- __DIR__.'/../config/serve_livereload.php' => config_path('serve_livereload.php')
+ __DIR__.'/../config/serve_livereload.php' => config_path('serve_livereload.php'),
]);
}
diff --git a/src/Commands/ServeCommand.php b/src/Commands/ServeCommand.php
index 5919a03..84ae111 100644
--- a/src/Commands/ServeCommand.php
+++ b/src/Commands/ServeCommand.php
@@ -19,7 +19,7 @@ public function handle()
$processes = [
$httpProcess = new Process([$phpBinaryPath, $artisanPath, 'serve:http']),
- $socketProcess = new Process([$phpBinaryPath, $artisanPath, 'serve:websockets'])
+ $socketProcess = new Process([$phpBinaryPath, $artisanPath, 'serve:websockets']),
];
while (count($processes)) {
@@ -46,4 +46,4 @@ public function handle()
sleep(1);
}
}
-}
\ No newline at end of file
+}
diff --git a/src/Commands/ServeHttpCommand.php b/src/Commands/ServeHttpCommand.php
index 83b0ef3..0cbb690 100644
--- a/src/Commands/ServeHttpCommand.php
+++ b/src/Commands/ServeHttpCommand.php
@@ -7,7 +7,7 @@
class ServeHttpCommand extends ServeCommand
{
/**
- * The console command name
+ * The console command name.
*
* @var string
*/
@@ -17,4 +17,4 @@ class ServeHttpCommand extends ServeCommand
* @var bool
*/
protected $hidden = true;
-}
\ No newline at end of file
+}
diff --git a/src/Commands/ServeWebSocketsCommand.php b/src/Commands/ServeWebSocketsCommand.php
index 2f54377..372df7d 100644
--- a/src/Commands/ServeWebSocketsCommand.php
+++ b/src/Commands/ServeWebSocketsCommand.php
@@ -17,7 +17,6 @@
class ServeWebSocketsCommand extends Command
{
-
/**
* The console command name.
*
@@ -48,16 +47,16 @@ class ServeWebSocketsCommand extends Command
/**
* Execute the console command.
*
- * @return int
- *
* @throws \Exception
+ *
+ * @return int
*/
public function handle()
{
$this->loop = LoopFactory::create();
$this->loop->futureTick(function () {
- $this->line("Websockets server started: ws://127.0.0.1:".self::port());
+ $this->line('Websockets server started: ws://127.0.0.1:'.self::port());
});
$this->startWatcher();
@@ -80,7 +79,7 @@ protected function startServer()
{
try {
$this->server = new IoServer(
- new HttpServer(new WsServer(new Socket)),
+ new HttpServer(new WsServer(new Socket())),
new Reactor('127.0.0.1:'.self::port(), $this->loop),
$this->loop
);
@@ -105,4 +104,4 @@ public static function port()
{
return self::$port + self::$offset;
}
-}
\ No newline at end of file
+}
diff --git a/src/Injector.php b/src/Injector.php
index 5cbca05..be9ec27 100644
--- a/src/Injector.php
+++ b/src/Injector.php
@@ -8,17 +8,18 @@ class Injector
{
/**
* Append script to html
- * I dont care it doesn't place before