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') { if ($query->type() === 'insert') {
$this->_quoteInsert($query); $this->_quoteInsert($query);
} else { } else {
$this->_qouteParts($query); $this->_quoteParts($query);
} }


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


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

$result = $this->_basicQuoter($contents); $result = $this->_basicQuoter($contents);
if ($result) { if ($result) {
$query->{$part}($result, true); $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 * object
* *
* @param array $joins * @param array $joins
Expand Down

0 comments on commit b59bfc8

Please sign in to comment.