From 84f88628f57756db5bde97ee98661de8d5875cb3 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Wed, 23 Jun 2021 15:02:24 +0100 Subject: [PATCH] Implement Suggestions --- src/Appwrite/Database/Adapter.php | 4 ++-- src/Appwrite/Database/Adapter/MySQL.php | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Database/Adapter.php b/src/Appwrite/Database/Adapter.php index 0bfac77e1..bb650e844 100644 --- a/src/Appwrite/Database/Adapter.php +++ b/src/Appwrite/Database/Adapter.php @@ -91,7 +91,7 @@ abstract class Adapter /** * Delete Unique Key. * - * @param String $key + * @param string $key * * @return array */ @@ -100,7 +100,7 @@ abstract class Adapter /** * Add Unique Key. * - * @param String $key + * @param string $key * * @return array */ diff --git a/src/Appwrite/Database/Adapter/MySQL.php b/src/Appwrite/Database/Adapter/MySQL.php index d179291ed..6858e9342 100644 --- a/src/Appwrite/Database/Adapter/MySQL.php +++ b/src/Appwrite/Database/Adapter/MySQL.php @@ -360,7 +360,7 @@ class MySQL extends Adapter /** * Delete Unique Key. * - * @param String $key + * @param string $key * * @return array * @@ -380,13 +380,12 @@ class MySQL extends Adapter /** * Add Unique Key. * - * @param String $key + * @param string $key * * @return array * * @throws Exception */ - public function addUniqueKey($key) { $st = $this->getPDO()->prepare('INSERT INTO `'.$this->getNamespace().'.database.unique`