Completed
Push — master ( c332a7...d97910 )
by Adeniyi
07:05 queued 02:31
created
src/Database/DatabaseQuery.php 2 patches
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @param  $tablename
63 63
      * @param  $con
64 64
      *
65
-     * @return bool
65
+     * @return boolean|null
66 66
      */
67 67
     public function checkTableExist($table, $con=NULL)
68 68
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * checkTableName Return the table name
79 79
      *
80
-     * @param  $tablename
80
+     * @param  string|false $tablename
81 81
      * @param  $con
82 82
      *
83 83
      * @return string
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * checkColumn Check if column exist in table
102 102
      *
103 103
      * @param  $tableName
104
-     * @param  $columnName
104
+     * @param  string $columnName
105 105
      * @param  $con
106 106
      *
107 107
      * @return string
@@ -194,6 +194,7 @@  discard block
 block discarded – undo
194 194
     /**
195 195
      * selectAllQuery
196 196
      *
197
+     * @param string $tableName
197 198
      * @return string
198 199
      */
199 200
     public static function selectAllQuery($tableName)
@@ -229,6 +230,8 @@  discard block
 block discarded – undo
229 230
     /**
230 231
      * selectQuery
231 232
      *
233
+     * @param string $tableName
234
+     * @param string $connection
232 235
      * @return string
233 236
      */
234 237
     public static function selectQuery($tableName, $data, $condition, $connection)
@@ -256,6 +259,7 @@  discard block
 block discarded – undo
256 259
     /**
257 260
      * insertQuery
258 261
      *
262
+     * @param string $tableName
259 263
      * @return string
260 264
      */
261 265
     public function insertQuery($tableName)
@@ -273,6 +277,7 @@  discard block
 block discarded – undo
273 277
     /**
274 278
      * updateQuery
275 279
      *
280
+     * @param string $tableName
276 281
      * @return string
277 282
      */
278 283
     public function updateQuery($tableName)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use PDOException;
14 14
 use Ibonly\PotatoORM\DatabaseQueryInterface;
15 15
 use Ibonly\PotatoORM\ColumnNotExistExeption;
16
-use Ibonly\PotatoORM\InvalidConnectionException;
17 16
 use Ibonly\PotatoORM\TableDoesNotExistException;
18 17
 
19 18
 class DatabaseQuery implements DatabaseQueryInterface
Please login to merge, or discard this patch.
src/Helper/Model.php 2 patches
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -9,17 +9,12 @@
 block discarded – undo
9 9
 
10 10
 namespace Ibonly\PotatoORM;
11 11
 
12
-use PDO;
13
-use Exception;
14
-use PDOException;
15 12
 use Ibonly\PotatoORM\GetData;
16 13
 use Ibonly\PotatoORM\DatabaseQuery;
17 14
 use Ibonly\PotatoORM\ModelInterface;
18 15
 use Ibonly\PotatoORM\UserNotFoundException;
19 16
 use Ibonly\PotatoORM\EmptyDatabaseException;
20 17
 use Ibonly\PotatoORM\SaveUserExistException;
21
-use Ibonly\PotatoORM\ColumnNotExistExeption;
22
-use Ibonly\PotatoORM\InvalidConnectionException;
23 18
 
24 19
 class Model extends DatabaseQuery implements ModelInterface
25 20
 {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,6 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * getTableName()
53 53
      *
54
+     * @param string $connection
54 55
      * @return string
55 56
      */
56 57
     public static function getTableName($connection)
@@ -62,7 +63,7 @@  discard block
 block discarded – undo
62 63
      * getALL()
63 64
      * Get all record from the database
64 65
      *
65
-     * @return object
66
+     * @return GetData
66 67
      */
67 68
     public function getALL($dbConnection = NULL)
68 69
     {
@@ -82,7 +83,7 @@  discard block
 block discarded – undo
82 83
      * where($data, $condition)
83 84
      * Get data from database where $data = $condition
84 85
      *
85
-     * @return object
86
+     * @return GetData
86 87
      */
87 88
     public function where($data, $condition = NULL, $dbConnection = NULL)
88 89
     {
@@ -103,7 +104,7 @@  discard block
 block discarded – undo
103 104
      * find($value)
104 105
      * Find data from database where id = $value
105 106
      *
106
-     * @return array
107
+     * @return Model
107 108
      */
108 109
     public static function find($value, $dbConnection = NULL)
109 110
     {
Please login to merge, or discard this patch.