assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

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

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

                curl_setopt( $ch, CURLOPT_URL, $build_url );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

                curl_setopt( $ch, CURLOPT_HTTPGET, true );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Detected usage of meta_query, possible slow query.
Open

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

Visibility must be declared on method "add_custom_tax_fields_onedit"
Open

        function add_custom_tax_fields_onedit( $term ) {
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

            $ldp_model = ! empty( $term_meta['ldp_model'] ) ? stripslashes_deep( $term_meta['ldp_model'] ) : '';
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></td>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                            'menu-item-title' => __( 'Ecosystem', 'wpldp' ),
Severity: Minor
Found in wp-ldp.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

Concat operator must be surrounded by a single space
Open

            echo "<label for='ldp_site'>" . __( 'web site', 'wpldp' ). '</label>';
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Concat operator must be surrounded by a single space
Open

            echo "<p class='description'>" . __( 'WordPress site that you know and on which the WP-LDP plugin is installed', 'wpldp' ). '</p></td>';
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/' ]['code'] = curl_getinfo( $ch )['http_code'];
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

                'labels'                     => $labels,
Severity: Minor
Found in class-container-taxonomy.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

Visibility must be declared on method "wpldp_options_page"
Open

        function wpldp_options_page() {
Severity: Minor
Found in class-settings.php by phpcodesniffer

Visibility must be declared on method "ldp_context_field"
Open

        function ldp_context_field() {
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 11 space(s) between "'show_ui'" and double arrow, but found 20.
Open

                'show_ui'                    => 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

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
Severity
Category
Status
Source
Language