assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

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

                $current_container_entry['@count'] = $value['value'];
Severity: Minor
Found in class-api.php by phpcodesniffer

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

            $params = $request->get_params();
Severity: Minor
Found in class-api.php by phpcodesniffer

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

            $ldp_container = $params['ldp_container'];
Severity: Minor
Found in class-api.php by phpcodesniffer

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

                    'name' => $ldp_resource_slug,
Severity: Minor
Found in class-api.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<input type="hidden" id="ldp_model" name="ldp_model" value="$ldp_model">"'.
Open

            echo "<input type='hidden' id='ldp_model' name='ldp_model' value='$ldp_model'/>";
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Found precision alignment of 1 spaces.
Open

                 && false !== strstr( $headers['accept'][0], 'text/html' ) ) {
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                    $current_entry['@id'] = site_url( '/' ) . \WpLdp\Api::LDP_API_URL . $value->slug . '/' . $post->post_name;
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                )
Severity: Minor
Found in class-api.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 24 spaces but found 1 space
Open

                        $field_value = get_post_custom_values( $field_name, $post->ID )[0];
Severity: Minor
Found in class-api.php by phpcodesniffer

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

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

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

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

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

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

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

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

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

            echo "<p class='description'>" . __( 'The LDP-compatible JSON Model for this container', 'wpldp' ) . '</p></td>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Missing wp_unslash() before sanitization.
Open

                $term_meta['ldp_rdf_type'] = $_POST['ldp_rdf_type'];
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

Processing form data without nonce verification.
Open

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

json_encode() is discouraged. Use wp_json_encode() instead.
Open

            var json = ' . json_encode( json_decode( $ldp_model ) ) . ';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Missing wp_unslash() before sanitization.
Open

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