Skip to content

Commit 3548a1a

Browse files
committed
Correct assignment and consistent naming, add phpdoc
1 parent 099ee76 commit 3548a1a

File tree

1 file changed

+3
-2
lines changed
  • lib/internal/Magento/Framework/App

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/App/Cron.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,22 @@ class Cron implements \Magento\Framework\AppInterface
5050
* @param Console\Response $response
5151
* @param ObjectManagerInterface $objectManager
5252
* @param array $parameters
53+
* @param AreaList|null $areaList
5354
*/
5455
public function __construct(
5556
State $state,
5657
Console\Request $request,
5758
Console\Response $response,
5859
ObjectManagerInterface $objectManager,
5960
array $parameters = [],
60-
\Magento\Framework\App\AreaList $arealist = null
61+
\Magento\Framework\App\AreaList $areaList = null
6162
) {
6263
$this->_state = $state;
6364
$this->_request = $request;
6465
$this->_request->setParams($parameters);
6566
$this->_response = $response;
6667
$this->objectManager = $objectManager;
67-
$this->arealist = $arealist ?: $this->objectManager->get(\Magento\Framework\App\AreaList::class);
68+
$this->areaList = $areaList ? $areaList : $this->objectManager->get(\Magento\Framework\App\AreaList::class);
6869
}
6970

7071
/**

0 commit comments

Comments
 (0)