From 11f4d1c0e940034e0e04ba8059961d41e8219dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Fri, 15 Jul 2011 14:49:33 -0700 Subject: [PATCH] Fixing whitespace in CakeSchema --- lib/Cake/Model/CakeSchema.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index 05b5536e3d3..b0111e35df4 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -224,16 +224,15 @@ 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; @@ -241,7 +240,7 @@ public function read($options = array()) { $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'); - } /**