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

SLR Support #2081

Merged
merged 76 commits into from
Oct 30, 2024
Merged

SLR Support #2081

merged 76 commits into from
Oct 30, 2024

Conversation

lucatume
Copy link
Contributor

@lucatume lucatume commented May 3, 2024

No description provided.

@lucatume lucatume self-assigned this May 3, 2024
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
@lucatume lucatume force-pushed the feat/slr-support branch from 1b361cc to 951e408 Compare May 6, 2024 11:12
@lucatume lucatume marked this pull request as ready for review May 6, 2024 11:13
@lucatume lucatume requested review from bordoni and Camwyn May 6, 2024 11:15
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/Tribe/Assets.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
src/functions/template-tags/general.php Outdated Show resolved Hide resolved
bordoni
bordoni previously approved these changes May 9, 2024
Copy link
Member

@bordoni bordoni left a comment

Choose a reason for hiding this comment

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

I wonder which branch we should use, I would urge this to be released with the plugin consolidation. So probably bucket/plugin-consolidation

Camwyn
Camwyn previously approved these changes May 10, 2024
src/Tribe/Assets.php Outdated Show resolved Hide resolved
@lucatume lucatume dismissed stale reviews from Camwyn and bordoni via 20299d0 May 16, 2024 12:26
package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "tribe-common",
"version": "5.2.7",
"version": "5.4.0-dev",
Copy link
Contributor

Choose a reason for hiding this comment

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

We skipped 5.3?

@@ -559,14 +564,14 @@ function tribe_format_currency( $cost, $post_id = null, $currency_symbol = null,
*
* @category Events
* @param string $optionName Name of the option to retrieve.
* @param string $default Value to return if no such option is found.
* @param string $default Value to return if no such option is found.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you fix the rest of the docblock spacing, since you started?

@stratease stratease added the needs release Needs an associated release in Central before merging. label May 16, 2024
if ( ! empty( $asset->origin_url ) ) {
$asset->origin_url = trailingslashit( $asset->origin_url );
}
$extension = substr( $file, strrpos( $file, '.' ) + 1 );
Copy link
Contributor

Choose a reason for hiding this comment

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

[phpcs] reported by reviewdog 🐶
Generic.Formatting.MultipleStatementAlignment.NotSameWarning
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space

$asset->origin_url = trailingslashit( $asset->origin_url );
}
$extension = substr( $file, strrpos( $file, '.' ) + 1 );
$plugin_path = ! empty( $origin->plugin_path ) ? $origin->plugin_path : $origin->pluginPath;
Copy link
Contributor

Choose a reason for hiding this comment

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

[phpcs] reported by reviewdog 🐶
WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
Object property "$pluginPath" is not in valid snake_case format, try "$plugin_path"

$plugin_path = ! empty( $origin->plugin_path ) ? $origin->plugin_path : $origin->pluginPath;

// Infer the type from the file extension, if not passed.
$type = empty( $arguments['type'] ) ? $extension : $arguments['type'];
Copy link
Contributor

Choose a reason for hiding this comment

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

[phpcs] reported by reviewdog 🐶
Generic.Formatting.MultipleStatementAlignment.IncorrectWarning
Equals sign not aligned correctly; expected 1 space but found 3 spaces

@lucatume lucatume force-pushed the feat/slr-support branch from 252a5d7 to 575123f Compare June 5, 2024 11:30
// Try to enqueue the minified version of the file if not debugging scripts or the file is not available.
if ( ! str_contains( $file, '.min.' ) ) {
// From `something.js` to `something.min.js`.
$minified_file = substr( $file, 0, - ( strlen( $extension ) + 1 ) ) . '.min.' . $extension;
Copy link
Contributor

Choose a reason for hiding this comment

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

[phpcs] reported by reviewdog 🐶
Generic.Formatting.MultipleStatementAlignment.NotSameWarning
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 3 spaces

$asset->type = 'js';
} elseif ( substr( $asset->file, -4, 4 ) === '.css' ) {
$asset->type = 'css';
$extension = substr( $file, strrpos( $file, '.' ) + 1 );
Copy link
Contributor

Choose a reason for hiding this comment

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

[phpcs] reported by reviewdog 🐶
Generic.Formatting.MultipleStatementAlignment.IncorrectWarning
Equals sign not aligned correctly; expected 1 space but found 3 spaces

@lucatume lucatume force-pushed the feat/slr-support branch from 3d31bfe to cbe471b Compare June 5, 2024 13:50
dpanta94 and others added 26 commits August 30, 2024 19:29
…foreinvalid-license

Check Uplink before invalid license
Show close modal button on twentytwenty with !important
Copy link
Contributor

@tec-bot tec-bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

phpcs

[phpcs] reported by reviewdog 🐶
Squiz.Commenting.FunctionComment.Missing
Missing doc comment for function __callStatic()

public static function __callStatic( $name, $arguments ) {


[phpcs] reported by reviewdog 🐶
Generic.WhiteSpace.ScopeIndent.Incorrect
Line indented incorrectly; expected at least 1 tabs, found 0


[phpcs] reported by reviewdog 🐶
Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed
Tabs must be used to indent lines; spaces are not allowed


[phpcs] reported by reviewdog 🐶
Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar
Expected 1 space before asterisk; 5 found


[phpcs] reported by reviewdog 🐶
WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned
Array double arrow not aligned correctly; expected 2 space(s) between "'href'" and double arrow, but found 1.

'href' => [],


[phpcs] reported by reviewdog 🐶
WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned
Array double arrow not aligned correctly; expected 1 space(s) between "'style'" and double arrow, but found 2.

'style' => [],


[phpcs] reported by reviewdog 🐶
WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned
Array double arrow not aligned correctly; expected 3 space(s) between "'span'" and double arrow, but found 6.

'span' => [


[phpcs] reported by reviewdog 🐶
WordPress.Arrays.ArrayIndentation.CloseBraceNotAligned
Array closer not aligned correctly; expected 20 space(s) but found 38

'style' => [],],


[phpcs] reported by reviewdog 🐶
NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserMultiLine
Expected a new line before the array closer in a multi line array. Found: no spaces

'style' => [],],


[phpcs] reported by reviewdog 🐶
Generic.Formatting.MultipleStatementAlignment.NotSameWarning
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 6 spaces

$tags['svg'] = _wp_add_global_attributes(


[phpcs] reported by reviewdog 🐶
Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed
Spaces must be used for mid-line alignment; tabs are not allowed

'g' => [],


[phpcs] reported by reviewdog 🐶
Universal.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed
Spaces must be used for mid-line alignment; tabs are not allowed

$tags['path'] = [


[phpcs] reported by reviewdog 🐶
Generic.Formatting.MultipleStatementAlignment.NotSameWarning
Equals sign not aligned with surrounding assignments; expected 1 space but found 5 spaces

$tags['path'] = [


[phpcs] reported by reviewdog 🐶
Squiz.Commenting.BlockComment.NoNewLine
Block comment text must start on a new line

/* translators: %1$s: Black Friday year */

@bordoni bordoni merged commit ca88faf into master Oct 30, 2024
20 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs release Needs an associated release in Central before merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants