assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

Class file names should be based on the class name with "class-" prepended. Expected class-sitetaxonomy.php, but found class-site-taxonomy.php.
Open

<?php
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Detected usage of a non-sanitized input variable: $_POST
Open

                $term_meta = $_POST['ldp_site_url'];
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

                $ch = curl_init();
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Each array item in a multi-line array declaration must end in a comma
Open

                    )
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

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

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

            echo "<th scope='row'><label for='ldp_model_editor'>" . __( 'Model editor mode', 'wpldp' ) . '</label></th>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Visibility must be declared on method "initialize_container"
Open

        function initialize_container( $force = false ) {
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' => __( 'Organization', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

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

                        'document' => array(
Severity: Minor
Found in class-settings.php by phpcodesniffer

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

                            $updated_term = wp_update_term(
Severity: Minor
Found in class-settings.php by phpcodesniffer

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

                                    'slug' => $term,
Severity: Minor
Found in class-settings.php by phpcodesniffer

Processing form data without nonce verification.
Open

                if ( ( isset( $_GET['settings-updated'] ) && 'true' === $_GET['settings-updated'] ) ) {
Severity: Minor
Found in class-settings.php by phpcodesniffer

Each array item in a multi-line array declaration must end in a comma
Open

                    'order' => 'DESC'
Severity: Minor
Found in class-settings.php by phpcodesniffer

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

                    'methods' => \WP_REST_Server::CREATABLE,
Severity: Minor
Found in class-site-taxonomy.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

Visibility must be declared on method "save_custom_tax_field_site"
Open

        function save_custom_tax_field_site( $term_id ) {
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Processing form data without nonce verification.
Open

                $term_meta = $_POST['ldp_site_url'];
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Expected 2 spaces after parameter type; 1 found
Open

         * @param  \WP_REST_Request $request The current HTTP request object.
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

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

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

                    'methods' => \WP_REST_Server::READABLE,
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer
Severity
Category
Status
Source
Language