diff --git a/app/code/Magento/CatalogGraphQl/Model/Layer/CollectionProvider.php b/app/code/Magento/CatalogGraphQl/Model/Layer/CollectionProvider.php index 1e6fdf0e60e66..86645b0d36fdb 100644 --- a/app/code/Magento/CatalogGraphQl/Model/Layer/CollectionProvider.php +++ b/app/code/Magento/CatalogGraphQl/Model/Layer/CollectionProvider.php @@ -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 diff --git a/app/code/Magento/NewRelicReporting/Model/Observer/ReportApplicationHandledExceptionToNewRelic.php b/app/code/Magento/NewRelicReporting/Model/Observer/ReportApplicationHandledExceptionToNewRelic.php index 724a488570207..ce7e95950c937 100644 --- a/app/code/Magento/NewRelicReporting/Model/Observer/ReportApplicationHandledExceptionToNewRelic.php +++ b/app/code/Magento/NewRelicReporting/Model/Observer/ReportApplicationHandledExceptionToNewRelic.php @@ -37,6 +37,9 @@ public function __construct( $this->newRelicWrapper = $newRelicWrapper; } + /** + * @param Observer $observer + */ public function execute(Observer $observer) { if ($this->config->isNewRelicEnabled()) { diff --git a/app/code/Magento/Sales/Setup/SalesSetup.php b/app/code/Magento/Sales/Setup/SalesSetup.php index bfc05c549ddb3..4be2b38b074e7 100644 --- a/app/code/Magento/Sales/Setup/SalesSetup.php +++ b/app/code/Magento/Sales/Setup/SalesSetup.php @@ -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); diff --git a/lib/internal/Magento/Framework/Exception/AbstractAggregateException.php b/lib/internal/Magento/Framework/Exception/AbstractAggregateException.php index 92a850511295a..ff142c5319006 100644 --- a/lib/internal/Magento/Framework/Exception/AbstractAggregateException.php +++ b/lib/internal/Magento/Framework/Exception/AbstractAggregateException.php @@ -78,6 +78,10 @@ public function addError(Phrase $phrase) return $this; } + /** + * @param LocalizedException $exception + * @return $this + */ public function addException(LocalizedException $exception) { $this->addErrorCalls++; diff --git a/lib/internal/Magento/Framework/GraphQl/Query/Resolver/Argument/Filter/Operator.php b/lib/internal/Magento/Framework/GraphQl/Query/Resolver/Argument/Filter/Operator.php index acd656e70ec62..ae2b8bfeabd1b 100644 --- a/lib/internal/Magento/Framework/GraphQl/Query/Resolver/Argument/Filter/Operator.php +++ b/lib/internal/Magento/Framework/GraphQl/Query/Resolver/Argument/Filter/Operator.php @@ -65,7 +65,7 @@ public static function getOperators() : array return $type->getConstants(); } - /* + /** * Convert operator to string * * @return string diff --git a/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessor/SimpleConstructor.php b/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessor/SimpleConstructor.php index f457a96e22a37..f875861e42b02 100644 --- a/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessor/SimpleConstructor.php +++ b/lib/internal/Magento/Framework/Webapi/Test/Unit/ServiceInputProcessor/SimpleConstructor.php @@ -19,6 +19,10 @@ class SimpleConstructor */ private $name; + /** + * @param int $entityId + * @param string $name + */ public function __construct( int $entityId, string $name diff --git a/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php b/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php index e084cd8ff6cad..03b74f637a7da 100644 --- a/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php +++ b/setup/src/Magento/Setup/Console/Command/GenerateFixturesCommand.php @@ -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('' . $fixture->getActionTitle() . '... '); diff --git a/setup/src/Magento/Setup/Console/Style/MagentoStyle.php b/setup/src/Magento/Setup/Console/Style/MagentoStyle.php index c3f292ce76e1e..cd2d4a77db65a 100755 --- a/setup/src/Magento/Setup/Console/Style/MagentoStyle.php +++ b/setup/src/Magento/Setup/Console/Style/MagentoStyle.php @@ -518,6 +518,10 @@ private function autoPrependText() } } + /** + * @param array $messages + * @return array + */ private function reduceBuffer($messages) { // We need to know if the two last chars are PHP_EOL