@@ -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 | { |
@@ -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 | }); |
@@ -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 | |
@@ -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 | ); |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function map(Router $router) |
| 37 | 37 | { |
| 38 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
| 38 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
| 39 | 39 | require app_path('Http/routes.php'); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Define your route model bindings, pattern filters, etc. |
| 21 | 21 | * |
| 22 | - * @param \Illuminate\Routing\Router $router |
|
| 23 | 22 | */ |
| 24 | 23 | public function boot() |
| 25 | 24 | { |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Register any application authentication / authorization services. |
| 20 | 20 | * |
| 21 | - * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 22 | 21 | * |
| 23 | 22 | * @return void |
| 24 | 23 | */ |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | /** |
| 22 | 22 | * Register any other events for your application. |
| 23 | 23 | * |
| 24 | - * @param \Illuminate\Contracts\Events\Dispatcher $events |
|
| 25 | 24 | */ |
| 26 | 25 | public function boot() |
| 27 | 26 | { |