Completed
Push — test ( 1ca3d9...029004 )
by Temitope
09:06
created
src/Model/BaseModel.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      *
121 121
      * @throws NoArgumentPassedToFunctionException
122 122
      *
123
-     * @return object
123
+     * @return BaseModel
124 124
      */
125 125
     public static function find($id)
126 126
     {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     * This method return the current class name
172 172
     * $params void.
173 173
     *
174
-    * @return classname
174
+    * @return string|false
175 175
     */
176 176
    public static function getClassName()
177 177
    {
Please login to merge, or discard this patch.
src/Helper/Inflector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             'move'   => 'moves', ];
79 79
         $lowercased_word = strtolower($word);
80 80
         foreach ($uncountable as $_uncountable) {
81
-            if (substr($lowercased_word, (-1 * strlen($_uncountable))) == $_uncountable) {
81
+            if (substr($lowercased_word, (-1*strlen($_uncountable))) == $_uncountable) {
82 82
                 return $word;
83 83
             }
84 84
         }
Please login to merge, or discard this patch.
src/Database/DatabaseConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
       */
75 75
      public function loadEnv()
76 76
      {
77
-         if (! getenv('APP_ENV')) {
77
+         if (!getenv('APP_ENV')) {
78 78
              $dotenv = new Dotenv(__DIR__.'/../../');
79 79
              $dotenv->load();
80 80
          }
Please login to merge, or discard this patch.
src/Database/DatabaseHandler.php 2 patches
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     /**
19 19
      * This is a constructor; a default method  that will be called automatically during class instantiation.
20
+     * @param string|false $modelClassName
20 21
      */
21 22
     public function __construct($modelClassName, $dbConn = null)
22 23
     {
@@ -33,6 +34,7 @@  discard block
 block discarded – undo
33 34
      * This method create a record and store it in a table row.
34 35
      *
35 36
      * @params associative array, string tablename
37
+     * @param string|false $tableName
36 38
      *
37 39
      * @return bool true or false
38 40
      */
@@ -92,6 +94,7 @@  discard block
 block discarded – undo
92 94
      * This method updates any table by supplying 3 parameter.
93 95
      *
94 96
      * @params: $updateParams, $tableName, $associative1DArray
97
+     * @param string|false $tableName
95 98
      *
96 99
      * @return bool true or false
97 100
      */
@@ -138,6 +141,7 @@  discard block
 block discarded – undo
138 141
     * This method retrieves record from a table.
139 142
     *
140 143
     * @params int id, string tableName
144
+    * @param string|false $tableName
141 145
     *
142 146
     * @return array
143 147
     */
@@ -169,6 +173,7 @@  discard block
 block discarded – undo
169 173
    * This method deletes a record  from a table row.
170 174
    *
171 175
    * @params int id, string tableName
176
+   * @param string|false $tableName
172 177
    *
173 178
    * @return bool true or false
174 179
    */
@@ -213,7 +218,7 @@  discard block
 block discarded – undo
213 218
   /**
214 219
    * This method returns sql query.
215 220
    *
216
-   * @param $sql
221
+   * @param string $sql
217 222
    *
218 223
    * @return string
219 224
    */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
       $unexpectedFields = [];
203 203
 
204 204
       foreach ($userSetterArray as $key => $val) {
205
-          if (! in_array($key, $tableColumn)) {
205
+          if (!in_array($key, $tableColumn)) {
206 206
               $unexpectedFields[] = $key;
207 207
           }
208 208
       }
Please login to merge, or discard this patch.