assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

Resource version not set in call to wp_register_script(). This means new versions of the script will not always be loaded due to browser caching.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
Open

            $locations = get_nav_menu_locations();
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Space found before semicolon; expected "];" but found "] ;"
Open

            $menu_id = $locations[ $menu_name ] ;
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'label'" and double arrow, but found 1.
Open

                            'label' => __( 'Group', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'label'" and double arrow, but found 1.
Open

                            'label' => __( 'Document', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'label'" and double arrow, but found 1.
Open

                            'label' => __( 'Theme', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
Open

                        $model = file_get_contents( __DIR__ . '/models/' . $term . '.json' );
Severity: Minor
Found in class-settings.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
Open

                    echo __( 'The generals settings of the WP-LDP plugin.', 'wpldp' );
Severity: Minor
Found in class-settings.php by phpcodesniffer

Array double arrow not aligned correctly; expected 5 space(s) between "'show_tagcloud'" and double arrow, but found 14.
Open

                'show_tagcloud'              => true,
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Expected type hint "{\WP_REST_Response}"; found "\WP_REST_Response" for $response
Open

        public function add_new_site( \WP_REST_Request $request, \WP_REST_Response $response = null ) {
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 9 space(s) between "'slug'" and double arrow, but found 23.
Open

                'slug'                       => rtrim( \WpLdp\Api::LDP_API_URL, '/' ),
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 12 space(s) between "'public'" and double arrow, but found 21.
Open

                'public'                     => true,
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 16 spaces but found 1 space
Open

            $term_meta = get_option( "ldp_container_$term_id" );
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 6 space(s) between "'post_type'" and double arrow, but found 1.
Open

                    'post_type' => 'ldp_resource',
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 1 space(s) between "'show_in_admin_bar'" and double arrow, but found 5.
Open

                    'show_in_admin_bar'     => true,
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$term'.
Open

                    <input id="in-ldp_container-<?php echo $term->term_id; ?>" type="radio" name="tax_input[ldp_container][]" value="<?php echo $term->term_id; ?>" checked>
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
Open

                    $term_id = $term[0]->term_id;
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$term'.
Open

                            template: "{{{form '<?php echo $term[0]->slug; ?>'}}}",
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Resource version not set in call to wp_register_script(). This means new versions of the script will not always be loaded due to browser caching.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

In footer ($in_footer) is not set explicitly wp_register_script; It is recommended to load scripts in the footer. Please set this value to true to load it in the footer, or explicitly false if it should be loaded in the header.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer
Severity
Category
Status
Source
Language