Skip to content

Commit

Permalink
Rename function so to use vipgoci_ prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmdharalds committed Feb 9, 2022
1 parent be25eb1 commit f23820b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ function vipgoci_run_init_options_reviews( array &$options ) :void {

// Transform to lower case, remove leading and ending whitespacing, and "." or "," at the end.
$options['review-comments-ignore'] = array_map(
'vipgci_results_standardize_ignorable_message',
'vipgoci_results_standardize_ignorable_message',
$options['review-comments-ignore']
);

Expand Down
4 changes: 2 additions & 2 deletions results.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ function vipgoci_results_filter_comments_to_max(
*
* @returns string
*/
function vipgci_results_standardize_ignorable_message(
function vipgoci_results_standardize_ignorable_message(
string $message
) :string {
$message = strtolower( $message );
Expand Down Expand Up @@ -750,7 +750,7 @@ function vipgoci_results_filter_ignorable(
$pr_issue
) {
if ( in_array(
vipgci_results_standardize_ignorable_message(
vipgoci_results_standardize_ignorable_message(
$pr_issue['issue']['message']
),
$options['review-comments-ignore'],
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ResultsFilterIgnorableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testFilterIgnorable1() {
);

$options['review-comments-ignore'] = array_map(
'vipgci_results_standardize_ignorable_message',
'vipgoci_results_standardize_ignorable_message',
$options['review-comments-ignore']
);

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/ResultsStandardizeIgnorableMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function setUp() :void {
/**
* Test standardizing function in different ways.
*
* @covers ::vipgci_results_standardize_ignorable_message
* @covers ::vipgoci_results_standardize_ignorable_message
*/
public function testStandardizeMessage1() :void {
$review_comments_input = array(
Expand All @@ -42,7 +42,7 @@ public function testStandardizeMessage1() :void {
);

$review_comments_observed = array_map(
'vipgci_results_standardize_ignorable_message',
'vipgoci_results_standardize_ignorable_message',
$review_comments_input
);

Expand Down

0 comments on commit f23820b

Please sign in to comment.