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 2ec6589 commit 856a781Copy full SHA for 856a781
class-phpcs-diff.php
@@ -20,7 +20,13 @@ class PHPCS_Diff {
20
21
private $no_diff_to_big = false;
22
23
- public function __construct( $version_control ) {
+ public function __construct( $version_control, $options = array() ) {
24
+
25
+ if ( true === is_array( $options ) && false === empty( $options ) ) {
26
+ foreach( $options as $option => $value ) {
27
+ $this->$option = $value;
28
+ }
29
30
31
$this->version_control = $version_control;
32
0 commit comments