Completed
Push — master ( 3b96a7...361ab6 )
by Ankit
02:43 queued 11s
created
profile_generate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once (__DIR__ . '/vendor/autoload.php');
3
+require_once (__DIR__.'/vendor/autoload.php');
4 4
 use ChatApp\Session;
5 5
 use ChatApp\Profile;
6 6
 use Dotenv\Dotenv;
@@ -16,15 +16,15 @@  discard block
 block discarded – undo
16 16
 
17 17
 $userId = Session::get('start');
18 18
 $data = '';
19
-if(isset($_POST['submit']))
19
+if (isset($_POST['submit']))
20 20
 {
21 21
 	$data = Profile::getProfile($userId);
22
-	if($data != NULL):
22
+	if ($data != NULL):
23 23
 		$status = get($_POST['status'], $data['status']);
24 24
 		$edu = get($_POST['education'], $data['education']);
25 25
 		$gender = get($_POST['gender'], $data['gender']);
26 26
 		$query = "UPDATE profile set status = '$status', education = '$edu', gender = '$gender' where login_id = '$userId'";
27
-		if($result = $connect->query($query))
27
+		if ($result = $connect->query($query))
28 28
 		{
29 29
 			header('Location:'.getenv('APP_URL').'/account.php');
30 30
 		}
Please login to merge, or discard this patch.