From 555be8d767f3f287f867dbd18815e4e7ad042842 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Mon, 21 Aug 2017 14:30:30 -0700 Subject: [PATCH] code style: Simplify array assignment in Table This is within an `is_array($name)` check, so `count($name) == 0` implies $name is `array()`. --- lib/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Table.php b/lib/Table.php index 7434ff11c..e24943364 100644 --- a/lib/Table.php +++ b/lib/Table.php @@ -286,7 +286,7 @@ private function execute_eager_load($models=array(), $attrs=array(), $includes=a // nested include if (is_array($name)) { - $nested_includes = count($name) > 0 ? $name : array(); + $nested_includes = $name; $name = $index; } else