diff --git a/src/Report/Html/Renderer/File.php b/src/Report/Html/Renderer/File.php
index 2e88d198c..0ce9be6b1 100644
--- a/src/Report/Html/Renderer/File.php
+++ b/src/Report/Html/Renderer/File.php
@@ -339,7 +339,7 @@ protected function renderSource(FileNode $node): string
if (!empty($popoverTitle)) {
$popover = \sprintf(
- ' data-title="%s" data-content="%s" data-placement="bottom" data-html="true"',
+ ' data-title="%s" data-content="%s" data-placement="bottom" data-html="true" data-boundary="viewport"',
$popoverTitle,
\htmlspecialchars($popoverContent, $this->htmlSpecialCharsFlags)
);
diff --git a/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html b/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html
index 21694c58b..4296e2a71 100644
--- a/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html
+++ b/tests/_files/Report/HTML/CoverageForBankAccount/BankAccount.php.html
@@ -196,7 +196,7 @@
| |
| public function getBalance() |
| { |
- | return $this->balance; |
+ | return $this->balance; |
| } |
| |
| protected function setBalance($balance) |
@@ -210,16 +210,16 @@
| |
| public function depositMoney($balance) |
| { |
- | $this->setBalance($this->getBalance() + $balance); |
+ | $this->setBalance($this->getBalance() + $balance); |
| |
- | return $this->getBalance(); |
+ | return $this->getBalance(); |
| } |
| |
| public function withdrawMoney($balance) |
| { |
- | $this->setBalance($this->getBalance() - $balance); |
+ | $this->setBalance($this->getBalance() - $balance); |
| |
- | return $this->getBalance(); |
+ | return $this->getBalance(); |
| } |
| } |
diff --git a/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html b/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html
index 433c023a1..a44f5675a 100644
--- a/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html
+++ b/tests/_files/Report/HTML/CoverageForClassWithAnonymousFunction/source_with_class_and_anonymous_function.php.html
@@ -132,18 +132,18 @@
| { |
| public static function runAnonymous() |
| { |
- | $filter = ['abc124', 'abc123', '123']; |
+ | $filter = ['abc124', 'abc123', '123']; |
| |
- | array_walk( |
+ | array_walk( |
| $filter, |
| function (&$val, $key) { |
- | $val = preg_replace('|[^0-9]|', '', $val); |
- | } |
- | ); |
+ | $val = preg_replace('|[^0-9]|', '', $val); |
+ | } |
+ | ); |
| |
| |
- | $extravar = true; |
- | } |
+ | $extravar = true; |
+ | } |
| } |
diff --git a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html
index a89dea014..8fc6b6972 100644
--- a/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html
+++ b/tests/_files/Report/HTML/CoverageForFileWithIgnoredLines/source_with_ignore.php.html
@@ -133,7 +133,7 @@
| <?php |
- | if ($neverHappens) { |
+ | if ($neverHappens) { |
| |
| print '*'; |
| |