Skip to content

Commit

Permalink
Update doc blocks for all app/
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Mar 19, 2017
1 parent 5e27772 commit 0312c97
Show file tree
Hide file tree
Showing 114 changed files with 1,360 additions and 949 deletions.
11 changes: 4 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
storage/framework/*

composer.lock

Homestead.yaml
Vagrantfile
Vagrantfile

node_modules
yarn.lock
node_modules

_ide_helper_models.php
_ide_helper.php

sami.phar
sami.config.php
/sami
6 changes: 6 additions & 0 deletions app/Events/Server/Created.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Created
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Creating
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Deleted
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Deleting.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Deleting
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Saved.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Saved
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Saving.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Saving
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Updated.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Updated
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Server/Updating.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Updating
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Server
*/
public $server;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Server $server
* @return void
*/
public function __construct(Server $server)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Subuser/Created.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Created
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Subuser
*/
public $subuser;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Subuser $subuser
* @return void
*/
public function __construct(Subuser $subuser)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Subuser/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Creating
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Subuser
*/
public $subuser;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Subuser $subuser
* @return void
*/
public function __construct(Subuser $subuser)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Subuser/Deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Deleted
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Subuser
*/
public $subuser;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Subuser $subuser
* @return void
*/
public function __construct(Subuser $subuser)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/Subuser/Deleting.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Deleting
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\Subuser
*/
public $subuser;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\Subuser $subuser
* @return void
*/
public function __construct(Subuser $subuser)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/User/Created.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Created
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\User
*/
public $user;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\User $user
* @return void
*/
public function __construct(User $user)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/User/Creating.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Creating
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\User
*/
public $user;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\User $user
* @return void
*/
public function __construct(User $user)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/User/Deleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Deleted
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\User
*/
public $user;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\User $user
* @return void
*/
public function __construct(User $user)
Expand Down
6 changes: 6 additions & 0 deletions app/Events/User/Deleting.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@ class Deleting
{
use SerializesModels;

/**
* The Eloquent model of the server.
*
* @var \Pterodactyl\Models\User
*/
public $user;

/**
* Create a new event instance.
*
* @param \Pterodactyl\Models\User $user
* @return void
*/
public function __construct(User $user)
Expand Down
1 change: 1 addition & 0 deletions app/Exceptions/AccountNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@

class AccountNotFoundException extends \Exception
{
//
}
17 changes: 8 additions & 9 deletions app/Exceptions/DisplayException.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,19 @@

class DisplayException extends \Exception
{
private $_logging = null;

/**
* Exception constructor.
*
* @param string $message
* @param mixed $log
* @return void
*/
public function __construct($message, $log = null)
{
$this->_logging = $log;
if ($this->_logging !== null) {
if (! is_null($log)) {
Log::error($log);
}

parent::__construct($message);
}

public function getLogging()
{
return $this->_logging;
}
}
6 changes: 3 additions & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Handler extends ExceptionHandler
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $e
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
Expand All @@ -41,7 +41,7 @@ public function report(Exception $exception)
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $e
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
Expand All @@ -60,7 +60,7 @@ public function render($request, Exception $exception)
/**
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $exception
* @return \Illuminate\Http\Response
*/
Expand Down
8 changes: 4 additions & 4 deletions app/Extensions/PhraseAppTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class PhraseAppTranslator extends LaravelTranslator
/**
* Get the translation for the given key.
*
* @param string $key
* @param array $replace
* @param string $key
* @param array $replace
* @param string|null $locale
* @param bool $fallback
* @return string|array|null
* @param bool $fallback
* @return string
*/
public function get($key, array $replace = [], $locale = null, $fallback = true)
{
Expand Down
5 changes: 5 additions & 0 deletions app/Facades/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@

class Version extends Facade
{
/**
* Returns the facade accessor class.
*
* @return strig
*/
protected static function getFacadeAccessor()
{
return '\Pterodactyl\Services\VersionService';
Expand Down
Loading

0 comments on commit 0312c97

Please sign in to comment.