Skip to content

Commit a6c0bfa

Browse files
committed
PHPCS: fix up the code base [2] - scope modifiers
Fixes relate to the following rules: * Always specify visibility for all class properties and methods.
1 parent fbbfc36 commit a6c0bfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WP_CLI/SearchReplacer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SearchReplacer {
2727
* @param bool $logging Whether logging.
2828
* @param integer $regex_limit The maximum possible replacements for each pattern in each subject string.
2929
*/
30-
function __construct( $from, $to, $recurse_objects = false, $regex = false, $regex_flags = '', $regex_delimiter = '/', $logging = false, $regex_limit = -1 ) {
30+
public function __construct( $from, $to, $recurse_objects = false, $regex = false, $regex_flags = '', $regex_delimiter = '/', $logging = false, $regex_limit = -1 ) {
3131
$this->from = $from;
3232
$this->to = $to;
3333
$this->recurse_objects = $recurse_objects;
@@ -52,7 +52,7 @@ function __construct( $from, $to, $recurse_objects = false, $regex = false, $reg
5252
*
5353
* @return array The original array with all elements replaced as needed.
5454
*/
55-
function run( $data, $serialised = false ) {
55+
public function run( $data, $serialised = false ) {
5656
return $this->_run( $data, $serialised );
5757
}
5858

0 commit comments

Comments
 (0)