From 311536c07018aa379222aa69f5be4ec2f947fca5 Mon Sep 17 00:00:00 2001
From: Iqbal <iqbalkhowarizmi@ymail.com>
Date: Fri, 6 Oct 2017 00:00:37 +0700
Subject: [PATCH] Deleted mockup data

---
 src/model/emailList.php    | 38 --------------------------------------
 src/model/usernameList.php | 32 --------------------------------
 2 files changed, 70 deletions(-)
 delete mode 100644 src/model/emailList.php
 delete mode 100644 src/model/usernameList.php

diff --git a/src/model/emailList.php b/src/model/emailList.php
deleted file mode 100644
index a7e7bcf..0000000
--- a/src/model/emailList.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * Created by PhpStorm.
- * User: iqbal
- * Date: 03/10/17
- * Time: 23:43
- */
-
-$emailList = array("iqbal@gmail.com", "test@ymail.com", "cloud@dagojek.com");
-
-$emailInput = $_REQUEST["q"];
-
-if (filter_var($emailInput, FILTER_VALIDATE_EMAIL)) {
-    $response = checkAvailability($emailInput, $emailList);
-} else {
-    $response = "unavailable";
-}
-
-echo $response;
-
-function checkAvailability($string, $aList) {
-    if ($string !== "") {
-        $found = false;
-        $i = 0;
-        while ($i < count($aList) && !$found) {
-            if ($string === $aList[$i]) {
-                $found = true;
-            } else {
-                $i++;
-            }
-        }
-        if ($found) {
-            return "unavailable";
-        } else {
-            return "available";
-        }
-    }
-}
\ No newline at end of file
diff --git a/src/model/usernameList.php b/src/model/usernameList.php
deleted file mode 100644
index 9b76f88..0000000
--- a/src/model/usernameList.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/**
- * Created by PhpStorm.
- * User: iqbal
- * Date: 03/10/17
- * Time: 23:43
- */
-
-$usernameList = array("iqbal", "test", "cloud");
-
-$usernameInput = $_REQUEST["q"];
-$response = checkAvailability($usernameInput, $usernameList);
-echo $response;
-
-function checkAvailability($string, $aList) {
-    if ($string !== "") {
-        $found = false;
-        $i = 0;
-        while ($i < count($aList) && !$found) {
-            if ($string === $aList[$i]) {
-                $found = true;
-            } else {
-                $i++;
-            }
-        }
-        if ($found) {
-            return "unavailable";
-        } else {
-            return "available";
-        }
-    }
-}
\ No newline at end of file
-- 
GitLab