@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Create a new Guest Pass. |
29 | - * @param lluminate\Database\Eloquent\Model $owner |
|
30 | - * @param lluminate\Database\Eloquent\Model $object |
|
29 | + * @param Model $owner |
|
30 | + * @param Model $object |
|
31 | 31 | * @param string|null $view Leave out the .blade.php extension. |
32 | 32 | * @return bool|Exception |
33 | 33 | */ |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | |
52 | 52 | /** |
53 | 53 | * Check if the given user created the Guest Pass. |
54 | - * @param lluminate\Database\Eloquent\Model $owner |
|
55 | - * @param lluminate\Database\Eloquent\Model $guestpass |
|
54 | + * @param Model $owner |
|
55 | + * @param Model $guestpass |
|
56 | 56 | * @return bool |
57 | 57 | */ |
58 | 58 | public function isOwner(Model $owner, Model $guestpass) |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * Find (or fail) the Guest Pass belonging to an owner-object pairing. |
73 | - * @param lluminate\Database\Eloquent\Model $owner |
|
74 | - * @param lluminate\Database\Eloquent\Model $object |
|
73 | + * @param Model $owner |
|
74 | + * @param Model $object |
|
75 | 75 | * @return lluminate\Database\Eloquent\Collection|Exception |
76 | 76 | */ |
77 | 77 | public function findGuestPass(Model $owner, Model $object) |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Get the services provided by the provider. |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return string[] |
|
39 | 39 | */ |
40 | 40 | public function provides() |
41 | 41 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | */ |
28 | 28 | public function register() |
29 | 29 | { |
30 | - $this->app->singleton('guestpass', function ($app) { |
|
30 | + $this->app->singleton('guestpass', function($app) { |
|
31 | 31 | return new GuestPassService; |
32 | 32 | }); |
33 | 33 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('guestpasses', function (Blueprint $table) { |
|
16 | + Schema::create('guestpasses', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('key', 10)->unique(); |
19 | 19 | $table->string('owner_model'); |