From 2ba6079f1737ae6737a7b01ed6fc5fa003a120e8 Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 2 May 2020 14:04:49 -0400 Subject: [PATCH] Fix typo error (again). --- src/Libs/ModelMySQL.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Libs/ModelMySQL.php b/src/Libs/ModelMySQL.php index 2d06382..31825f1 100644 --- a/src/Libs/ModelMySQL.php +++ b/src/Libs/ModelMySQL.php @@ -667,13 +667,13 @@ class ModelMySQL { $sql = static::buildQuery(); $result = static::query($sql); - $instaces = []; + $instances = []; while ($row = $result->fetch_assoc()) { - $instaces[] = static::getInstance($row); + $instances[] = static::getInstance($row); } - return $instaces; + return $instances; } /* @@ -684,8 +684,8 @@ class ModelMySQL { */ public static function getFirst() { // Devuelve null si no encuentra nada static::limit(1); - $instaces = static::get(); - return empty($instaces) ? null : $instaces[0]; + $instances = static::get(); + return empty($instances) ? null : $instances[0]; } /* @@ -698,13 +698,13 @@ class ModelMySQL { $result = static::query($sql); - $instaces = []; + $instances = []; while ($row = $result->fetch_assoc()) { - $instaces[] = static::getInstance($row); + $instances[] = static::getInstance($row); } - return $instaces; + return $instances; } } ?>