Skip to content

Commit e1b4c60

Browse files
committed
[~TASK] Fixed FireGento CS violations
1 parent 579e735 commit e1b4c60

8 files changed

Lines changed: 27 additions & 19 deletions

File tree

src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ public function showOldContent($oldContent, FireGento_AdminMonitoring_Model_Hist
219219
$oldContent = $this->decodeContent($oldContent);
220220

221221
if (is_array($oldContent)) {
222-
if (count($oldContent) > 0) {
223-
foreach ($oldContent as $key => $value) {
224-
$attributeName = $this->getMonitoringHelper()
225-
->getAttributeNameByTypeAndCode($row->getObjectType(), $key);
226-
$cell .= $this->formatCellContent($attributeName, $value);
227-
}
228-
} else {
229-
return $this->__('not available');
230-
}
222+
if (count($oldContent) > 0) {
223+
foreach ($oldContent as $key => $value) {
224+
$attributeName = $this->getMonitoringHelper()
225+
->getAttributeNameByTypeAndCode($row->getObjectType(), $key);
226+
$cell .= $this->formatCellContent($attributeName, $value);
227+
}
228+
} else {
229+
return $this->__('not available');
230+
}
231231
}
232232

233233
return $this->wrapColor($cell, '#ff0000');
@@ -236,7 +236,7 @@ public function showOldContent($oldContent, FireGento_AdminMonitoring_Model_Hist
236236
/**
237237
* Decode the given content string.
238238
*
239-
* @param string $content
239+
* @param string $content Content to decode
240240
* @return mixed
241241
*/
242242
private function decodeContent($content)
@@ -259,8 +259,8 @@ private function entities($string)
259259
/**
260260
* Format the cell content
261261
*
262-
* @param array|string $value Value
263262
* @param string $key Key
263+
* @param array|string $value Value
264264
* @return string Formatted string
265265
*/
266266
private function formatCellContent($key, $value)

src/app/code/community/FireGento/AdminMonitoring/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class FireGento_AdminMonitoring_Helper_Data extends Mage_Core_Helper_Abstract
3939
/**
4040
* Retrieve the attribute type by provided class name
4141
*
42-
* @param string $className Class Name
42+
* @param string $className Class Name
4343
* @return string|bool Attribute Type or false
4444
*/
4545
public function getAttributeTypeByClassName($className)

src/app/code/community/FireGento/AdminMonitoring/Model/History/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FireGento_AdminMonitoring_Model_History_Data
3535
/**
3636
* Init the saved model
3737
*
38-
* @param Mage_Core_Model_Abstract $savedModel
38+
* @param Mage_Core_Model_Abstract $savedModel Model which is to be saved
3939
*/
4040
public function __construct(Mage_Core_Model_Abstract $savedModel)
4141
{

src/app/code/community/FireGento/AdminMonitoring/Model/History/Diff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FireGento_AdminMonitoring_Model_History_Diff
3535
/**
3636
* Init the data model
3737
*
38-
* @param FireGento_AdminMonitoring_Model_History_Data $dataModel
38+
* @param FireGento_AdminMonitoring_Model_History_Data $dataModel History Data Model
3939
*/
4040
public function __construct(FireGento_AdminMonitoring_Model_History_Data $dataModel)
4141
{

src/app/code/community/FireGento/AdminMonitoring/Model/Observer/Model/Abstract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ abstract class FireGento_AdminMonitoring_Model_Observer_Model_Abstract
4343
private $dataModel;
4444

4545
/**
46+
* Abstract method for retrieving the history action.
47+
*
4648
* @return int
4749
*/
4850
abstract protected function getAction();

src/app/code/community/FireGento/AdminMonitoring/Model/Observer/Model/Save.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class FireGento_AdminMonitoring_Model_Observer_Model_Save
4141
/**
4242
* Handle the model_save_after event.
4343
*
44-
* @param Varien_Event_Observer $observer
44+
* @param Varien_Event_Observer $observer Observer Instance
4545
*/
4646
public function modelAfter(Varien_Event_Observer $observer)
4747
{
@@ -52,7 +52,7 @@ public function modelAfter(Varien_Event_Observer $observer)
5252
/**
5353
* Set the current hash of the given model.
5454
*
55-
* @param Mage_Core_Model_Abstract $model
55+
* @param Mage_Core_Model_Abstract $model Object
5656
*/
5757
private function setCurrentHash(Mage_Core_Model_Abstract $model)
5858
{

src/app/code/community/FireGento/AdminMonitoring/Model/Observer/Product/Attribute/Update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
class FireGento_AdminMonitoring_Model_Observer_Product_Attribute_Update
2929
extends FireGento_AdminMonitoring_Model_Observer_Log
3030
{
31-
const XML_PATH_ADMINMONITORING_LOG_PRODUCT_MASS_UPDATE = 'admin/firegento_adminmonitoring/product_mass_update_logging';
31+
const XML_PATH_ADMINMONITORING_PROD_ATTR_UPDATE = 'admin/firegento_adminmonitoring/product_mass_update_logging';
3232

3333
/**
3434
* Observe the catalog product attribute update before
@@ -38,7 +38,7 @@ class FireGento_AdminMonitoring_Model_Observer_Product_Attribute_Update
3838
*/
3939
public function catalogProductAttributeUpdateBefore(Varien_Event_Observer $observer)
4040
{
41-
if (!Mage::getStoreConfigFlag(self::XML_PATH_ADMINMONITORING_LOG_PRODUCT_MASS_UPDATE)) {
41+
if (!Mage::getStoreConfigFlag(self::XML_PATH_ADMINMONITORING_PROD_ATTR_UPDATE)) {
4242
return;
4343
}
4444

src/app/code/community/FireGento/AdminMonitoring/Model/RowUrl/Model/Abstract.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,23 @@
2828
abstract class FireGento_AdminMonitoring_Model_RowUrl_Model_Abstract
2929
{
3030
/**
31+
* Abstract method for retrieving the class name.
32+
*
3133
* @return string
3234
*/
3335
abstract protected function getClassName();
3436

3537
/**
38+
* Abstract method for retrieving the route path.
39+
*
3640
* @return string
3741
*/
3842
abstract protected function getRoutePath();
3943

4044
/**
41-
* @param Mage_Core_Model_Abstract $model
45+
* Abstract method for retrieving the route params.
46+
*
47+
* @param Mage_Core_Model_Abstract $model Object
4248
* @return array
4349
*/
4450
abstract protected function getRouteParams(Mage_Core_Model_Abstract $model);

0 commit comments

Comments
 (0)