From 3548a1af122042a44d40941bed3a38576042937e Mon Sep 17 00:00:00 2001 From: "Kristof Ringleff, Fooman" Date: Wed, 8 Feb 2017 09:51:54 +1300 Subject: [PATCH] Correct assignment and consistent naming, add phpdoc --- lib/internal/Magento/Framework/App/Cron.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/internal/Magento/Framework/App/Cron.php b/lib/internal/Magento/Framework/App/Cron.php index 2bb0330b5a61b..53a6a08f03e2a 100644 --- a/lib/internal/Magento/Framework/App/Cron.php +++ b/lib/internal/Magento/Framework/App/Cron.php @@ -50,6 +50,7 @@ class Cron implements \Magento\Framework\AppInterface * @param Console\Response $response * @param ObjectManagerInterface $objectManager * @param array $parameters + * @param AreaList|null $areaList */ public function __construct( State $state, @@ -57,14 +58,14 @@ public function __construct( Console\Response $response, ObjectManagerInterface $objectManager, array $parameters = [], - \Magento\Framework\App\AreaList $arealist = null + \Magento\Framework\App\AreaList $areaList = null ) { $this->_state = $state; $this->_request = $request; $this->_request->setParams($parameters); $this->_response = $response; $this->objectManager = $objectManager; - $this->arealist = $arealist ?: $this->objectManager->get(\Magento\Framework\App\AreaList::class); + $this->areaList = $areaList ? $areaList : $this->objectManager->get(\Magento\Framework\App\AreaList::class); } /**