Skip to content

Commit

Permalink
Convert spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Nov 27, 2016
1 parent e3203c8 commit 855b4b1
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 253 deletions.
58 changes: 29 additions & 29 deletions src/Events/Application/ApplicationEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@
interface ApplicationEvents
{

/**
* Occurs before the application loads presenter
*/
const ON_STARTUP = 'nette.application.startup';

/**
* Occurs before the application shuts down
*/
const ON_SHUTDOWN = 'nette.application.shutdown';

/**
* Occurs when a new request is ready for dispatch;
*/
const ON_REQUEST = 'nette.application.request';

/**
* Occurs when a presenter is created
*/
const ON_PRESENTER = 'nette.application.presenter';

/**
* Occurs when a new response is received
*/
const ON_RESPONSE = 'nette.application.response';

/**
* Occurs when an unhandled exception occurs in the application
*/
const ON_ERROR = 'nette.application.error';
/**
* Occurs before the application loads presenter
*/
const ON_STARTUP = 'nette.application.startup';

/**
* Occurs before the application shuts down
*/
const ON_SHUTDOWN = 'nette.application.shutdown';

/**
* Occurs when a new request is ready for dispatch;
*/
const ON_REQUEST = 'nette.application.request';

/**
* Occurs when a presenter is created
*/
const ON_PRESENTER = 'nette.application.presenter';

/**
* Occurs when a new response is received
*/
const ON_RESPONSE = 'nette.application.response';

/**
* Occurs when an unhandled exception occurs in the application
*/
const ON_ERROR = 'nette.application.error';

}
70 changes: 35 additions & 35 deletions src/Events/Application/ErrorEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,40 @@
final class ErrorEvent extends BaseEvent
{

/** @var Application */
private $application;

/** @var Exception|Error|Throwable */
private $throwable;

/**
* @param Application $application
* @param Exception|Error $throwable
*/
public function __construct(Application $application, $throwable)
{
if (!($throwable instanceof Exception) && !($throwable instanceof Error)) {
throw new InvalidArgumentException(sprintf('Exception must be instance of Exception|Error'));
}

$this->application = $application;
$this->throwable = $throwable;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return Error|Exception
*/
public function getThrowable()
{
return $this->throwable;
}
/** @var Application */
private $application;

/** @var Exception|Error|Throwable */
private $throwable;

/**
* @param Application $application
* @param Exception|Error $throwable
*/
public function __construct(Application $application, $throwable)
{
if (!($throwable instanceof Exception) && !($throwable instanceof Error)) {
throw new InvalidArgumentException(sprintf('Exception must be instance of Exception|Error'));
}

$this->application = $application;
$this->throwable = $throwable;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return Error|Exception
*/
public function getThrowable()
{
return $this->throwable;
}

}
62 changes: 31 additions & 31 deletions src/Events/Application/PresenterEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
final class PresenterEvent extends BaseEvent
{

/** @var Application */
private $application;

/** @var IPresenter */
private $presenter;

/**
* @param Application $application
* @param IPresenter $presenter
*/
public function __construct(Application $application, IPresenter $presenter)
{
$this->application = $application;
$this->presenter = $presenter;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return IPresenter
*/
public function getPresenter()
{
return $this->presenter;
}
/** @var Application */
private $application;

/** @var IPresenter */
private $presenter;

/**
* @param Application $application
* @param IPresenter $presenter
*/
public function __construct(Application $application, IPresenter $presenter)
{
$this->application = $application;
$this->presenter = $presenter;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return IPresenter
*/
public function getPresenter()
{
return $this->presenter;
}

}
62 changes: 31 additions & 31 deletions src/Events/Application/RequestEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
final class RequestEvent extends BaseEvent
{

/** @var Application */
private $application;

/** @var Request */
private $request;

/**
* @param Application $application
* @param Request $request
*/
public function __construct(Application $application, Request $request)
{
$this->application = $application;
$this->request = $request;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return Request
*/
public function getRequest()
{
return $this->request;
}
/** @var Application */
private $application;

/** @var Request */
private $request;

/**
* @param Application $application
* @param Request $request
*/
public function __construct(Application $application, Request $request)
{
$this->application = $application;
$this->request = $request;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return Request
*/
public function getRequest()
{
return $this->request;
}

}
62 changes: 31 additions & 31 deletions src/Events/Application/ResponseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@
final class ResponseEvent extends BaseEvent
{

/** @var Application */
private $application;

/** @var IResponse */
private $response;

/**
* @param Application $application
* @param IResponse $response
*/
public function __construct(Application $application, IResponse $response)
{
$this->application = $application;
$this->response = $response;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return IResponse
*/
public function getResponse()
{
return $this->response;
}
/** @var Application */
private $application;

/** @var IResponse */
private $response;

/**
* @param Application $application
* @param IResponse $response
*/
public function __construct(Application $application, IResponse $response)
{
$this->application = $application;
$this->response = $response;
}

/**
* @return Application
*/
public function getApplication()
{
return $this->application;
}

/**
* @return IResponse
*/
public function getResponse()
{
return $this->response;
}

}

0 comments on commit 855b4b1

Please sign in to comment.