MinnPost/object-sync-for-salesforce

View on GitHub

Showing 364 of 364 total issues

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

        $url      = $this->login_url . $this->token_path;

Use placeholders and $wpdb->prepare(); found $table
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $where . ' ORDER BY `fieldmap_status`, `weight`', ARRAY_A );

Use placeholders and $wpdb->prepare(); found $table
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $where . $order, ARRAY_A );

Silencing errors is discouraged
Open

    if ( ! @ file_put_contents( $new_file, $string ) ) {
Severity: Minor
Found in bin/wp-readme.php by phpcodesniffer

Use placeholders and $wpdb->prepare(); found $where
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $where . $order, ARRAY_A );

Use placeholders and $wpdb->prepare(); found $field_map_table
Open

        $this->wpdb->query( 'DROP TABLE IF EXISTS ' . $field_map_table );

Use placeholders and $wpdb->prepare(); found $order
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $where . $order, ARRAY_A );

Use placeholders and $wpdb->prepare(); found interpolated variable $ids at "DELETE FROM $this->object_map_table WHERE ID IN ($ids)"
Open

            $delete = $this->wpdb->query( "DELETE FROM $this->object_map_table WHERE ID IN ($ids)" );

Use placeholders and $wpdb->prepare(); found $table
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $where . $order, ARRAY_A );

Use placeholders and $wpdb->prepare(); found $order
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $order, ARRAY_A );

Use placeholders and $wpdb->prepare(); found $table
Open

        $error_row = $this->wpdb->get_row( 'SELECT * FROM ' . $table . ' WHERE id = "' . $id . '"', ARRAY_A );

Use placeholders and $wpdb->prepare(); found $order
Open

            $mappings = $this->wpdb->get_results( 'SELECT * FROM ' . $table . $where . $order, ARRAY_A );

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

        $headers  = array(

Use placeholders and $wpdb->prepare(); found $select_meta
Open

        $meta_fields = $this->wpdb->get_results( $select_meta );

Avoid too many return statements within this method.
Open

        return $this->schedulable_classes;
Severity: Major
Found in classes/class-object-sync-sf-queue.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    return $existing_id;
    Severity: Major
    Found in classes/class-object-sync-sf-wordpress.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                  return $result;
      Severity: Major
      Found in classes/class-object-sync-sf-wordpress.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                return true;
        Severity: Major
        Found in classes/class-object-sync-sf-rest.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

              return $string;
          Severity: Major
          Found in bin/wp-readme.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $result;
            Severity: Major
            Found in classes/class-object-sync-sf-salesforce-push.php - About 30 mins to fix
              Severity
              Category
              Status
              Source
              Language