assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

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

            $term_id = $term->term_id;
Severity: Minor
Found in class-container-taxonomy.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' => __( 'Document', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

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

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

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

                        'event' => array(
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' => __( 'Thesis', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Open

                        __( 'List of all resources of type %1$s', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

Array double arrow not aligned correctly; expected 11 space(s) between "'show_ui'" and double arrow, but found 20.
Open

                'show_ui'                    => 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 "<label for='ldp_rdf_type'>" . __( 'Rdf:type, if any', 'wpldp' ) . '</label>';
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 "<p class='description'>" . __( 'The fields from the model whose values you would like to include from the associated resources in the container, separated by commas', 'wpldp' ) . '</p>';
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_rdf_type'>" . __( 'Rdf:type, if any', 'wpldp' ) . '</label></th>';
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_included_fields_list'>" . __( 'Included fields', 'wpldp' ) . '</label></th>';
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

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

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

            $term_meta = get_term_meta( $term_id,'ldp_site_url', true );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Missing wp_unslash() before sanitization.
Open

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

Using cURL functions is highly discouraged. Use wp_remote_get() instead.
Open

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

Concat operator must be surrounded by a single space
Open

                $outputs[ $ldp_site_url  . '/schema/' ]['data'] = curl_exec( $ch );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Using cURL functions is highly discouraged. Use wp_remote_get() instead.
Open

                $outputs[ $ldp_site_url  . '/schema/' ]['data'] = curl_exec( $ch );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

No space after opening parenthesis is prohibited
Open

            foreach ($outputs as $site_url => $output ) {
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-container-taxonomy.php by phpcodesniffer
Severity
Category
Status
Source
Language