Skip to content

Commit b598119

Browse files
committed
coding style: removed space after reference &
1 parent a87e50f commit b598119

12 files changed

+14
-14
lines changed

src/Application/IPresenterFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface IPresenterFactory
2020
* @return string class name
2121
* @throws InvalidPresenterException
2222
*/
23-
function getPresenterClass(& $name);
23+
function getPresenterClass(&$name);
2424

2525
/**
2626
* Creates new presenter instance.

src/Application/PresenterFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function createPresenter($name)
5656
* @return string class name
5757
* @throws InvalidPresenterException
5858
*/
59-
public function getPresenterClass(& $name)
59+
public function getPresenterClass(&$name)
6060
{
6161
if (isset($this->cache[$name])) {
6262
return $this->cache[$name];

src/Application/UI/Component.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function loadState(array $params)
154154
* @param ComponentReflection (internal, used by Presenter)
155155
* @return void
156156
*/
157-
public function saveState(array & $params, $reflection = NULL)
157+
public function saveState(array &$params, $reflection = NULL)
158158
{
159159
$reflection = $reflection === NULL ? $this->getReflection() : $reflection;
160160
foreach ($reflection->getPersistentParams() as $name => $meta) {

src/Application/UI/ComponentReflection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public static function combineArgs(\ReflectionFunctionAbstract $method, $args)
161161
* @param string
162162
* @return bool
163163
*/
164-
public static function convertType(& $val, $type, $isClass = FALSE)
164+
public static function convertType(&$val, $type, $isClass = FALSE)
165165
{
166166
if ($isClass) {
167167
return $val instanceof $type;

src/Application/UI/IStatePersistent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ function loadState(array $params);
2424
* Saves state informations for next request.
2525
* @return void
2626
*/
27-
function saveState(array & $params);
27+
function saveState(array &$params);
2828

2929
}

src/Application/UI/Presenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ protected function createRequest($component, $destination, array $args, $mode)
10061006
* @throws InvalidLinkException
10071007
* @internal
10081008
*/
1009-
public static function argsToParams($class, $method, & $args, $supplemental = [], & $missing = [])
1009+
public static function argsToParams($class, $method, &$args, $supplemental = [], &$missing = [])
10101010
{
10111011
$i = 0;
10121012
$rm = new \ReflectionMethod($class, $method);
@@ -1136,7 +1136,7 @@ public static function getPersistentComponents()
11361136
*/
11371137
protected function getGlobalState($forClass = NULL)
11381138
{
1139-
$sinces = & $this->globalStateSinces;
1139+
$sinces = &$this->globalStateSinces;
11401140

11411141
if ($this->globalState === NULL) {
11421142
$state = [];

src/Bridges/ApplicationLatte/UIRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UIRuntime
2222
/**
2323
* @return void
2424
*/
25-
public static function initialize(Latte\Runtime\Template $template, & $parentName, array $blocks)
25+
public static function initialize(Latte\Runtime\Template $template, &$parentName, array $blocks)
2626
{
2727
$providers = $template->global;
2828
$blocks = array_filter(array_keys($blocks), function ($s) { return $s[0] !== '_'; });

tests/Application/MicroPresenter.invoke.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test(function () {
2424
$presenter = $p = new NetteModule\MicroPresenter;
2525

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

6262
$presenter->run(new Request('Nette:Micro', 'GET', [
63-
'callback' => function (stdClass $obj) use (& $log) {
63+
'callback' => function (stdClass $obj) use (&$log) {
6464
$log[] = get_class($obj);
6565
},
6666
]));

tests/Responses/CallbackResponse.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require __DIR__ . '/../bootstrap.php';
1313

1414

1515
test(function () {
16-
$response = new CallbackResponse(function (Http\IRequest $request, Http\IResponse $response) use (& $ok) {
16+
$response = new CallbackResponse(function (Http\IRequest $request, Http\IResponse $response) use (&$ok) {
1717
$ok = TRUE;
1818
});
1919
$response->send(new Http\Request(new Http\UrlScript), new Http\Response);

tests/UI/Presenter.link().php7.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class TestControl extends Application\UI\Control
3434
parent::loadState($params);
3535
}
3636

37-
public function saveState(array & $params)
37+
public function saveState(array &$params)
3838
{
3939
parent::saveState($params);
4040
if (isset($params['order'])) {

0 commit comments

Comments
 (0)