mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixed code style
This commit is contained in:
parent
5cc0d7a5cf
commit
d71bc4acae
1 changed files with 11 additions and 11 deletions
|
@ -194,7 +194,7 @@ class ModelReadTest extends BaseModelTest {
|
||||||
|
|
||||||
public function skipIfIsStrictGroupBy() {
|
public function skipIfIsStrictGroupBy() {
|
||||||
$isOnlyFullGroupBy = false;
|
$isOnlyFullGroupBy = false;
|
||||||
if($this->db instanceof Mysql) {
|
if ($this->db instanceof Mysql) {
|
||||||
$sqlMode = $this->db->query('SELECT @@sql_mode AS sql_mode;');
|
$sqlMode = $this->db->query('SELECT @@sql_mode AS sql_mode;');
|
||||||
if (strpos($sqlMode[0][0]['sql_mode'], 'ONLY_FULL_GROUP_BY') > -1) {
|
if (strpos($sqlMode[0][0]['sql_mode'], 'ONLY_FULL_GROUP_BY') > -1) {
|
||||||
$isOnlyFullGroupBy = true;
|
$isOnlyFullGroupBy = true;
|
||||||
|
@ -226,19 +226,19 @@ class ModelReadTest extends BaseModelTest {
|
||||||
'group' => 'Thread.project_id',
|
'group' => 'Thread.project_id',
|
||||||
'order' => 'Thread.id ASC',
|
'order' => 'Thread.id ASC',
|
||||||
));
|
));
|
||||||
$expected = array (
|
$expected = array(
|
||||||
array (
|
array(
|
||||||
'Thread' => array (
|
'Thread' => array(
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'project_id' => 1,
|
'project_id' => 1,
|
||||||
'name' => 'Project 1, Thread 1',
|
'name' => 'Project 1, Thread 1',
|
||||||
),
|
),
|
||||||
'Project' => array (
|
'Project' => array(
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'name' => 'Project 1',
|
'name' => 'Project 1',
|
||||||
),
|
),
|
||||||
'Message' => array (
|
'Message' => array(
|
||||||
array (
|
array(
|
||||||
'id' => 1,
|
'id' => 1,
|
||||||
'thread_id' => 1,
|
'thread_id' => 1,
|
||||||
'name' => 'Thread 1, Message 1',
|
'name' => 'Thread 1, Message 1',
|
||||||
|
@ -246,17 +246,17 @@ class ModelReadTest extends BaseModelTest {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
array (
|
array (
|
||||||
'Thread' => array (
|
'Thread' => array(
|
||||||
'id' => 3,
|
'id' => 3,
|
||||||
'project_id' => 2,
|
'project_id' => 2,
|
||||||
'name' => 'Project 2, Thread 1',
|
'name' => 'Project 2, Thread 1',
|
||||||
),
|
),
|
||||||
'Project' => array (
|
'Project' => array(
|
||||||
'id' => 2,
|
'id' => 2,
|
||||||
'name' => 'Project 2',
|
'name' => 'Project 2',
|
||||||
),
|
),
|
||||||
'Message' => array (
|
'Message' => array(
|
||||||
array (
|
array(
|
||||||
'id' => 3,
|
'id' => 3,
|
||||||
'thread_id' => 3,
|
'thread_id' => 3,
|
||||||
'name' => 'Thread 3, Message 1',
|
'name' => 'Thread 3, Message 1',
|
||||||
|
|
Loading…
Reference in a new issue