Skip to content

Commit 773a023

Browse files
committed
Minor corrections to the last adjustments
1 parent 2d8ea7a commit 773a023

File tree

1 file changed

+11
-32
lines changed

1 file changed

+11
-32
lines changed

lib/functions/tlTestPlanMetrics.class.php

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -751,12 +751,8 @@ public function getExecCountersByPlatformExecStatus($id, $filters = null,
751751
{
752752
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
753753
$safe_id = intval($id);
754-
[
755-
,
756-
,
757-
$union,
758-
$platformSet
759-
] = $this->helperBuildSQLExecCounters($id, $filters, $opt);
754+
list (, , , $union, $platformSet) = $this->helperBuildSQLExecCounters(
755+
$id, $filters, $opt);
760756

761757
$add2key = '';
762758
$addOnWhere = '';
@@ -1005,11 +1001,8 @@ public function getExecCountersByExecStatus($id, $filters = null,
10051001
$opt = null)
10061002
{
10071003
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
1008-
[
1009-
$builds,
1010-
,
1011-
$union
1012-
] = $this->helperBuildSQLExecCounters($id, $filters, $opt);
1004+
list (, $builds, , $union,) = $this->helperBuildSQLExecCounters($id,
1005+
$filters, $opt);
10131006

10141007
if (is_null($builds) || empty($builds)) {
10151008
return null; // >>---> Bye!
@@ -1056,10 +1049,8 @@ private function getExecCountersByBuildUAExecStatus($id, $filters = null,
10561049
{
10571050
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
10581051
$safe_id = intval($id);
1059-
[
1060-
$builds,
1061-
$sqlStm
1062-
] = $this->helperGetExecCounters($safe_id, $filters, $opt);
1052+
list (, $builds, $sqlStm) = $this->helperGetExecCounters($safe_id,
1053+
$filters, $opt);
10631054

10641055
// Last Executions By Build and Platform (LEBBP)
10651056
// Please remember that Platforms (when exists) has Multiplier effect on test cases
@@ -2312,10 +2303,7 @@ public function getNotRunWithTesterAssigned($id, $filters = null,
23122303
$opt = null)
23132304
{
23142305
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
2315-
[
2316-
$my,
2317-
$builds
2318-
] = $this->helperGetExecCounters($id, $filters, $opt);
2306+
list ($my, $builds,) = $this->helperGetExecCounters($id, $filters, $opt);
23192307

23202308
// particular options
23212309
$my['opt'] = array_merge([
@@ -2433,13 +2421,8 @@ public function getNotRunWOTesterAssigned($id, $buildSet = null,
24332421
$filters = null, $opt = null)
24342422
{
24352423
$debugMsg = 'Class:' . __CLASS__ . ' - Method: ' . __FUNCTION__;
2436-
[
2437-
$my,
2438-
$builds
2439-
] = $this->helperGetExecCounters($id, $filters, $opt);
2440-
[
2441-
$buildsCfg
2442-
] = $this->helperGetHits($id, null, $buildSet,
2424+
list ($my, $builds,) = $this->helperGetExecCounters($id, $filters, $opt);
2425+
list (, $buildsCfg,) = $this->helperGetHits($id, null, $buildSet,
24432426
[
24442427
'ignorePlatform' => true
24452428
]);
@@ -2744,12 +2727,8 @@ public function getExecStatusMatrixFlat($id, $filters = null, $opt = null)
27442727

27452728
$my['opt'] = array_merge($my['opt'], (array) $opt);
27462729

2747-
[
2748-
$my,
2749-
,
2750-
,
2751-
$union
2752-
] = $this->helperBuildSQLTestSuiteExecCounters($id, $filters, $my['opt']);
2730+
list ($my, , , $union) = $this->helperBuildSQLTestSuiteExecCounters($id,
2731+
$filters, $my['opt']);
27532732

27542733
$sql = " /* {$debugMsg} UNION WITH ALL CLAUSE */ " .
27552734
" {$union['exec']} UNION ALL {$union['not_run']} ";

0 commit comments

Comments
 (0)