@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Setup request object for transformer. |
| 49 | 49 | * |
| 50 | 50 | * @param \Illuminate\Http\Request|bool $request |
| 51 | - * @return void |
|
| 51 | + * @return callable |
|
| 52 | 52 | */ |
| 53 | 53 | public function __construct($request = false) |
| 54 | 54 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Return the parent service variable data. |
| 74 | 74 | * |
| 75 | - * @return \Leauge\Fractal\Resource\Item |
|
| 75 | + * @return null|\League\Fractal\Resource\Item |
|
| 76 | 76 | */ |
| 77 | 77 | public function includeParent(ServerVariable $variable) |
| 78 | 78 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * Setup request object for transformer. |
| 53 | 53 | * |
| 54 | 54 | * @param \Illuminate\Http\Request|bool $request |
| 55 | - * @return void |
|
| 55 | + * @return callable |
|
| 56 | 56 | */ |
| 57 | 57 | public function __construct($request = false) |
| 58 | 58 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Return the the service options. |
| 78 | 78 | * |
| 79 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 79 | + * @return null|\League\Fractal\Resource\Collection |
|
| 80 | 80 | */ |
| 81 | 81 | public function includeOptions(Service $service) |
| 82 | 82 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | /** |
| 91 | 91 | * Return the servers associated with this service. |
| 92 | 92 | * |
| 93 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 93 | + * @return null|\League\Fractal\Resource\Collection |
|
| 94 | 94 | */ |
| 95 | 95 | public function includeServers(Service $service) |
| 96 | 96 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * Return the packs associated with this service. |
| 106 | 106 | * |
| 107 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 107 | + * @return null|\League\Fractal\Resource\Collection |
|
| 108 | 108 | */ |
| 109 | 109 | public function includePacks(Service $service) |
| 110 | 110 | { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * Setup request object for transformer. |
| 49 | 49 | * |
| 50 | 50 | * @param \Illuminate\Http\Request|bool $request |
| 51 | - * @return void |
|
| 51 | + * @return callable |
|
| 52 | 52 | */ |
| 53 | 53 | public function __construct($request = false) |
| 54 | 54 | { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * Return the server variables associated with this variable. |
| 74 | 74 | * |
| 75 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 75 | + * @return null|\League\Fractal\Resource\Collection |
|
| 76 | 76 | */ |
| 77 | 77 | public function includeVariables(ServiceVariable $variable) |
| 78 | 78 | { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | * Setup request object for transformer. |
| 43 | 43 | * |
| 44 | 44 | * @param \Illuminate\Http\Request|bool $request |
| 45 | - * @return void |
|
| 45 | + * @return callable |
|
| 46 | 46 | */ |
| 47 | 47 | public function __construct($request = false) |
| 48 | 48 | { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * Setup request object for transformer. |
| 52 | 52 | * |
| 53 | 53 | * @param \Illuminate\Http\Request|bool $request |
| 54 | - * @return void |
|
| 54 | + * @return callable |
|
| 55 | 55 | */ |
| 56 | 56 | public function __construct($request = false) |
| 57 | 57 | { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | /** |
| 76 | 76 | * Return the servers associated with this user. |
| 77 | 77 | * |
| 78 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 78 | + * @return null|\League\Fractal\Resource\Collection |
|
| 79 | 79 | */ |
| 80 | 80 | public function includeServers(User $user) |
| 81 | 81 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Return the servers that this user can access. |
| 91 | 91 | * |
| 92 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 92 | + * @return null|\League\Fractal\Resource\Collection |
|
| 93 | 93 | */ |
| 94 | 94 | public function includeAccess(User $user) |
| 95 | 95 | { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | /** |
| 41 | 41 | * Setup allocation transformer with access to server data. |
| 42 | 42 | * |
| 43 | - * @return void |
|
| 43 | + * @return callable |
|
| 44 | 44 | */ |
| 45 | 45 | public function __construct(Server $server) |
| 46 | 46 | { |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Return a generic array of allocations for this server. |
| 69 | 69 | * |
| 70 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 70 | + * @return \League\Fractal\Resource\Collection |
|
| 71 | 71 | */ |
| 72 | 72 | public function includeAllocations(Server $server) |
| 73 | 73 | { |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * Return a generic array of subusers for this server. |
| 81 | 81 | * |
| 82 | - * @return \Leauge\Fractal\Resource\Collection |
|
| 82 | + * @return \League\Fractal\Resource\Collection |
|
| 83 | 83 | */ |
| 84 | 84 | public function includeSubusers(Server $server) |
| 85 | 85 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * Return a generic array of allocations for this server. |
| 93 | 93 | * |
| 94 | - * @return \Leauge\Fractal\Resource\Item |
|
| 94 | + * @return \League\Fractal\Resource\Item |
|
| 95 | 95 | */ |
| 96 | 96 | public function includeStats(Server $server) |
| 97 | 97 | { |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | /** |
| 151 | 151 | * Returns non-administrative headers for accessing a server on the daemon. |
| 152 | 152 | * |
| 153 | - * @param Pterodactyl\Models\User|null $user |
|
| 153 | + * @param null|User $user |
|
| 154 | 154 | * @return array |
| 155 | 155 | */ |
| 156 | 156 | public function guzzleHeaders(User $user = null) |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | /** |
| 171 | 171 | * Return an instance of the Guzzle client for this specific server using defined access token. |
| 172 | 172 | * |
| 173 | - * @param Pterodactyl\Models\User|null $user |
|
| 173 | + * @param null|User $user |
|
| 174 | 174 | * @return \GuzzleHttp\Client |
| 175 | 175 | */ |
| 176 | 176 | public function guzzleClient(User $user = null) |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | * Sends a power option to the daemon. |
| 63 | 63 | * |
| 64 | 64 | * @param string $action |
| 65 | - * @return string |
|
| 65 | + * @return \Psr\Http\Message\StreamInterface |
|
| 66 | 66 | * |
| 67 | 67 | * @throws \GuzzleHttp\Exception\RequestException |
| 68 | 68 | * @throws \Pterodactyl\Exceptions\DisplayException |