Test Failed
Pull Request — master (#61)
by
unknown
02:25
created
src/Conversation.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/SideBar.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/User.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Receiver.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
views/account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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">
Please login to merge, or discard this patch.
views/profile_generate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
views/message.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.