Skip to content

Commit

Permalink
Fixed coding standard violations in the Framework\Event namespace:
Browse files Browse the repository at this point in the history
- Removed @codingStandardsIgnoreFile
- Fixed indentation
- Fixed number of chars per line
- Removed unused "use" namespace at the top of the file.
  • Loading branch information
dverkade committed Apr 14, 2017
1 parent e3fc5b7 commit 666eeac
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/internal/Magento/Framework/Event/Invoker/InvokerDefault.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Framework\Event\Invoker;

use Magento\Framework\Event\Observer;
use Zend\Stdlib\Exception\LogicException;

class InvokerDefault implements \Magento\Framework\Event\InvokerInterface
{
Expand All @@ -33,8 +30,10 @@ class InvokerDefault implements \Magento\Framework\Event\InvokerInterface
* @param \Magento\Framework\Event\ObserverFactory $observerFactory
* @param \Magento\Framework\App\State $appState
*/
public function __construct(\Magento\Framework\Event\ObserverFactory $observerFactory, \Magento\Framework\App\State $appState)
{
public function __construct(
\Magento\Framework\Event\ObserverFactory $observerFactory,
\Magento\Framework\App\State $appState
) {
$this->_observerFactory = $observerFactory;
$this->_appState = $appState;
}
Expand Down Expand Up @@ -75,7 +74,8 @@ protected function _callObserverMethod($object, $observer)
throw new \LogicException(
sprintf(
'Observer "%s" must implement interface "%s"',
get_class($object), \Magento\Framework\Event\ObserverInterface::class
get_class($object),
\Magento\Framework\Event\ObserverInterface::class
)
);
}
Expand Down

0 comments on commit 666eeac

Please sign in to comment.