Skip to content

Commit 24c8bb9

Browse files
committed
Simplify options merge
1 parent 0e3fd21 commit 24c8bb9

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

lib/jblond/Diff/Renderer/Html/Inline.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class Inline extends MainRenderer implements SubRendererInterface
4949
*/
5050
public function __construct(array $options = [])
5151
{
52-
parent::__construct();
53-
$this->setOptions($this->subOptions);
52+
parent::__construct($this->subOptions);
5453
$this->setOptions($options);
5554
}
5655

lib/jblond/Diff/Renderer/Html/SideBySide.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class SideBySide extends MainRenderer implements SubRendererInterface
4949
*/
5050
public function __construct(array $options = [])
5151
{
52-
parent::__construct();
53-
$this->setOptions($this->subOptions);
52+
parent::__construct($this->subOptions);
5453
$this->setOptions($options);
5554
}
5655

lib/jblond/Diff/Renderer/Html/Unified.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class Unified extends MainRenderer implements SubRendererInterface
4949
*/
5050
public function __construct(array $options = [])
5151
{
52-
parent::__construct();
53-
$this->setOptions($this->subOptions);
52+
parent::__construct($this->subOptions);
5453
$this->setOptions($options);
5554
}
5655

lib/jblond/Diff/Renderer/Text/InlineCli.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ class InlineCli extends MainRenderer implements SubRendererInterface
3737
*/
3838
public function __construct(array $options = [])
3939
{
40-
parent::__construct();
41-
$this->setOptions($this->subOptions);
40+
parent::__construct($this->subOptions);
4241
$this->setOptions($options);
4342
}
4443

0 commit comments

Comments
 (0)