Skip to content

Commit

Permalink
Fixed a couple typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 8, 2013
1 parent cdec5b6 commit b59bfc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cake/Database/IdentifierQuoter.php
Expand Up @@ -57,7 +57,7 @@ public function quote(Query $query) {
if ($query->type() === 'insert') {
$this->_quoteInsert($query);
} else {
$this->_qouteParts($query);
$this->_quoteParts($query);
}

$query->traverseExpressions(function($expression) {
Expand Down Expand Up @@ -87,14 +87,14 @@ public function quote(Query $query) {
* @param Query
* @return void
*/
protected function _qouteParts($query) {
protected function _quoteParts($query) {
foreach (['distinct', 'select', 'from', 'group'] as $part) {
$contents = $query->clause($part);

if (!is_array($contents)) {
continue;
}

$result = $this->_basicQuoter($contents);
if ($result) {
$query->{$part}($result, true);
Expand Down Expand Up @@ -125,7 +125,7 @@ protected function _basicQuoter($part) {
}

/**
* Quotes both the table and alias fot an array of joins as stored in a Query
* Quotes both the table and alias for an array of joins as stored in a Query
* object
*
* @param array $joins
Expand Down

0 comments on commit b59bfc8

Please sign in to comment.