assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

Processing form data without nonce verification.
Open

                $term_meta['ldp_model'] = stripslashes_deep( $_POST['ldp_model'] );
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

            $posts = $query->get_posts();
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                $fields = $models_decoded->{$value->slug}->fields;
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                    $rdf_type = isset( $term_meta['ldp_rdf_type'] ) ? $term_meta['ldp_rdf_type'] : null;
Severity: Minor
Found in class-api.php by phpcodesniffer

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

                $current_container_entry = array();
Severity: Minor
Found in class-api.php by phpcodesniffer

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

                $term_id = $terms[0]->term_id;
Severity: Minor
Found in class-api.php by phpcodesniffer

Processing form data without nonce verification.
Open

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

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

                        '@id' => rtrim( get_rest_url(), '/' ) . $request->get_route() . '/',
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 6 space(s) between "'post_type'" and double arrow, but found 1.
Open

                        'post_type' => 'post',
Severity: Minor
Found in class-api.php by phpcodesniffer

Detected usage of meta_query, possible slow query.
Open

                    'meta_query' => array(
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                            'value' => $meta_value,
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_$value->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-api.php by phpcodesniffer

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

                $current_container_entry['@id'] = site_url( '/' ) . \WpLdp\Api::LDP_API_URL . $value['id'] . '/';
Severity: Minor
Found in class-api.php by phpcodesniffer

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

                                    '@id'  => ! empty( $value ) ? $value : null,
Severity: Minor
Found in class-api.php by phpcodesniffer

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

                        'post_status' => 'any',
Severity: Minor
Found in class-api.php by phpcodesniffer

Processing form data without nonce verification.
Open

            if ( isset( $_POST['ldp_included_fields_list'] ) ) {
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                $term_meta['ldp_model'] = stripslashes_deep( $_POST['ldp_model'] );
Severity: Minor
Found in class-container-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-api.php by phpcodesniffer
Severity
Category
Status
Source
Language