Skip to content

Commit

Permalink
Rename composeQuery to compose_query
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonwamboldt committed Sep 13, 2014
1 parent 76844be commit 316a81e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct($model)
*/
public function __toString()
{
return $this->composeQuery();
return $this->compose_query();
}

/**
Expand Down Expand Up @@ -362,10 +362,10 @@ public function find($only_count = false)

// Query
if ($only_count) {
return (int) $wpdb->get_var($this->composeQuery(true));
return (int) $wpdb->get_var($this->compose_query(true));
}

$results = $wpdb->get_results($this->composeQuery(false));
$results = $wpdb->get_results($this->compose_query(false));

if ($results) {
foreach ($results as $index => $result) {
Expand All @@ -382,7 +382,7 @@ public function find($only_count = false)
* @param boolean $only_count Whether to only return the row count
* @return string
*/
public function composeQuery($only_count = false)
public function compose_query($only_count = false)
{
$model = $this->model;
$table = $model::get_table();
Expand Down

0 comments on commit 316a81e

Please sign in to comment.