From d71bc4acae601176e3e4a755e9f245a18736c976 Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Wed, 12 Jul 2017 01:00:33 +0200 Subject: [PATCH] Fixed code style --- lib/Cake/Test/Case/Model/ModelReadTest.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/Cake/Test/Case/Model/ModelReadTest.php b/lib/Cake/Test/Case/Model/ModelReadTest.php index 1f2562553..82690ae22 100644 --- a/lib/Cake/Test/Case/Model/ModelReadTest.php +++ b/lib/Cake/Test/Case/Model/ModelReadTest.php @@ -194,7 +194,7 @@ class ModelReadTest extends BaseModelTest { public function skipIfIsStrictGroupBy() { $isOnlyFullGroupBy = false; - if($this->db instanceof Mysql) { + if ($this->db instanceof Mysql) { $sqlMode = $this->db->query('SELECT @@sql_mode AS sql_mode;'); if (strpos($sqlMode[0][0]['sql_mode'], 'ONLY_FULL_GROUP_BY') > -1) { $isOnlyFullGroupBy = true; @@ -226,19 +226,19 @@ class ModelReadTest extends BaseModelTest { 'group' => 'Thread.project_id', 'order' => 'Thread.id ASC', )); - $expected = array ( - array ( - 'Thread' => array ( + $expected = array( + array( + 'Thread' => array( 'id' => 1, 'project_id' => 1, 'name' => 'Project 1, Thread 1', ), - 'Project' => array ( + 'Project' => array( 'id' => 1, 'name' => 'Project 1', ), - 'Message' => array ( - array ( + 'Message' => array( + array( 'id' => 1, 'thread_id' => 1, 'name' => 'Thread 1, Message 1', @@ -246,17 +246,17 @@ class ModelReadTest extends BaseModelTest { ), ), array ( - 'Thread' => array ( + 'Thread' => array( 'id' => 3, 'project_id' => 2, 'name' => 'Project 2, Thread 1', ), - 'Project' => array ( + 'Project' => array( 'id' => 2, 'name' => 'Project 2', ), - 'Message' => array ( - array ( + 'Message' => array( + array( 'id' => 3, 'thread_id' => 3, 'name' => 'Thread 3, Message 1',