Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 8b0bfdc

Browse files
committed
CS fixes
1 parent b1cfa02 commit 8b0bfdc

6 files changed

+6
-8
lines changed

src/Event.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function getTarget()
9595
*/
9696
public function setParams($params)
9797
{
98-
if (!is_array($params) && !is_object($params)) {
98+
if (! is_array($params) && ! is_object($params)) {
9999
throw new Exception\InvalidArgumentException(
100100
sprintf('Event parameters must be an array or object; received "%s"', gettype($params))
101101
);
@@ -127,15 +127,15 @@ public function getParam($name, $default = null)
127127
{
128128
// Check in params that are arrays or implement array access
129129
if (is_array($this->params) || $this->params instanceof ArrayAccess) {
130-
if (!isset($this->params[$name])) {
130+
if (! isset($this->params[$name])) {
131131
return $default;
132132
}
133133

134134
return $this->params[$name];
135135
}
136136

137137
// Check in normal objects
138-
if (!isset($this->params->{$name})) {
138+
if (! isset($this->params->{$name})) {
139139
return $default;
140140
}
141141
return $this->params->{$name};

src/EventManagerAwareTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function setEventManager(EventManagerInterface $events)
6767
*/
6868
public function getEventManager()
6969
{
70-
if (!$this->events instanceof EventManagerInterface) {
70+
if (! $this->events instanceof EventManagerInterface) {
7171
$this->setEventManager(new EventManager());
7272
}
7373
return $this->events;

src/SharedEventManager.php

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ public function detach(callable $listener, $identifier = null, $eventName = null
141141
unset($this->identifiers[$identifier][$eventName]);
142142
break;
143143
}
144-
145144
}
146145

147146
// Is the identifier queue now empty? Remove it.

test/EventManagerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function handleTestEvent($e)
171171

172172
public function evaluateStringCallback($value)
173173
{
174-
return (!$value);
174+
return (! $value);
175175
}
176176

177177
public function testTriggerUntilShouldMarkResponseCollectionStoppedWhenConditionMet()

test/FilterChainTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testFilterChainShouldReturnLastResponse()
7373
if (isset($params['string'])) {
7474
$params['string'] = trim($params['string']);
7575
}
76-
$return = $chain->next($context, $params, $chain);
76+
$return = $chain->next($context, $params, $chain);
7777
return $return;
7878
});
7979
$this->filterchain->attach(function ($context, array $params) {

test/TestAsset/StaticEventsMock.php

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function getListeners($id, $event = null)
3030
*/
3131
public function attach($identifier, $event, callable $listener, $priority = 1)
3232
{
33-
3433
}
3534

3635
/**

0 commit comments

Comments
 (0)