@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * Constuctor for repository. |
42 | 42 | * |
43 | - * @param int|\Pterodactyl\Models\Server $server |
|
43 | + * @param Models\Server $server |
|
44 | 44 | * @return void |
45 | 45 | */ |
46 | 46 | public function __construct($server) |
@@ -929,7 +929,7 @@ |
||
929 | 929 | * |
930 | 930 | * @param int $id |
931 | 931 | * @param string $password |
932 | - * @return void |
|
932 | + * @return boolean |
|
933 | 933 | * |
934 | 934 | * @throws \Pterodactyl\Exceptions\DisplayException |
935 | 935 | * @throws \Pterodactyl\Exceptions\DisplayValidationException |
@@ -25,7 +25,6 @@ |
||
25 | 25 | namespace Pterodactyl\Repositories; |
26 | 26 | |
27 | 27 | use DB; |
28 | -use Log; |
|
29 | 28 | use Crypt; |
30 | 29 | use Validator; |
31 | 30 | use Pterodactyl\Models; |
@@ -113,7 +113,7 @@ |
||
113 | 113 | * @param \Pterodactyl\Models\Node $node |
114 | 114 | * @param int $memory |
115 | 115 | * @param int $disk |
116 | - * @return bool Returns true if this information would not put the node over it's limit. |
|
116 | + * @return boolean|null Returns true if this information would not put the node over it's limit. |
|
117 | 117 | */ |
118 | 118 | protected static function checkNodeAllocation(Models\Node $node, $memory, $disk) |
119 | 119 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * Constuctor for repository. |
42 | 42 | * |
43 | - * @param int|\Pterodactyl\Models\Server $server |
|
43 | + * @param Models\Server $server |
|
44 | 44 | * @return void |
45 | 45 | */ |
46 | 46 | public function __construct($server) |
@@ -25,11 +25,8 @@ |
||
25 | 25 | namespace Pterodactyl\Observers; |
26 | 26 | |
27 | 27 | use Cache; |
28 | -use Carbon; |
|
29 | 28 | use Pterodactyl\Events; |
30 | 29 | use Pterodactyl\Models\Server; |
31 | -use Pterodactyl\Jobs\DeleteServer; |
|
32 | -use Pterodactyl\Jobs\SuspendServer; |
|
33 | 30 | use Pterodactyl\Notifications\ServerCreated; |
34 | 31 | use Illuminate\Foundation\Bus\DispatchesJobs; |
35 | 32 |