Browse files

Fixing whitespace in CakeSchema

  • Loading branch information...
1 parent 7596fcf commit 11f4d1c0e940034e0e04ba8059961d41e8219dc8 @lorenzo lorenzo committed Jul 15, 2011
Showing with 4 additions and 6 deletions.
  1. +4 −6 lib/Cake/Model/CakeSchema.php
View
10 lib/Cake/Model/CakeSchema.php
@@ -224,24 +224,23 @@ public function read($options = array()) {
$models = App::objects('Model');
}
}
-
+
if (is_array($models)) {
foreach ($models as $model) {
$importModel = $model;
$plugin = null;
-
if ($model == 'AppModel') {
continue;
}
-
+
if (isset($this->plugin)) {
if ($model == $this->plugin . 'AppModel') {
continue;
}
$importModel = $model;
$plugin = $this->plugin . '.';
}
-
+
App::uses($importModel, $plugin . 'Model');
if (!class_exists($importModel)) {
continue;
@@ -295,7 +294,7 @@ public function read($options = array()) {
}
}
}
-
+
if (!empty($currentTables)) {
foreach ($currentTables as $table) {
if ($prefix) {
@@ -329,7 +328,6 @@ public function read($options = array()) {
ksort($tables);
return compact('name', 'tables');
-
}
/**

0 comments on commit 11f4d1c

Please sign in to comment.