Code style.

This commit is contained in:
David Molineus
2017-10-17 18:03:49 +02:00
parent ae5fe11d20
commit 6ded7441d9

View File

@@ -33,13 +33,13 @@ class EncoderSubscriber implements EventSubscriberInterface
*/ */
public static function getSubscribedEvents() public static function getSubscribedEvents()
{ {
return array( return [
EncodeValueEvent::NAME => array( EncodeValueEvent::NAME => [
array('encodeIcons', 1000), ['encodeIcons', 1000],
array('loadLayer', 100), ['loadLayer', 100],
), ],
EncodeReferenceEvent::NAME => array('referenceIcon', 100), EncodeReferenceEvent::NAME => ['referenceIcon', 100],
); ];
} }
/** /**
@@ -96,7 +96,7 @@ class EncoderSubscriber implements EventSubscriberInterface
$url = $value->getUrl(); $url = $value->getUrl();
if ($url instanceof RequestUrl) { if ($url instanceof RequestUrl) {
$url = $url->getHash(); $url = $url->getHash();
$method = 'load'; $method = 'load';
} }