Skip to content

Commit 3299820

Browse files
committed
MAGETWO-67507: Fixed coding standard violations in the Framework\Event namespace #9253
- Merge Pull Request #9253 from dverkade/magento2:Fix_coding_standard_in_Framework-Event
2 parents 1a8dd8c + 666eeac commit 3299820

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@
66
* See COPYING.txt for license details.
77
*/
88

9-
// @codingStandardsIgnoreFile
10-
119
namespace Magento\Framework\Event\Invoker;
1210

1311
use Magento\Framework\Event\Observer;
14-
use Zend\Stdlib\Exception\LogicException;
1512

1613
class InvokerDefault implements \Magento\Framework\Event\InvokerInterface
1714
{
@@ -33,8 +30,10 @@ class InvokerDefault implements \Magento\Framework\Event\InvokerInterface
3330
* @param \Magento\Framework\Event\ObserverFactory $observerFactory
3431
* @param \Magento\Framework\App\State $appState
3532
*/
36-
public function __construct(\Magento\Framework\Event\ObserverFactory $observerFactory, \Magento\Framework\App\State $appState)
37-
{
33+
public function __construct(
34+
\Magento\Framework\Event\ObserverFactory $observerFactory,
35+
\Magento\Framework\App\State $appState
36+
) {
3837
$this->_observerFactory = $observerFactory;
3938
$this->_appState = $appState;
4039
}
@@ -75,7 +74,8 @@ protected function _callObserverMethod($object, $observer)
7574
throw new \LogicException(
7675
sprintf(
7776
'Observer "%s" must implement interface "%s"',
78-
get_class($object), \Magento\Framework\Event\ObserverInterface::class
77+
get_class($object),
78+
\Magento\Framework\Event\ObserverInterface::class
7979
)
8080
);
8181
}

0 commit comments

Comments
 (0)