Completed
Pull Request — master (#220)
by
unknown
03:40
created
src/Migrations/Migrator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@
 block discarded – undo
242 242
      *
243 243
      * @param string $migration
244 244
      *
245
-     * @return mixed
245
+     * @return boolean
246 246
      */
247 247
     public function log($migration)
248 248
     {
Please login to merge, or discard this patch.
src/Module.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @param Application $app
40 40
      * @param $name
41
-     * @param $path
41
+     * @param string $path
42 42
      */
43 43
     public function __construct(Application $app, $name, $path)
44 44
     {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * Get json contents.
184 184
      *
185
-     * @param $file
185
+     * @param string $file
186 186
      *
187 187
      * @return Json
188 188
      */
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
     /**
212 212
      * Get a specific data from composer.json file by given the key.
213 213
      *
214
-     * @param $key
214
+     * @param string $key
215 215
      * @param null $default
216 216
      *
217 217
      * @return mixed
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
     /**
290 290
      * Determine whether the given status same with the current module status.
291 291
      *
292
-     * @param $status
292
+     * @param integer $status
293 293
      *
294 294
      * @return bool
295 295
      */
@@ -341,9 +341,9 @@  discard block
 block discarded – undo
341 341
     /**
342 342
      * Set active state for current module.
343 343
      *
344
-     * @param $active
344
+     * @param integer $active
345 345
      *
346
-     * @return bool
346
+     * @return integer
347 347
      */
348 348
     public function setActive($active)
349 349
     {
Please login to merge, or discard this patch.
src/Support/Migrations/SchemaParser.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function createField($column, $attributes, $type = 'add')
146 146
     {
147
-        $results = "\t\t\t" . '$table';
147
+        $results = "\t\t\t".'$table';
148 148
 
149 149
         foreach ($attributes as $key => $field) {
150 150
             if (in_array($column, $this->relationshipKeys)) {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             }
155 155
         }
156 156
 
157
-        return $results . ';' . PHP_EOL;
157
+        return $results.';'.PHP_EOL;
158 158
     }
159 159
 
160 160
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     protected function addRelationColumn($key, $field, $column)
170 170
     {
171
-        $relatedColumn = snake_case(class_basename($field)) . '_id';
171
+        $relatedColumn = snake_case(class_basename($field)).'_id';
172 172
 
173 173
         $method = 'integer';
174 174
 
@@ -187,18 +187,18 @@  discard block
 block discarded – undo
187 187
     protected function addColumn($key, $field, $column)
188 188
     {
189 189
         if ($this->hasCustomAttribute($column)) {
190
-            return '->' . $field;
190
+            return '->'.$field;
191 191
         }
192 192
 
193 193
         if ($key == 0) {
194
-            return '->' . $field . "('" . $column . "')";
194
+            return '->'.$field."('".$column."')";
195 195
         }
196 196
 
197 197
         if (str_contains($field, '(')) {
198
-            return '->' . $field;
198
+            return '->'.$field;
199 199
         }
200 200
 
201
-        return '->' . $field . '()';
201
+        return '->'.$field.'()';
202 202
     }
203 203
 
204 204
     /**
@@ -213,10 +213,10 @@  discard block
 block discarded – undo
213 213
     protected function removeColumn($key, $field, $column)
214 214
     {
215 215
         if ($this->hasCustomAttribute($column)) {
216
-            return '->' . $field;
216
+            return '->'.$field;
217 217
         }
218 218
 
219
-        return '->dropColumn(' . "'" . $column . "')";
219
+        return '->dropColumn('."'".$column."')";
220 220
     }
221 221
 
222 222
     /**
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
      */
242 242
     public function getAttributes($column, $schema)
243 243
     {
244
-        $fields = str_replace($column . ':', '', $schema);
244
+        $fields = str_replace($column.':', '', $schema);
245 245
 
246 246
         return $this->hasCustomAttribute($column) ? $this->getCustomAttribute($column) : explode(':', $fields);
247 247
     }
Please login to merge, or discard this patch.