composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -7,7 +7,6 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\CodeCoverage\Node;
/**
@@ -342,9 +341,14 @@ final class File extends AbstractNode
$this->codeUnitsByLine[$lineNumber] = [];
}
$this->processClasses($tokens);
$this->processTraits($tokens);
$this->processFunctions($tokens);
try {
$this->processClasses($tokens);
$this->processTraits($tokens);
$this->processFunctions($tokens);
} catch (\OutOfBoundsException $e) {
// This can happen with PHP_Token_Stream if the file is syntactically invalid,
// and probably affects a file that wasn't executed.
}
unset($tokens);
foreach (\range(1, $this->linesOfCode['loc']) as $lineNumber) {
@@ -488,7 +492,7 @@ final class File extends AbstractNode
'coverage' => 0,
'crap' => 0,
'package' => $class['package'],
'link' => $link . $class['startLine']
'link' => $link . $class['startLine'],
];
foreach ($class['methods'] as $methodName => $method) {
@@ -501,7 +505,7 @@ final class File extends AbstractNode
foreach (\range($method['startLine'], $method['endLine']) as $lineNumber) {
$this->codeUnitsByLine[$lineNumber] = [
&$this->classes[$className],
&$this->classes[$className]['methods'][$methodName]
&$this->classes[$className]['methods'][$methodName],
];
}
}
@@ -524,7 +528,7 @@ final class File extends AbstractNode
'coverage' => 0,
'crap' => 0,
'package' => $trait['package'],
'link' => $link . $trait['startLine']
'link' => $link . $trait['startLine'],
];
foreach ($trait['methods'] as $methodName => $method) {
@@ -537,7 +541,7 @@ final class File extends AbstractNode
foreach (\range($method['startLine'], $method['endLine']) as $lineNumber) {
$this->codeUnitsByLine[$lineNumber] = [
&$this->traits[$traitName],
&$this->traits[$traitName]['methods'][$methodName]
&$this->traits[$traitName]['methods'][$methodName],
];
}
}
@@ -563,7 +567,7 @@ final class File extends AbstractNode
'ccn' => $function['ccn'],
'coverage' => 0,
'crap' => 0,
'link' => $link . $function['startLine']
'link' => $link . $function['startLine'],
];
foreach (\range($function['startLine'], $function['endLine']) as $lineNumber) {