Skip to content

Commit 44786a1

Browse files
committed
Code Quality Fix: Invalid @var usage
1 parent 247ea35 commit 44786a1

File tree

760 files changed

+1036
-1036
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

760 files changed

+1036
-1036
lines changed

app/code/Magento/AdminNotification/Model/System/Message/Baseurl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ protected function _getConfigUrl()
6969
) {
7070
$output = $this->_urlBuilder->getUrl('adminhtml/system_config/edit', ['section' => 'web']);
7171
} else {
72-
/** @var $dataCollection \Magento\Config\Model\ResourceModel\Config\Data\Collection */
72+
/** @var \Magento\Config\Model\ResourceModel\Config\Data\Collection $dataCollection */
7373
$dataCollection = $this->_configValueFactory->create()->getCollection();
7474
$dataCollection->addValueFilter(\Magento\Store\Model\Store::BASE_URL_PLACEHOLDER);
7575

76-
/** @var $data \Magento\Framework\App\Config\ValueInterface */
76+
/** @var \Magento\Framework\App\Config\ValueInterface $data */
7777
foreach ($dataCollection as $data) {
7878
if ($data->getScope() == 'stores') {
7979
$code = $this->_storeManager->getStore($data->getScopeId())->getCode();

app/code/Magento/AdminNotification/Model/System/Message/Security.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function _isFileAccessible()
110110
{
111111
$unsecureBaseURL = $this->_config->getValue(Store::XML_PATH_UNSECURE_BASE_URL, 'default');
112112

113-
/** @var $http Curl */
113+
/** @var Curl $http */
114114
$http = $this->_curlFactory->create();
115115
$http->setOptions(['timeout' => $this->_verificationTimeOut]);
116116
$http->write(Request::METHOD_POST, $unsecureBaseURL . $this->_filePath);

app/code/Magento/AdminNotification/Observer/PredispatchAdminActionControllerObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)
4646
{
4747
if ($this->_backendAuthSession->isLoggedIn()) {
4848
$feedModel = $this->_feedFactory->create();
49-
/* @var $feedModel \Magento\AdminNotification\Model\Feed */
49+
/** @var \Magento\AdminNotification\Model\Feed $feedModel */
5050
$feedModel->checkUpdate();
5151
}
5252
}

app/code/Magento/AdminNotification/view/adminhtml/templates/toolbar_entry.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
class="admin__action-dropdown-menu"
3131
data-mark-as-read-url="<?= $escaper->escapeUrl($block->getUrl('adminhtml/notification/ajaxMarkAsRead')) ?>">
3232
<?php foreach ($block->getLatestUnreadNotifications() as $notification): ?>
33-
<?php /** @var $notification \Magento\AdminNotification\Model\Inbox */ ?>
33+
<?php /** @var \Magento\AdminNotification\Model\Inbox $notification */ ?>
3434
<li class="notifications-entry<?php if ($notification->getSeverity() == 1): ?> notifications-critical<?php endif; ?>"
3535
data-notification-id="<?= $escaper->escapeHtmlAttr($notification->getId()) ?>"
3636
data-notification-severity="<?php if ($notification->getSeverity() == 1): ?>1<?php endif; ?>">

app/code/Magento/AdvancedPricingImportExport/Controller/Adminhtml/Export/GetFilter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public function execute()
4343
}
4444
/** @var \Magento\Framework\View\Result\Layout $resultLayout */
4545
$resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
46-
/** @var $attrFilterBlock \Magento\ImportExport\Block\Adminhtml\Export\Filter */
46+
/** @var \Magento\ImportExport\Block\Adminhtml\Export\Filter $attrFilterBlock */
4747
$attrFilterBlock = $resultLayout->getLayout()->getBlock('export.filter');
48-
/** @var $export \Magento\ImportExport\Model\Export */
48+
/** @var \Magento\ImportExport\Model\Export $export */
4949
$export = $this->_objectManager->create(\Magento\ImportExport\Model\Export::class);
5050
$export->setData($data);
5151
$attrFilterBlock->prepareCollection($this->filtersProvider->getFilters($export));

app/code/Magento/Authorization/Model/ResourceModel/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function saveRel(\Magento\Authorization\Model\Rules $rule)
114114
/** Give basic admin permissions to any admin */
115115
$postedResources[] = AbstractAction::ADMIN_RESOURCE;
116116
$acl = $this->_aclBuilder->getAcl();
117-
/** @var $resource \Magento\Framework\Acl\AclResource */
117+
/** @var \Magento\Framework\Acl\AclResource $resource */
118118
foreach ($acl->getResources() as $resourceId) {
119119
$row['permission'] = in_array($resourceId, $postedResources) ? 'allow' : 'deny';
120120
$row['resource_id'] = $resourceId;

app/code/Magento/Backend/App/AbstractAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ protected function getMessageManager()
241241
*/
242242
protected function _setActiveMenu($itemId)
243243
{
244-
/** @var $menuBlock \Magento\Backend\Block\Menu */
244+
/** @var \Magento\Backend\Block\Menu $menuBlock */
245245
$menuBlock = $this->_view->getLayout()->getBlock('menu');
246246
$menuBlock->setActive($itemId);
247247
$parents = $menuBlock->getMenuModel()->getParentItems($itemId);
248248
foreach ($parents as $item) {
249-
/** @var $item \Magento\Backend\Model\Menu\Item */
249+
/** @var \Magento\Backend\Model\Menu\Item $item */
250250
$this->_view->getPage()->getConfig()->getTitle()->prepend($item->getTitle());
251251
}
252252
return $this;

app/code/Magento/Backend/Block/Dashboard/Tab/Customers/Most.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function _construct()
5050
protected function _prepareCollection()
5151
{
5252
$collection = $this->_collectionFactory->create();
53-
/* @var $collection \Magento\Reports\Model\ResourceModel\Order\Collection */
53+
/** @var \Magento\Reports\Model\ResourceModel\Order\Collection $collection */
5454
$collection->groupByCustomer()->addOrdersCount()->joinCustomerName();
5555

5656
$storeFilter = 0;

app/code/Magento/Backend/Block/Dashboard/Totals.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function _prepareLayout()
7575
$firstPeriod = array_key_first($this->period->getDatePeriods());
7676
$period = $this->getRequest()->getParam('period', $firstPeriod);
7777

78-
/* @var $collection Collection */
78+
/** @var Collection $collection */
7979
$collection = $this->_collectionFactory->create()->addCreateAtPeriodFilter(
8080
$period
8181
)->calculateTotals(

app/code/Magento/Backend/Block/Menu.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function renderMenu($menu, $level = 0)
276276
{
277277
$output = '<ul ' . (0 == $level ? 'id="nav" role="menubar"' : '') . ' >';
278278

279-
/** @var $menuItem \Magento\Backend\Model\Menu\Item */
279+
/** @var \Magento\Backend\Model\Menu\Item $menuItem */
280280
foreach ($this->_getMenuIterator($menu) as $menuItem) {
281281
$output .= '<li ' . $this->_renderMouseEvent(
282282
$menuItem
@@ -309,7 +309,7 @@ protected function _countItems($items)
309309
{
310310
$total = count($items);
311311
foreach ($items as $item) {
312-
/** @var $item \Magento\Backend\Model\Menu\Item */
312+
/** @var \Magento\Backend\Model\Menu\Item $item */
313313
if ($item->hasChildren()) {
314314
$total += $this->_countItems($item->getChildren());
315315
}
@@ -400,7 +400,7 @@ public function renderNavigation($menu, $level = 0, $limit = 0, $colBrakes = [])
400400
$outputStart = '<ul ' . (0 == $level ? 'id="nav" role="menubar"' : 'role="menu"') . ' >';
401401
$output = '';
402402

403-
/** @var $menuItem \Magento\Backend\Model\Menu\Item */
403+
/** @var \Magento\Backend\Model\Menu\Item $menuItem */
404404
foreach ($this->_getMenuIterator($menu) as $menuItem) {
405405
$menuId = $menuItem->getId();
406406
$itemName = substr($menuId, strrpos($menuId, '::') + 2);

0 commit comments

Comments
 (0)