Skip to content

Commit

Permalink
Missing PHPDoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Ferraz Luvisotto committed May 24, 2018
1 parent af84959 commit 949de44
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class CollectionProvider implements \Magento\Catalog\Model\Layer\ItemCollectionP
*/
private $collectionProcessor;

/**
* @param \Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface $collectionProcessor
* @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory
*/
public function __construct(
\Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface $collectionProcessor,
\Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $collectionFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public function __construct(JoinProcessorInterface $joinProcessor)
$this->joinProcessor = $joinProcessor;
}

/**
* @param Collection $collection
* @param SearchCriteriaInterface $searchCriteria
* @param array $attributeNames
* @return Collection
*/
public function process(
Collection $collection,
SearchCriteriaInterface $searchCriteria,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function __construct(
$this->newRelicWrapper = $newRelicWrapper;
}

/**
* @param Observer $observer
*/
public function execute(Observer $observer)
{
if ($this->config->isNewRelicEnabled()) {
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Sales/Setup/SalesSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ public function getEncryptor()
return $this->encryptor;
}

/**
* @return \Magento\Framework\DB\Adapter\AdapterInterface
*/
public function getConnection()
{
return $this->getSetup()->getConnection(self::$connectionName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ public function addError(Phrase $phrase)
return $this;
}

/**
* @param LocalizedException $exception
* @return $this
*/
public function addException(LocalizedException $exception)
{
$this->addErrorCalls++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function getOperators() : array
return $type->getConstants();
}

/*
/**
* Convert operator to string
*
* @return string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ class SimpleConstructor
*/
private $name;

/**
* @param int $entityId
* @param string $name
*/
public function __construct(
int $entityId,
string $name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ private function clearChangelog()
}
}

/**
* @param \Magento\Setup\Fixtures\Fixture $fixture
* @param OutputInterface $output
*/
private function executeFixture(\Magento\Setup\Fixtures\Fixture $fixture, OutputInterface $output)
{
$output->write('<info>' . $fixture->getActionTitle() . '... </info>');
Expand Down
4 changes: 4 additions & 0 deletions setup/src/Magento/Setup/Console/Style/MagentoStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,10 @@ private function autoPrependText()
}
}

/**
* @param $messages
* @return array
*/
private function reduceBuffer($messages)
{
// We need to know if the two last chars are PHP_EOL
Expand Down

0 comments on commit 949de44

Please sign in to comment.