Skip to content

Commit 7427284

Browse files
authored
added class vars to templates (OpenMage#4322)
1 parent 9fc0d23 commit 7427284

File tree

41 files changed

+93
-668
lines changed

Some content is hidden

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

41 files changed

+93
-668
lines changed

.phpstan.dist.baseline.neon

Lines changed: 6 additions & 646 deletions
Large diffs are not rendered by default.

app/code/core/Mage/Captcha/Block/Captcha/Zend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected function _toHtml()
7171
/**
7272
* Returns captcha model
7373
*
74-
* @return Mage_Captcha_Model_Interface
74+
* @return Mage_Captcha_Model_Zend
7575
*/
7676
public function getCaptchaModel()
7777
{

app/code/core/Mage/Weee/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function getAmount($product, $shipping = null, $billing = null, $website
171171
* Returns display type for price accordingly to current zone
172172
*
173173
* @param Mage_Catalog_Model_Product $product
174-
* @param array|null $compareTo
174+
* @param array|int|null $compareTo
175175
* @param string $zone
176176
* @param Mage_Core_Model_Store $store
177177
* @return bool|int

app/design/adminhtml/default/default/template/captcha/zend.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
?>
1616
<?php $captcha = $this->getCaptchaModel() ?>
17-
<?php /** @var Mage_Core_Block_Captcha_Zend $this */ ?>
17+
<?php /** @var Mage_Captcha_Block_Captcha_Zend $this */ ?>
1818
<div class="clear"></div>
1919
<div class="captcha">
2020
<div class="captcha-input input-box input-left">

app/design/adminhtml/default/default/template/catalog/category/edit.phtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
?>
1616
<?php
1717
/**
18-
* Template for Mage_Adminhtml_Block_Catalog_Category_Cointainer
18+
* Template for Mage_Adminhtml_Block_Catalog_Category_Container
19+
*
20+
* @var Mage_Adminhtml_Block_Catalog_Category_Edit $this
1921
*/
2022
?>
2123

app/design/adminhtml/default/default/template/catalog/category/tree.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* @copyright Copyright (c) 2021-2023 The OpenMage Contributors (https://www.openmage.org)
1313
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
1414
*/
15+
16+
/** @var Mage_Adminhtml_Block_Catalog_Category_Tree $this */
1517
?>
1618
<div class="categories-side-col">
1719
<div class="content-header">

app/design/adminhtml/default/default/template/catalog/product/attribute/set/main.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* @copyright Copyright (c) 2021-2023 The OpenMage Contributors (https://www.openmage.org)
1313
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
1414
*/
15+
16+
/** @var Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Main $this */
1517
?>
1618
<div class="content-header">
1719
<table cellspacing="0">

app/design/adminhtml/default/default/template/catalog/product/attribute/set/toolbar/main.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* @copyright Copyright (c) 2022 The OpenMage Contributors (https://www.openmage.org)
1313
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
1414
*/
15+
16+
/** @var Mage_Adminhtml_Block_Catalog_Product_Attribute_Set_Toolbar_Main $this */
1517
?>
1618
<div class="content-header">
1719
<table cellspacing="0">

app/design/adminhtml/default/default/template/catalog/product/edit.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
<?php
1717
/**
1818
* Template for Mage_Adminhtml_Block_Catalog_Product_Edit
19+
*
20+
* @var Mage_Adminhtml_Block_Catalog_Product_Edit $this
1921
*/
2022
?>
2123

22-
23-
2424
<div class="content-header">
2525
<h3 class="icon-head head-products"><?php echo $this->getHeader() ?></h3>
2626
<p class="content-buttons form-buttons"><?php echo $this->getBackButtonHtml() ?>

app/design/adminhtml/default/default/template/catalog/product/edit/categories.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* @copyright Copyright (c) 2021-2023 The OpenMage Contributors (https://www.openmage.org)
1313
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
1414
*/
15+
16+
/** @var Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Categories $this */
1517
?>
1618
<div class="entry-edit">
1719
<div class="entry-edit-head">

0 commit comments

Comments
 (0)