for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace N98\Magento\Command\Indexer;
use N98\Magento\Command\AbstractMagentoCommand;
class AbstractMviewIndexerCommand extends AbstractMagentoCommand
{
/**
* @return \Enterprise_Mview_Model_Resource_Metadata_Collection
*/
public function getMetaDataCollection()
$collection = $this->_getModel('enterprise_mview/metadata')->getCollection();
_getModel()
$mage2class
This check looks for function calls that miss required arguments.
return $collection;
}
* @return array[]
protected function getIndexers()
/** @var \Enterprise_Index_Helper_Data $helper */
$helper = $this->_getHelper('enterprise_index');
_getHelper()
$indexers = array();
foreach ($helper->getIndexers(true) as $indexer) {
$indexers[(string) $indexer->index_table] = $indexer;
foreach ($indexers as $indexerKey => $indexerData) {
if (!isset($indexerData->action_model->changelog)) {
unset($indexers[$indexerKey]);
return $indexers;
* @return \Enterprise_Mview_Model_Client
protected function getMviewClient()
return $this->_getModel('enterprise_mview/client');
This check looks for function calls that miss required arguments.