@@ -565,9 +565,10 @@ public function magentoCLI($command, $timeout = null, $arguments = null)
565
565
/**
566
566
* Executes Magento Cron keeping the interval (> 60 seconds between each run)
567
567
*
568
- * @param string|null $cronGroups
569
- * @param int|null $timeout
570
- * @param string|null $arguments
568
+ * @param string|null $cronGroups
569
+ * @param integer|null $timeout
570
+ * @param string|null $arguments
571
+ * @return string
571
572
*/
572
573
public function magentoCron ($ cronGroups = null , $ timeout = null , $ arguments = null )
573
574
{
@@ -596,7 +597,7 @@ private function notifyCronFinished(array $cronGroups = [])
596
597
* Returns last Cron execution time for specific cron or all crons
597
598
*
598
599
* @param array $cronGroups
599
- * @return int
600
+ * @return integer
600
601
*/
601
602
private function getLastCronExecution (array $ cronGroups = [])
602
603
{
@@ -606,7 +607,7 @@ private function getLastCronExecution(array $cronGroups = [])
606
607
607
608
$ cronGroups = array_merge ($ cronGroups , ['* ' ]);
608
609
609
- return array_reduce ($ cronGroups , function ($ lastExecution , $ group ) {
610
+ return array_reduce ($ cronGroups , function ($ lastExecution , $ group ) {
610
611
if (isset ($ this ->cronExecution [$ group ]) && $ this ->cronExecution [$ group ] > $ lastExecution ) {
611
612
$ lastExecution = $ this ->cronExecution [$ group ];
612
613
}
@@ -618,9 +619,9 @@ private function getLastCronExecution(array $cronGroups = [])
618
619
/**
619
620
* Returns time to wait for next run
620
621
*
621
- * @param array $cronGroups
622
- * @param int $cronInterval
623
- * @return int
622
+ * @param array $cronGroups
623
+ * @param integer $cronInterval
624
+ * @return integer
624
625
*/
625
626
private function getCronWait (array $ cronGroups = [], int $ cronInterval = self ::MAGENTO_CRON_INTERVAL )
626
627
{
@@ -1053,9 +1054,9 @@ public function getSecret($key)
1053
1054
/**
1054
1055
* Waits proper amount of time to perform Cron execution
1055
1056
*
1056
- * @param $cronGroups
1057
- * @param $timeout
1058
- * @param $arguments
1057
+ * @param string $cronGroups
1058
+ * @param integer $timeout
1059
+ * @param string $arguments
1059
1060
* @return string
1060
1061
* @throws TestFrameworkException
1061
1062
*/
0 commit comments