@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace Pterodactyl\Http\Controllers\Server; |
| 26 | 26 | |
| 27 | -use DB; |
|
| 28 | 27 | use Log; |
| 29 | 28 | use Auth; |
| 30 | 29 | use Alert; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @param \Pterodactyl\Models\User $user |
| 46 | 46 | * @param \Pterodactyl\Models\Server $server |
| 47 | - * @param $permission |
|
| 47 | + * @param string $permission |
|
| 48 | 48 | * @return bool |
| 49 | 49 | */ |
| 50 | 50 | private function checkPermission(User $user, Server $server, $permission) |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param \Pterodactyl\Models\User $user |
| 75 | 75 | * @param string $ability |
| 76 | - * @return bool |
|
| 76 | + * @return boolean|null |
|
| 77 | 77 | */ |
| 78 | 78 | public function before(User $user, $ability) |
| 79 | 79 | { |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace Pterodactyl\Http\Controllers\Admin; |
| 26 | 26 | |
| 27 | -use DB; |
|
| 28 | 27 | use Log; |
| 29 | 28 | use Alert; |
| 30 | 29 | use Pterodactyl\Models; |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace Pterodactyl\Http\Controllers\Admin; |
| 26 | 26 | |
| 27 | -use DB; |
|
| 28 | 27 | use Alert; |
| 29 | 28 | use Pterodactyl\Models; |
| 30 | 29 | use Illuminate\Http\Request; |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace Pterodactyl\Services; |
| 26 | 26 | |
| 27 | -use Pterodactyl\Models\User; |
|
| 28 | 27 | use Pterodactyl\Models\Server; |
| 29 | 28 | use Pterodactyl\Notifications\Daemon; |
| 30 | 29 | |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | |
| 25 | 25 | namespace Pterodactyl\Http\Controllers\API; |
| 26 | 26 | |
| 27 | -use DB; |
|
| 28 | 27 | use Illuminate\Http\Request; |
| 29 | 28 | use Pterodactyl\Models\Location; |
| 30 | 29 | |
@@ -31,7 +31,6 @@ |
||
| 31 | 31 | use Pterodactyl\Repositories\UserRepository; |
| 32 | 32 | use Pterodactyl\Exceptions\DisplayValidationException; |
| 33 | 33 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 34 | -use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; |
|
| 35 | 34 | use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException; |
| 36 | 35 | |
| 37 | 36 | /** |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * Adds a new server to the system. |
| 78 | 78 | * @param array $data An array of data descriptors for creating the server. These should align to the columns in the database. |
| 79 | - * @return int |
|
| 79 | + * @return Models\Server |
|
| 80 | 80 | */ |
| 81 | 81 | public function create(array $data) |
| 82 | 82 | { |