Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLANET-4626 Update composer dev dependencies to match blocks-plugins, #1005

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

sagarsdeshmukh
Copy link
Member

Sync phpcs configuration with blocks-plugins,
Fix PHPCS errors

JIRA 4626

Copy link
Contributor

@Inwerpsel Inwerpsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you bring this up to date with the changes from the latest release? I suggest to not try fix the merge conflicts as too much changed inside those files, and just use the version from the release and fix any violations it has.

Besides that and a couple smaller remarks the PR looks good.

partials/tags-box.php Show resolved Hide resolved
search.php Show resolved Hide resolved
single-campaign.php Show resolved Hide resolved
}


/**
* Use wp unit testcase factories to create data in database for the tests.
*/
function initialize_planet4_data() {
public function initialize_planet4_data() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function can be private as it's only for internal use. Maybe we can add a check in the linter to see if public functions are actually used outside the class?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a linter check on public function usage would be nice idea, if you have some link/details in this context would be very helpful 👍

exporter-helper.php Show resolved Hide resolved
exporter.php Show resolved Hide resolved
exporter.php Show resolved Hide resolved
@sagarsdeshmukh sagarsdeshmukh force-pushed the planet-4626 branch 5 times, most recently from 8beeef9 to 329d660 Compare February 13, 2020 06:17
Copy link
Contributor

@Inwerpsel Inwerpsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few small questions.

$options = get_option( 'planet4_options' );
$weight = get_post_meta( $post->ID, 'weight', true );
$options = get_option( 'planet4_options' );
$default_max_wt = P4_Search::DEFAULT_MAX_WEIGHT;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since P4_Search::DEFAULT_MAX_WEIGHT is a constant there really isn't a need to put it in a variable.

</th>
<td>
<?php wp_dropdown_pages( $dropdown_args ); ?> <?php echo $redirect_edit; ?>
<p class="description"><?php echo __( 'Leave this empty if you want to use the automated Tag page. Otherwise pick a page to redirect this Tag to.', 'planet4-master-theme-backend' ); ?></p>
<?php wp_dropdown_pages( $dropdown_args ); ?> <?php echo $redirect_edit; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be escaped?

exporter.php Show resolved Hide resolved
partials/tags-box.php Show resolved Hide resolved
exporter-helper.php Show resolved Hide resolved
classes/class-p4-post-campaign.php Show resolved Hide resolved
Sync phpcs configuration with blocks-plugins,
Fix PHPCS errors
Copy link
Contributor

@Inwerpsel Inwerpsel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@sagarsdeshmukh sagarsdeshmukh changed the base branch from develop to release/v1.79 February 19, 2020 12:37
@sagarsdeshmukh sagarsdeshmukh merged commit 4eddee9 into release/v1.79 Feb 19, 2020
@sagarsdeshmukh sagarsdeshmukh deleted the planet-4626 branch February 19, 2020 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants