@@ -11,7 +11,7 @@ |
||
| 11 | 11 | * |
| 12 | 12 | * @param string $group |
| 13 | 13 | * |
| 14 | - * @return Response |
|
| 14 | + * @return \Illuminate\View\View |
|
| 15 | 15 | */ |
| 16 | 16 | public function show($group) |
| 17 | 17 | { |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Show the application welcome screen to the user. |
| 35 | 35 | * |
| 36 | - * @return Response |
|
| 36 | + * @return \Illuminate\View\View |
|
| 37 | 37 | */ |
| 38 | 38 | public function index() |
| 39 | 39 | { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * @param Cache $cache |
| 50 | 50 | * @param Filesystem $file |
| 51 | 51 | * |
| 52 | - * @return Response |
|
| 52 | + * @return \Illuminate\View\View |
|
| 53 | 53 | */ |
| 54 | 54 | public function gettingStarted(MarkdownParser $markdown, Cache $cache, Filesystem $file) |
| 55 | 55 | { |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * Show the statistics screen to the user. |
| 68 | 68 | * |
| 69 | - * @return Response |
|
| 69 | + * @return \Illuminate\View\View |
|
| 70 | 70 | */ |
| 71 | 71 | public function statistics(Statistics $statistics) |
| 72 | 72 | { |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | */ |
| 54 | 54 | public function gettingStarted(MarkdownParser $markdown, Cache $cache, Filesystem $file) |
| 55 | 55 | { |
| 56 | - $gettingStarted = $cache->remember('getting-started', 5, function () use ($markdown, $file) { |
|
| 56 | + $gettingStarted = $cache->remember('getting-started', 5, function() use ($markdown, $file) { |
|
| 57 | 57 | |
| 58 | 58 | $gettingStarted = $file->get(base_path('resources/getting-started/readme.md')); |
| 59 | 59 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | /** |
| 11 | 11 | * Returns the count of all pokes. |
| 12 | 12 | * |
| 13 | - * @return mixed |
|
| 13 | + * @return integer |
|
| 14 | 14 | */ |
| 15 | 15 | public function totalPokes() |
| 16 | 16 | { |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function getMessage($affectedRows) |
| 53 | 53 | { |
| 54 | - $message = "Deleted $affectedRows device".($affectedRows == 1 ? '' : 's').'.'; |
|
| 54 | + $message = "Deleted $affectedRows device" . ($affectedRows == 1 ? '' : 's') . '.'; |
|
| 55 | 55 | |
| 56 | 56 | return $message; |
| 57 | 57 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function scopeOnHomePage($query) |
| 12 | 12 | { |
| 13 | 13 | return $query->where('public', 'true') |
| 14 | - ->orWhere(function ($query) { |
|
| 14 | + ->orWhere(function($query) { |
|
| 15 | 15 | $query->where('public', 'auto') |
| 16 | 16 | ->whereNull('group'); |
| 17 | 17 | }); |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | if ($device->isPublic()) { |
| 40 | 40 | $this->pusher->trigger($channel, 'ServerWasPoked', ['device' => $device->toArray()]); |
| 41 | 41 | } else { |
| 42 | - $channel = $channel.'-'.$device->group; |
|
| 42 | + $channel = $channel . '-' . $device->group; |
|
| 43 | 43 | |
| 44 | 44 | $this->pusher->trigger($channel, 'ServerWasPoked', ['device' => $device->toArray()]); |
| 45 | 45 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function validateMac() |
| 17 | 17 | { |
| 18 | - app('validator')->extend('mac', function ($attribute, $value, $parameters) { |
|
| 18 | + app('validator')->extend('mac', function($attribute, $value, $parameters) { |
|
| 19 | 19 | return preg_match('/^(([0-9a-fA-F]{2}-){5}|([0-9a-fA-F]{2}:){5})[0-9a-fA-F]{2}$/', $value); |
| 20 | 20 | }); |
| 21 | 21 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | Route::get('/stats', 'WelcomeController@statistics'); |
| 8 | 8 | |
| 9 | -Route::group(['prefix' => 'api/v1', 'namespace' => 'Api'], function () { |
|
| 9 | +Route::group(['prefix' => 'api/v1', 'namespace' => 'Api'], function() { |
|
| 10 | 10 | Route::resource('devices', 'DeviceController', ['except' => ['create', 'edit']]); |
| 11 | 11 | |
| 12 | 12 | Route::post('devices/poke', [ |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | public function boot(Dispatcher $dispatcher) |
| 16 | 16 | { |
| 17 | - $dispatcher->mapUsing(function ($command) { |
|
| 17 | + $dispatcher->mapUsing(function($command) { |
|
| 18 | 18 | return Dispatcher::simpleMapping( |
| 19 | 19 | $command, 'PiFinder\Commands', 'PiFinder\Handlers\Commands' |
| 20 | 20 | ); |