Skip to content

Commit

Permalink
Update QueryBuilder.php
Browse files Browse the repository at this point in the history
Codacy code fixes.
  • Loading branch information
amostajo committed Oct 25, 2019
1 parent 976069b commit 0b2ae98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @author 10 Quality <[email protected]>
* @license MIT
* @package wp-query-builder
* @version 1.0.5.1
* @version 1.0.5.2
*/
class QueryBuilder
{
Expand Down Expand Up @@ -146,7 +146,7 @@ public function where( $args )
? '`' . $value['key'] . '`'
: ( is_array( $arg_value )
? ( '(\'' . implode( '\',\'', $arg_value ) . '\')' )
: ( is_null( $arg_value )
: ( $arg_value === null
? 'null'
: $wpdb->prepare( is_numeric( $arg_value ) ? '%d' : '%s' , $arg_value )
)
Expand Down

0 comments on commit 0b2ae98

Please sign in to comment.