Skip to content
Permalink
Browse files

fix phpcs

  • Loading branch information...
thinkingmedia
thinkingmedia committed Aug 30, 2016
1 parent 783d09f commit 6f0ee46e9074655b22e4c18cf75ed1ebb09dd88c
@@ -502,6 +502,7 @@ public function startupProcess()
if ($event->result() instanceof Response) {
return $event->result();
}
return null;
}
@@ -520,6 +521,7 @@ public function shutdownProcess()
if ($event->result() instanceof Response) {
return $event->result();
}
return null;
}
@@ -98,13 +98,11 @@ public function __get($attribute)
if ($attribute === 'name' || $attribute === 'subject') {
return $this->{$attribute}();
}
if ($attribute === 'data')
{
if ($attribute === 'data') {
trigger_error('Public read access to data is deprecated, use data()', E_USER_DEPRECATED);
return $this->_data;
}
if ($attribute === 'result')
{
if ($attribute === 'result') {
trigger_error('Public read access to result is deprecated, use result()', E_USER_DEPRECATED);
return $this->_result;
}
@@ -118,13 +116,11 @@ public function __get($attribute)
*/
public function __set($attribute, $value)
{
if($attribute === 'data')
{
if ($attribute === 'data') {
trigger_error('Public write access to data is deprecated, use setData()', E_USER_DEPRECATED);
$this->_data = (array)$value;
}
if ($attribute === 'result')
{
if ($attribute === 'result') {
trigger_error('Public write access to result is deprecated, use setResult()', E_USER_DEPRECATED);
$this->_result = $value;
}
@@ -212,7 +208,7 @@ public function data($key = null)
*/
public function setData($key, $value = null)
{
if(is_array($key)) {
if (is_array($key)) {
$this->_data = $key;
} else {
$this->_data[$key] = $value;
@@ -57,6 +57,7 @@ public function beforeDispatch(Event $event)
$params = Router::parse($request->url, $request->method());
$request->addParams($params);
}
return null;
} catch (RedirectException $e) {
$event->stopPropagation();
@@ -707,7 +707,8 @@ function (Event $event, Entity $entity, \ArrayObject $options, $operation) {
$event->stopPropagation();
return true;
});
}
);
$this->assertSame($entity, $table->save($entity));
}
@@ -747,7 +748,8 @@ function (Event $event, Entity $entity, \ArrayObject $options, $result, $operati
$event->stopPropagation();
return true;
});
}
);
$this->assertSame($entity, $table->save($entity));
}

0 comments on commit 6f0ee46

Please sign in to comment.
You can’t perform that action at this time.