Media Library: Implement upload media from URL #67628
Annotations
10 errors and 8 warnings
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L6
There must be exactly one blank line before the tags in a doc comment (Generic.Commenting.DocComment.SpacingBeforeTags)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L12
Missing doc comment for function wpcom_media_url_import() (Squiz.Commenting.FunctionComment.Missing)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L13
Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L13
Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L14
Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L14
Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L14
Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L16
Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L17
Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L18
Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L9
Use statements are not alphabetically sorted (MediaWiki.Classes.UnsortedUseStatements.UnsortedUse)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L9
Unused use statement "Jetpack_Connection" (MediaWiki.Classes.UnusedUseStatement.UnusedUse)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L13
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L43
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L44
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L48
Array double arrow not aligned correctly; expected 2 space(s) between "'method'" and double arrow, but found 1. (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wpcom-media/wpcom-media-url-import.php#L50
Array double arrow not aligned correctly; expected 1 space(s) between "'Content-Type'" and double arrow, but found 4. (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
|
Loading