Skip to content

Commit

Permalink
coding style: removed space after reference &
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 9, 2017
1 parent a87e50f commit b598119
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Application/IPresenterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface IPresenterFactory
* @return string class name
* @throws InvalidPresenterException
*/
function getPresenterClass(& $name);
function getPresenterClass(&$name);

/**
* Creates new presenter instance.
Expand Down
2 changes: 1 addition & 1 deletion src/Application/PresenterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function createPresenter($name)
* @return string class name
* @throws InvalidPresenterException
*/
public function getPresenterClass(& $name)
public function getPresenterClass(&$name)
{
if (isset($this->cache[$name])) {
return $this->cache[$name];
Expand Down
2 changes: 1 addition & 1 deletion src/Application/UI/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function loadState(array $params)
* @param ComponentReflection (internal, used by Presenter)
* @return void
*/
public function saveState(array & $params, $reflection = NULL)
public function saveState(array &$params, $reflection = NULL)
{
$reflection = $reflection === NULL ? $this->getReflection() : $reflection;
foreach ($reflection->getPersistentParams() as $name => $meta) {
Expand Down
2 changes: 1 addition & 1 deletion src/Application/UI/ComponentReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static function combineArgs(\ReflectionFunctionAbstract $method, $args)
* @param string
* @return bool
*/
public static function convertType(& $val, $type, $isClass = FALSE)
public static function convertType(&$val, $type, $isClass = FALSE)
{
if ($isClass) {
return $val instanceof $type;
Expand Down
2 changes: 1 addition & 1 deletion src/Application/UI/IStatePersistent.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ function loadState(array $params);
* Saves state informations for next request.
* @return void
*/
function saveState(array & $params);
function saveState(array &$params);

}
4 changes: 2 additions & 2 deletions src/Application/UI/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ protected function createRequest($component, $destination, array $args, $mode)
* @throws InvalidLinkException
* @internal
*/
public static function argsToParams($class, $method, & $args, $supplemental = [], & $missing = [])
public static function argsToParams($class, $method, &$args, $supplemental = [], &$missing = [])
{
$i = 0;
$rm = new \ReflectionMethod($class, $method);
Expand Down Expand Up @@ -1136,7 +1136,7 @@ public static function getPersistentComponents()
*/
protected function getGlobalState($forClass = NULL)
{
$sinces = & $this->globalStateSinces;
$sinces = &$this->globalStateSinces;

if ($this->globalState === NULL) {
$state = [];
Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationLatte/UIRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class UIRuntime
/**
* @return void
*/
public static function initialize(Latte\Runtime\Template $template, & $parentName, array $blocks)
public static function initialize(Latte\Runtime\Template $template, &$parentName, array $blocks)
{
$providers = $template->global;
$blocks = array_filter(array_keys($blocks), function ($s) { return $s[0] !== '_'; });
Expand Down
4 changes: 2 additions & 2 deletions tests/Application/MicroPresenter.invoke.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ test(function () {
$presenter = $p = new NetteModule\MicroPresenter;

$presenter->run(new Request('Nette:Micro', 'GET', [
'callback' => function ($id, $page, $presenter) use ($p, & $log) {
'callback' => function ($id, $page, $presenter) use ($p, &$log) {
Assert::same($p, $presenter);
$log[] = 'Callback id ' . $id . ' page ' . $page;
},
Expand Down Expand Up @@ -60,7 +60,7 @@ test(function () {
$presenter = new NetteModule\MicroPresenter($container);

$presenter->run(new Request('Nette:Micro', 'GET', [
'callback' => function (stdClass $obj) use (& $log) {
'callback' => function (stdClass $obj) use (&$log) {
$log[] = get_class($obj);
},
]));
Expand Down
2 changes: 1 addition & 1 deletion tests/Responses/CallbackResponse.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require __DIR__ . '/../bootstrap.php';


test(function () {
$response = new CallbackResponse(function (Http\IRequest $request, Http\IResponse $response) use (& $ok) {
$response = new CallbackResponse(function (Http\IRequest $request, Http\IResponse $response) use (&$ok) {
$ok = TRUE;
});
$response->send(new Http\Request(new Http\UrlScript), new Http\Response);
Expand Down
2 changes: 1 addition & 1 deletion tests/UI/Presenter.link().php7.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestControl extends Application\UI\Control
parent::loadState($params);
}

public function saveState(array & $params)
public function saveState(array &$params)
{
parent::saveState($params);
if (isset($params['order'])) {
Expand Down
2 changes: 1 addition & 1 deletion tests/UI/Presenter.link().php71.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class TestControl extends Application\UI\Control
parent::loadState($params);
}

public function saveState(array & $params)
public function saveState(array &$params)
{
parent::saveState($params);
if (isset($params['order'])) {
Expand Down
2 changes: 1 addition & 1 deletion tests/UI/Presenter.link().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class TestControl extends Application\UI\Control
parent::loadState($params);
}

public function saveState(array & $params)
public function saveState(array &$params)
{
parent::saveState($params);
if (isset($params['order'])) {
Expand Down

0 comments on commit b598119

Please sign in to comment.