We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb9ed6d commit 5095bdcCopy full SHA for 5095bdc
src/Differ.php
@@ -27,22 +27,15 @@ class Differ
27
/**
28
* @var bool
29
*/
30
- private $showNonDiffLines = true;
+ private $showNonDiffLines;
31
32
33
* @param string $header
34
35
- public function __construct($header = "--- Original\n+++ New\n")
+ public function __construct($header = "--- Original\n+++ New\n", $showNonDiffLines = true)
36
{
37
$this->header = $header;
38
- }
39
-
40
- /**
41
- * @param bool $show
42
- */
43
- public function setShowNonDiffLines($show)
44
- {
45
- $this->showNonDiffLines = $show;
+ $this->showNonDiffLines = $showNonDiffLines;
46
}
47
48
0 commit comments