Completed
Push — master ( b8ae50...5a01e4 )
by Surajudeen
155:11
created
index.php 1 patch
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -2,17 +2,8 @@
 block discarded – undo
2 2
 
3 3
 require_once 'vendor/autoload.php';
4 4
 
5
-use Sirolad\Potato;
6
-use Sirolad\DB\DBConnect;
7
-use Sirolad\Entities\Car;
8 5
 use Sirolad\Entities\User;
9
-use Sirolad\Entities\Motor;
10
-use Sirolad\Entities\Bicycle;
11
-use Sirolad\Libraries\Formatter;
12
-use Sirolad\Libraries\TableMapper;
13
-use Sirolad\Exceptions\EmptyTableException;
14 6
 use Sirolad\Exceptions\RecordNotFoundException;
15
-use Sirolad\Exceptions\TableDoesNotExistException;
16 7
 
17 8
 #User Operations
18 9
 //insert
Please login to merge, or discard this patch.
src/Libraries/Formatter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     /**
59 59
      * Generate unnamed placeholders depending on the number of table fields concerned
60 60
      *
61
-     * @param array $record Set of affected table fields
61
+     * @param array $records Set of affected table fields
62 62
      * @return array $placeholder Sql statement placeholders for field values
63 63
      */
64 64
     public static function generateUnnamedPlaceholders(array $records)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * */
8 8
 namespace Sirolad\Libraries;
9 9
 
10
-use Sirolad\Exception;
11 10
 use Sirolad\Interfaces\FormatterInterface;
12 11
 
13 12
 /**
Please login to merge, or discard this patch.
src/Libraries/TableMapper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@  discard block
 block discarded – undo
23 23
      * Check for the existence of a table in the currentt database
24 24
      *
25 25
      * @param string $table Name of table to be searched in the database
26
-     * @param DbConnnect $dbConnect Database connection object
27 26
      * @return string Name of the table checked
28 27
      */
29 28
     public static function checkTableName($table)
@@ -44,6 +43,7 @@  discard block
 block discarded – undo
44 43
 
45 44
     /**
46 45
      * @var array classname from class namespace
46
+     * @param string $className
47 47
      * @return string which is in lower case
48 48
      **/
49 49
     public static function getClassName($className)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Sirolad\DB\DBConnect;
13 13
 use Sirolad\Libraries\Formatter;
14 14
 use Sirolad\Interfaces\TableMapperInterface;
15
-use Sirolad\Exceptions\TableDoesNotExistException;
16 15
 
17 16
 /**
18 17
  *
Please login to merge, or discard this patch.
src/Potato.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,8 +112,8 @@
 block discarded – undo
112 112
 
113 113
     /**
114 114
      * Get all the records in a database table
115
-     * @return array|object
116
-     * @return exception
115
+     * @return string
116
+     * @return string
117 117
      */
118 118
     public function getAll()
119 119
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Sirolad\Interfaces\PotatoInterface;
19 19
 use Sirolad\Exceptions\EmptyTableException;
20 20
 use Sirolad\Exceptions\RecordNotFoundException;
21
-use Sirolad\Exceptions\TableDoesNotExistException;
22 21
 
23 22
 /**
24 23
  * Potato is the main class which is not to be instantiated.
Please login to merge, or discard this patch.