@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function map(Registrar $router) |
| 27 | 27 | { |
| 28 | - $router->group(['middleware' => ['app.isInstalled', 'localize']], function ($router) { |
|
| 28 | + $router->group(['middleware' => ['app.isInstalled', 'localize']], function($router) { |
|
| 29 | 29 | $router->controller('install', 'InstallController'); |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $router->group([ |
| 29 | 29 | 'middleware' => ['app.hasSetting', 'auth'], |
| 30 | 30 | 'setting' => 'app_name', |
| 31 | - ], function ($router) { |
|
| 31 | + ], function($router) { |
|
| 32 | 32 | $router->get('/', [ |
| 33 | 33 | 'as' => 'explore', |
| 34 | 34 | 'uses' => 'ExploreController@showIndex', |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | 'middleware' => ['app.hasSetting', 'guest'], |
| 30 | 30 | 'setting' => 'app_name', |
| 31 | 31 | 'as' => 'signup.', |
| 32 | - ], function ($router) { |
|
| 32 | + ], function($router) { |
|
| 33 | 33 | $router->get('signup/invite/{code}', [ |
| 34 | 34 | 'as' => 'invite', |
| 35 | 35 | 'uses' => 'SignupController@getSignup', |
@@ -29,8 +29,8 @@ |
||
| 29 | 29 | 'middleware' => ['app.hasSetting', 'localize'], |
| 30 | 30 | 'setting' => 'app_name', |
| 31 | 31 | 'as' => 'subscribe.', |
| 32 | - ], function ($router) { |
|
| 33 | - $router->group(['middleware' => 'app.subscribers'], function ($router) { |
|
| 32 | + ], function($router) { |
|
| 33 | + $router->group(['middleware' => 'app.subscribers'], function($router) { |
|
| 34 | 34 | $router->get('subscribe', [ |
| 35 | 35 | 'as' => 'subscribe', |
| 36 | 36 | 'uses' => 'SubscribeController@showSubscribe', |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | { |
| 39 | 39 | parent::boot(); |
| 40 | 40 | |
| 41 | - self::creating(function ($invite) { |
|
| 41 | + self::creating(function($invite) { |
|
| 42 | 42 | if (!$invite->code) { |
| 43 | 43 | $invite->code = self::generateInviteCode(); |
| 44 | 44 | } |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | */ |
| 175 | 175 | public function getTagsListAttribute() |
| 176 | 176 | { |
| 177 | - $tags = $this->tags->map(function ($tag) { |
|
| 177 | + $tags = $this->tags->map(function($tag) { |
|
| 178 | 178 | return $tag->name; |
| 179 | 179 | }); |
| 180 | 180 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | { |
| 56 | 56 | parent::boot(); |
| 57 | 57 | |
| 58 | - self::creating(function ($user) { |
|
| 58 | + self::creating(function($user) { |
|
| 59 | 59 | if (!$user->verify_code) { |
| 60 | 60 | $user->verify_code = self::generateVerifyCode(); |
| 61 | 61 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | { |
| 41 | 41 | parent::boot(); |
| 42 | 42 | |
| 43 | - self::creating(function ($tag) { |
|
| 43 | + self::creating(function($tag) { |
|
| 44 | 44 | $tag->slug = Str::slug($tag->name); |
| 45 | 45 | }); |
| 46 | 46 | } |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | parent::boot(); |
| 74 | 74 | |
| 75 | - self::creating(function ($user) { |
|
| 75 | + self::creating(function($user) { |
|
| 76 | 76 | if (!$user->api_key) { |
| 77 | 77 | $user->api_key = self::generateApiKey(); |
| 78 | 78 | } |