@@ -307,14 +307,14 @@ |
||
| 307 | 307 | */ |
| 308 | 308 | private function explodeCommitsArrays(array $commits) |
| 309 | 309 | { |
| 310 | - $explodedCommits = []; |
|
| 310 | + $explodedCommits = []; |
|
| 311 | 311 | |
| 312 | - foreach ($commits as $commit) { |
|
| 313 | - $explodedCommit = explode('|', $commit); |
|
| 314 | - $explodedCommit = array_combine(array_slice($this->commitFormatKeys, 0, count($explodedCommit)), $explodedCommit); |
|
| 315 | - $explodedCommits[$explodedCommit['commitHash']] = $explodedCommit; |
|
| 316 | - } |
|
| 312 | + foreach ($commits as $commit) { |
|
| 313 | + $explodedCommit = explode('|', $commit); |
|
| 314 | + $explodedCommit = array_combine(array_slice($this->commitFormatKeys, 0, count($explodedCommit)), $explodedCommit); |
|
| 315 | + $explodedCommits[$explodedCommit['commitHash']] = $explodedCommit; |
|
| 316 | + } |
|
| 317 | 317 | |
| 318 | - return $explodedCommits; |
|
| 318 | + return $explodedCommits; |
|
| 319 | 319 | } |
| 320 | 320 | } |
| 321 | 321 | \ No newline at end of file |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | $testSuites->appendChild(static::createTestSuite($rule::getRuleName(), $rule->getAssertions(), $xml)); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - $testSuites->setAttribute('name', 'pqi'); |
|
| 32 | - $testSuites->setAttribute('errors', static::sumDomChildsAttribute($testSuites, 'errors')); |
|
| 33 | - $testSuites->setAttribute('failures', static::sumDomChildsAttribute($testSuites, 'failures')); |
|
| 34 | - $testSuites->setAttribute('time', static::sumDomChildsAttribute($testSuites, 'time')); |
|
| 31 | + $testSuites->setAttribute('name', 'pqi'); |
|
| 32 | + $testSuites->setAttribute('errors', static::sumDomChildsAttribute($testSuites, 'errors')); |
|
| 33 | + $testSuites->setAttribute('failures', static::sumDomChildsAttribute($testSuites, 'failures')); |
|
| 34 | + $testSuites->setAttribute('time', static::sumDomChildsAttribute($testSuites, 'time')); |
|
| 35 | 35 | |
| 36 | 36 | $xml->appendChild($testSuites); |
| 37 | 37 | |