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

Media Library DAM management react component to handle the media requests [master] #15

Closed
wants to merge 24 commits into from

Conversation

Juzar10
Copy link
Collaborator

@Juzar10 Juzar10 commented Dec 18, 2024

PR Description

  • Add the basic react component to allow the tree structure for the media library folders.
  • Add the functionality to add new folders, rename folders, and delete the existing folders.
  • Add functionality to drag and drop the folders on the specific places.
Screen.Recording.2024-12-18.at.10.35.16.AM.mov

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Code analysis identified issues

action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

🚫 13 errors

⚠️ 2 warnings


Powered by rtCamp's GitHub Actions Library

Posting will continue in further review(s)

rtBot
rtBot previously requested changes Dec 18, 2024
Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Code analysis identified issues

action-phpcs-code-review has identified potential problems in this pull request during automated scanning. We recommend reviewing the issues noted and that they are resolved.

phpcs scanning turned up:

🚫 78 errors

⚠️ 14 warnings


Powered by rtCamp's GitHub Actions Library

Posting will continue in further review(s)

filemtime( RT_TRANSCODER_PATH . '/assets/build/css/media-library.css' )
);

wp_localize_script( 'easydam-media-library', 'MediaLibraryTaxonomyFilterData', array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).

filemtime( RT_TRANSCODER_PATH . '/assets/build/css/media-library.css' )
);

wp_localize_script( 'easydam-media-library', 'MediaLibraryTaxonomyFilterData', array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments).

);

wp_localize_script( 'easydam-media-library', 'MediaLibraryTaxonomyFilterData', array(
'terms' => get_terms( 'media-folder', array( 'hide_empty' => false ) ),
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Array double arrow not aligned correctly; expected 1 space(s) between "'terms'" and double arrow, but found 5 (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned).

);

wp_localize_script( 'easydam-media-library', 'MediaLibraryTaxonomyFilterData', array(
'terms' => get_terms( 'media-folder', array( 'hide_empty' => false ) ),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: The parameter "array( 'hide_empty' => false )" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter (WordPress.WP.DeprecatedParameters.Get_termsParam2Found).


wp_localize_script( 'easydam-media-library', 'MediaLibraryTaxonomyFilterData', array(
'terms' => get_terms( 'media-folder', array( 'hide_empty' => false ) ),
) );
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine).


add_filter( 'restrict_manage_posts', array( $this, 'restrict_manage_media_filter' ) );

}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).


}

/**
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Doc comment for parameter "$query_args" missing (Squiz.Commenting.FunctionComment.MissingParamTag).

/**
* Filter the media library arguments to include folders.
*
* @return void
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Function return type is void, but function contains return statement (Squiz.Commenting.FunctionComment.InvalidReturnVoid).

*/
public function filter_media_library_by_taxonomy( $query_args ) {

if ( isset( $_REQUEST['query']['media-folder'] ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Processing form data without nonce verification (WordPress.Security.NonceVerification.Recommended).

public function filter_media_library_by_taxonomy( $query_args ) {

if ( isset( $_REQUEST['query']['media-folder'] ) ) {
$media_folder_id = intval( $_REQUEST['query']['media-folder'] );
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Processing form data without nonce verification (WordPress.Security.NonceVerification.Recommended).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.


if ( 0 === $media_folder_id ) {
// Handling uncategorized attachments (no term selected for attachment).
$query_args['tax_query'] = array(
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Detected usage of tax_query, possible slow query (WordPress.DB.SlowDBQuery.slow_db_query_tax_query).

),
);

} elseif ( -1 === $media_folder_id ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Empty ELSEIF statement detected (Generic.CodeAnalysis.EmptyStatement.DetectedElseif).

);

} elseif ( -1 === $media_folder_id ) {
}else if ( ! empty( $media_folder_id ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace).

);

} elseif ( -1 === $media_folder_id ) {
}else if ( ! empty( $media_folder_id ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Usage of ELSE IF is discouraged; use ELSEIF instead (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed).

} elseif ( -1 === $media_folder_id ) {
}else if ( ! empty( $media_folder_id ) ) {
// Filter attachments by selected folder.
$query_args['tax_query'] = array(
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Detected usage of tax_query, possible slow query (WordPress.DB.SlowDBQuery.slow_db_query_tax_query).

return $query_args;
}

public function pre_get_post_filter( $query ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Missing doc comment for function pre_get_post_filter() (Squiz.Commenting.FunctionComment.Missing).


public function pre_get_post_filter( $query ) {
if ( is_admin() && $query->is_main_query() && $query->get( 'post_type' ) === 'attachment' ) {
$media_folder = isset( $_GET['media-folder'] ) ? sanitize_text_field( $_GET['media-folder'] ) : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Processing form data without nonce verification (WordPress.Security.NonceVerification.Recommended).

$media_folder = isset( $_GET['media-folder'] ) ? sanitize_text_field( $_GET['media-folder'] ) : null;

if ( $media_folder && 'uncategorized' === $media_folder ) {
$query->set( 'tax_query', array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).

$media_folder = isset( $_GET['media-folder'] ) ? sanitize_text_field( $_GET['media-folder'] ) : null;

if ( $media_folder && 'uncategorized' === $media_folder ) {
$query->set( 'tax_query', array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments).

)
),
),
) );
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.

),
) );

} else if ( $media_folder && 'all' !== $media_folder ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Usage of ELSE IF is discouraged; use ELSEIF instead (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed).

) );

} else if ( $media_folder && 'all' !== $media_folder ) {
$query->set( 'tax_query', array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).

) );

} else if ( $media_folder && 'all' !== $media_folder ) {
$query->set( 'tax_query', array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments).

'field' => 'term_id',
'terms' => (int) $media_folder,
),
) );
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine).

}
}

function restrict_manage_media_filter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Missing doc comment for function restrict_manage_media_filter() (Squiz.Commenting.FunctionComment.Missing).

}
}

function restrict_manage_media_filter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Visibility must be declared on method "restrict_manage_media_filter" (Squiz.Scope.MethodScope.Missing).

}
}

function restrict_manage_media_filter() {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Please, make sure that a callback to 'restrict_manage_posts' filter is always returning some value (WordPressVIPMinimum.Hooks.AlwaysReturnInFilter.MissingReturnStatement).

function restrict_manage_media_filter() {
$screen = get_current_screen();

if ( $screen->id === 'upload' ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Use Yoda Condition checks, you must (WordPress.PHP.YodaConditions.NotYoda).

$screen = get_current_screen();

if ( $screen->id === 'upload' ) {
// Get the current folder filter value from the URL
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).


if ( $screen->id === 'upload' ) {
// Get the current folder filter value from the URL
$media_folder = isset( $_GET['media-folder'] ) ? sanitize_text_field( $_GET['media-folder'] ) : 'all';
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Processing form data without nonce verification (WordPress.Security.NonceVerification.Recommended).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.

// Get the current folder filter value from the URL
$media_folder = isset( $_GET['media-folder'] ) ? sanitize_text_field( $_GET['media-folder'] ) : 'all';

// Get all terms from the 'media-folder' taxonomy
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).

$media_folder = isset( $_GET['media-folder'] ) ? sanitize_text_field( $_GET['media-folder'] ) : 'all';

// Get all terms from the 'media-folder' taxonomy
$terms = get_terms( array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).

$terms = get_terms( array(
'taxonomy' => 'media-folder',
'hide_empty' => false,
) );
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine).

'hide_empty' => false,
) );

// Define default options
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).

$folders = array(
(object) array(
'id' => 'uncategorized',
'name' => __( 'Uncategorized', 'textdomain' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Mismatched text domain. Expected 'transcoder' but got 'textdomain' (WordPress.WP.I18n.TextDomainMismatch).

),
(object) array(
'id' => 'all',
'name' => __( 'All collections', 'textdomain' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Mismatched text domain. Expected 'transcoder' but got 'textdomain' (WordPress.WP.I18n.TextDomainMismatch).

),
);

// Add taxonomy terms to the folder list
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).

);
}

// Render the dropdown
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar).

},
'args' => array(
'attachment_ids' => array(
'required' => true,
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Array double arrow not aligned correctly; expected 4 space(s) between "'required'" and double arrow, but found 1 (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned).

'args' => array(
'attachment_ids' => array(
'required' => true,
'type' => 'array',
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Array double arrow not aligned correctly; expected 8 space(s) between "'type'" and double arrow, but found 5 (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.

'attachment_ids' => array(
'required' => true,
'type' => 'array',
'items' => array( 'type' => 'integer' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Array double arrow not aligned correctly; expected 7 space(s) between "'items'" and double arrow, but found 4 (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned).

'description' => 'Array of attachment IDs to associate.',
),
'folder_term_id' => array(
'required' => true,
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Array double arrow not aligned correctly; expected 4 space(s) between "'required'" and double arrow, but found 1 (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned).

),
'folder_term_id' => array(
'required' => true,
'type' => 'integer',
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Warning: Array double arrow not aligned correctly; expected 8 space(s) between "'type'" and double arrow, but found 5 (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned).

),

),
)
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: There should be a comma after the last array item in a multi-line array (NormalizedArrays.Arrays.CommaAfterLast.MissingMultiLine).

* @param \WP_REST_Request $request REST API request.
* @return \WP_REST_Response
*/
function assign_images_to_folder( $request ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Visibility must be declared on method "assign_images_to_folder" (Squiz.Scope.MethodScope.Missing).

}
}

return rest_ensure_response( array(
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Opening parenthesis of a multi-line function call must be the last content on the line (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket).

return rest_ensure_response( array(
'success' => true,
'message' => 'Attachments successfully associated with the folder.',
) );
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine).


namespace Transcoder\Inc\Taxonomies;

use \Transcoder\Inc\Traits\Singleton;
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: An import use statement should never start with a leading backslash (Universal.UseStatements.NoLeadingBackslash.LeadingBackslashFound).


$this->setup_hooks();

}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).

*/
protected function setup_hooks() {

add_action( 'init', [ $this, 'register_taxonomy' ] );
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.


add_action( 'init', [ $this, 'register_taxonomy' ] );

}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).

}

$args = $this->get_args();
$args = ( ! empty( $args ) && is_array( $args ) ) ? $args : [];
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).

$args = ( ! empty( $args ) && is_array( $args ) ) ? $args : [];

$labels = $this->get_labels();
$labels = ( ! empty( $labels ) && is_array( $labels ) ) ? $labels : [];
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).


register_taxonomy( static::SLUG, $post_types, $args );

}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).

*/
public function get_args() {

return [
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).

'show_in_rest' => true,
];

}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose).

*/
abstract public function get_post_types();

}
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody).

*/
public function get_labels() {

return [
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Short array syntax is not allowed (Universal.Arrays.DisallowShortArraySyntax.Found).

public function get_labels() {

return [
'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

public function get_labels() {

return [
'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

Copy link
Contributor

@rtBot rtBot left a comment

Choose a reason for hiding this comment

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

Previous scan continued.


return [
'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).


return [
'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

return [
'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
'search_items' => __('Search Media Folders', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

return [
'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
'search_items' => __('Search Media Folders', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
'search_items' => __('Search Media Folders', 'transcoder'),
'all_items' => __('All Media Folders', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

'name' => _x('Media Folders', 'Media Folder', 'transcoder'),
'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
'search_items' => __('Search Media Folders', 'transcoder'),
'all_items' => __('All Media Folders', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
'search_items' => __('Search Media Folders', 'transcoder'),
'all_items' => __('All Media Folders', 'transcoder'),
'parent_item' => __('Parent Folder', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

'singular_name' => _x('Media Folder', 'Media Folder', 'transcoder'),
'search_items' => __('Search Media Folders', 'transcoder'),
'all_items' => __('All Media Folders', 'transcoder'),
'parent_item' => __('Parent Folder', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

'search_items' => __('Search Media Folders', 'transcoder'),
'all_items' => __('All Media Folders', 'transcoder'),
'parent_item' => __('Parent Folder', 'transcoder'),
'parent_item_colon' => __('Parent Folder:', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces after opening parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket).

'search_items' => __('Search Media Folders', 'transcoder'),
'all_items' => __('All Media Folders', 'transcoder'),
'parent_item' => __('Parent Folder', 'transcoder'),
'parent_item_colon' => __('Parent Folder:', 'transcoder'),
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 Error: Expected 1 spaces before closing parenthesis; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket).

@rtBot rtBot dismissed their stale review December 23, 2024 04:56

Dismissing review as all inline comments are obsolete by now

@Juzar10 Juzar10 closed this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants