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;
use SebastianBergmann\CodeCoverage\Util;
@@ -44,7 +43,7 @@ abstract class AbstractNode implements \Countable
public function __construct(string $name, self $parent = null)
{
if (\substr($name, -1) == '/') {
if (\substr($name, -1) == \DIRECTORY_SEPARATOR) {
$name = \substr($name, 0, -1);
}
@@ -84,7 +83,7 @@ abstract class AbstractNode implements \Countable
if ($this->parent === null || $this->parent->getPath() === null || $this->parent->getPath() === false) {
$this->path = $this->name;
} else {
$this->path = $this->parent->getPath() . '/' . $this->name;
$this->path = $this->parent->getPath() . \DIRECTORY_SEPARATOR . $this->name;
}
}