upgrade to laravel 7 and set branch to v2

This commit is contained in:
2020-12-25 11:22:15 +00:00
parent 516105c492
commit 0ddd298350
4638 changed files with 132501 additions and 190226 deletions

View File

@@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/*
* This file is part of the php-code-coverage package.
*
@@ -35,7 +35,9 @@ final class Builder
private function addItems(Directory $root, array $items, array $tests, bool $cacheTokens): void
{
foreach ($items as $key => $value) {
if (\substr($key, -2) == '/f') {
$key = (string) $key;
if (\substr($key, -2) === '/f') {
$key = \substr($key, 0, -2);
if (\file_exists($root->getPath() . \DIRECTORY_SEPARATOR . $key)) {
@@ -100,7 +102,7 @@ final class Builder
for ($i = 0; $i < $max; $i++) {
$type = '';
if ($i == ($max - 1)) {
if ($i === ($max - 1)) {
$type = '/f';
}
@@ -190,7 +192,7 @@ final class Builder
for ($i = 0; $i < $max - 1; $i++) {
if (!isset($paths[$i][0]) ||
!isset($paths[$i + 1][0]) ||
$paths[$i][0] != $paths[$i + 1][0]) {
$paths[$i][0] !== $paths[$i + 1][0]) {
$done = true;
break;
@@ -200,7 +202,7 @@ final class Builder
if (!$done) {
$commonPath .= $paths[0][0];
if ($paths[0][0] != \DIRECTORY_SEPARATOR) {
if ($paths[0][0] !== \DIRECTORY_SEPARATOR) {
$commonPath .= \DIRECTORY_SEPARATOR;
}