Skip to content

Commit b23f7cd

Browse files
author
Michal Malinowski
committed
applied PSR-0 coding standards behind code elements in document root
1 parent 09c6176 commit b23f7cd

File tree

1 file changed

+11
-6
lines changed
  • app/code/Magento/AdminNotification/Controller/Adminhtml/System/Message

1 file changed

+11
-6
lines changed
Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
*
4-
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
4+
*@copyright Copyright(c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
55
*/
66
namespace Magento\AdminNotification\Controller\Adminhtml\System\Message;
77

@@ -13,10 +13,11 @@ class ListAction extends \Magento\Backend\App\AbstractAction
1313
public function execute()
1414
{
1515
$severity = $this->getRequest()->getParam('severity');
16-
$default = array(
16+
$default = [
1717
'severity' => $severity,
18-
'text' => 'All recent issues have been fixed. Please refresh the screen for an update.',
19-
);
18+
'text' => 'All recent issues have been fixed. '
19+
.'Please refresh the screen for an update.',
20+
];
2021
$messageCollection = $this->_objectManager->get(
2122
'Magento\AdminNotification\Model\Resource\System\Message\Collection'
2223
);
@@ -25,13 +26,17 @@ public function execute()
2526
}
2627
$result = [];
2728
foreach ($messageCollection->getItems() as $item) {
28-
$result[] = ['severity' => $item->getSeverity(), 'text' => $item->getText()];
29+
$result[] = [
30+
'severity' => $item->getSeverity(),
31+
'text' => $item->getText(),
32+
];
2933
}
3034
if (empty($result)) {
3135
$result[] = $default;
3236
}
3337
$this->getResponse()->representJson(
34-
$this->_objectManager->get('Magento\Core\Helper\Data')->jsonEncode($result)
38+
$this->_objectManager->get('Magento\Core\Helper\Data')
39+
->jsonEncode($result)
3540
);
3641
}
3742
}

0 commit comments

Comments
 (0)