@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * Create a new class instance. |
49 | 49 | * |
50 | - * @return void |
|
50 | + * @return boolean|string |
|
51 | 51 | */ |
52 | 52 | public function __construct() |
53 | 53 | { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | /** |
46 | 46 | * Create a new class instance. |
47 | 47 | * |
48 | - * @return void |
|
48 | + * @return integer |
|
49 | 49 | */ |
50 | 50 | public function __construct() |
51 | 51 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * Getting User details on the basis of uername or login Id |
62 | 62 | * |
63 | 63 | * @param string $details To store loginid/username |
64 | - * @param boollen $para To store True/False |
|
64 | + * @param boolean $para To store True/False |
|
65 | 65 | * |
66 | 66 | * @return array or null |
67 | 67 | */ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | /** |
48 | 48 | * Create a new class instance. |
49 | 49 | * |
50 | - * @return void |
|
50 | + * @return boolean|string |
|
51 | 51 | */ |
52 | 52 | public function __construct() |
53 | 53 | { |
@@ -15,7 +15,6 @@ |
||
15 | 15 | require_once dirname(__DIR__).'/vendor/autoload.php'; |
16 | 16 | use ChatApp\User; |
17 | 17 | use ChatApp\Conversation; |
18 | -use mysqli; |
|
19 | 18 | use Dotenv\Dotenv; |
20 | 19 | $dotenv = new Dotenv(dirname(__DIR__)); |
21 | 20 | $dotenv->load(); |
@@ -59,7 +59,7 @@ |
||
59 | 59 | <div class="boxx" > |
60 | 60 | |
61 | 61 | <div class="pic"> |
62 | - <img src="<?php echo !empty($row["pic"]) ? $row["pic"] : '../../public/assests/img/ankit.png';?>"> |
|
62 | + <img src="<?php echo !empty($row["pic"]) ? $row["pic"] : '../../public/assests/img/ankit.png'; ?>"> |
|
63 | 63 | </div> |
64 | 64 | |
65 | 65 | <div class="brief"> |
@@ -23,12 +23,12 @@ |
||
23 | 23 | $edu = get($_POST['education'], $data['education']); |
24 | 24 | $gender = get($_POST['gender'], $data['gender']); |
25 | 25 | |
26 | - if(!empty($_FILES["userpic"]["tmp_name"])){ |
|
26 | + if (!empty($_FILES["userpic"]["tmp_name"])) { |
|
27 | 27 | |
28 | 28 | $path = $_FILES["userpic"]["tmp_name"]; |
29 | 29 | $type = pathinfo($path, PATHINFO_EXTENSION); |
30 | 30 | $data = file_get_contents($path); |
31 | - $base64pic = 'data:image/' . $type . ';base64,' . base64_encode($data); |
|
31 | + $base64pic = 'data:image/'.$type.';base64,'.base64_encode($data); |
|
32 | 32 | |
33 | 33 | $pic = get($base64pic, $data['pic']); |
34 | 34 | } |
@@ -24,8 +24,8 @@ |
||
24 | 24 | <script src="../public/assests/js/jquery-3.0.0.min.js"></script> |
25 | 25 | <script src="../public/assests/js/bootstrap.min.js"></script> |
26 | 26 | <?php |
27 | - $userId = Session::get('start'); |
|
28 | - $data = Profile::getProfile($userId);?> |
|
27 | + $userId = Session::get('start'); |
|
28 | + $data = Profile::getProfile($userId);?> |
|
29 | 29 | <script type="text/javascript" src="../public/assests/js/message.js" id="heading-avatar" data-src="<?php echo !empty($data["pic"]) ? $data["pic"] : '../../public/assests/img/ankit.png';?>"></script> |
30 | 30 | </head> |
31 | 31 | <body> |
@@ -25,8 +25,8 @@ |
||
25 | 25 | <script src="../public/assests/js/bootstrap.min.js"></script> |
26 | 26 | <?php |
27 | 27 | $userId = Session::get('start'); |
28 | - $data = Profile::getProfile($userId);?> |
|
29 | - <script type="text/javascript" src="../public/assests/js/message.js" id="heading-avatar" data-src="<?php echo !empty($data["pic"]) ? $data["pic"] : '../../public/assests/img/ankit.png';?>"></script> |
|
28 | + $data = Profile::getProfile($userId); ?> |
|
29 | + <script type="text/javascript" src="../public/assests/js/message.js" id="heading-avatar" data-src="<?php echo !empty($data["pic"]) ? $data["pic"] : '../../public/assests/img/ankit.png'; ?>"></script> |
|
30 | 30 | </head> |
31 | 31 | <body> |
32 | 32 |