Completed
Push — test ( 1b2f4a...bbbcbf )
by Temitope
02:38
created
src/Model/BaseModel.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Laztopaz\potatoORM\NoRecordFoundException;
15 15
 use Laztopaz\potatoORM\NoRecordInsertionException;
16 16
 use Laztopaz\potatoORM\NullArgumentPassedToFunction;
17
-use Laztopaz\potatoORM\WrongArgumentException;
18 17
 use Laztopaz\potatoORM\NoArgumentPassedToFunctionException;
19 18
 use Laztopaz\potatoORM\EmptyArrayException;
20 19
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     /**
100 100
      * This method find a record by id
101 101
      * @params int id
102
-     * @return Object
102
+     * @return BaseClass
103 103
      * @throws NoArgumentPassedToFunctionException
104 104
      */
105 105
     public static function find($id)
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
    /**
143 143
     * This method return the current class name
144 144
     * $params void
145
-    * @return classname
145
+    * @return string|false
146 146
     */
147 147
    public static function getClassName()
148 148
    {
Please login to merge, or discard this patch.
src/Database/DatabaseHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 namespace Laztopaz\potatoORM;
10 10
 
11
-use PDO;
12 11
 use Laztopaz\potatoORM\TableNotCreatedException;
13 12
 
14 13
 class DatabaseHelper {
Please login to merge, or discard this patch.
src/Database/DatabaseHandler.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@  discard block
 block discarded – undo
21 21
     
22 22
     /**
23 23
      * This is a constructor; a default method  that will be called automatically during class instantiation
24
+     * @param string|false $modelClassName
24 25
      */
25 26
      public function __construct($modelClassName, $dbConn = Null)
26 27
      {
@@ -35,6 +36,7 @@  discard block
 block discarded – undo
35 36
     /**
36 37
      * This method create a record and store it in a table row
37 38
      * @params associative array, string tablename
39
+     * @param string|false $tableName
38 40
      * @return boolean true or false
39 41
      */
40 42
     public function create($associative1DArray, $tableName, $dbConn = Null)
@@ -69,6 +71,7 @@  discard block
 block discarded – undo
69 71
     /**
70 72
      * This method updates any table by supplying 3 parameter
71 73
      * @params: $updateParams, $tableName, $associative1DArray
74
+     * @param string|false $tableName
72 75
      * @return boolean true or false
73 76
      */
74 77
     public function update(array $updateParams, $tableName, $associative1DArray, $dbConn = Null)
@@ -101,6 +104,7 @@  discard block
 block discarded – undo
101 104
   /**
102 105
    * This method retrieves record from a table
103 106
    * @params int id, string tableName
107
+   * @param string|false $tableName
104 108
    * @return array
105 109
    */
106 110
    public static function read($id, $tableName, $dbConn = Null)
@@ -131,6 +135,7 @@  discard block
 block discarded – undo
131 135
   /**
132 136
    * This method deletes a record  from a table row
133 137
    * @params int id, string tableName
138
+   * @param string|false $tableName
134 139
    * @return boolean true or false
135 140
    */
136 141
   public static function delete($id, $tableName, $dbConn = Null)
@@ -163,7 +168,7 @@  discard block
 block discarded – undo
163 168
   
164 169
   /**
165 170
    * This method returns sql query
166
-   * @param $sql
171
+   * @param string $sql
167 172
    * @return string
168 173
    */
169 174
   public function prepareUpdateQuery($sql)
@@ -204,6 +209,7 @@  discard block
 block discarded – undo
204 209
    * This method returns column fields of a particular table
205 210
    * @param $table
206 211
    * @param $conn
212
+   * @param DatabaseConnection $dbConn
207 213
    * @return array
208 214
    */
209 215
  public function getColumnNames($table, $dbConn = Null) {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,10 +9,8 @@
 block discarded – undo
9 9
 namespace Laztopaz\potatoORM;
10 10
 
11 11
 use PDO;
12
-use Laztopaz\potatoORM\DatabaseHelper;
13 12
 use Laztopaz\potatoORM\TableFieldUndefinedException;
14 13
 use Laztopaz\potatoORM\EmptyArrayException;
15
-
16 14
 use Laztopaz\potatoORM\NoRecordDeletionException;
17 15
 use Laztopaz\potatoORM\NoRecordInsertionException;
18 16
 use Laztopaz\potatoORM\NoRecordUpdateException;
Please login to merge, or discard this patch.