Completed
Pull Request — master (#857)
by Lex
13:03
created
src/DatabaseRepository.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      *
245 245
      * @param $name
246 246
      *
247
-     * @return mixed
247
+     * @return Module
248 248
      * @throws \Nwidart\Modules\Exceptions\ModuleNotFoundException
249 249
      */
250 250
     public function findOrFail(string $name)
@@ -417,9 +417,7 @@  discard block
 block discarded – undo
417 417
     /**
418 418
      * Creates a new Module instance
419 419
      *
420
-     * @param Container $app
421
-     * @param string $args
422
-     * @param string $path
420
+     * @param string[] $args
423 421
      * @return \Nwidart\Modules\Module
424 422
      */
425 423
     abstract protected function createModule(...$args);
Please login to merge, or discard this patch.
src/Entities/Module.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * @param string $name
39 39
      * @param string $path
40
-     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model
40
+     * @return boolean
41 41
      */
42 42
     public static function findByNameOrCreate(string $name, string $path)
43 43
     {
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @param $column
58
-     * @param $direction
57
+     * @param string $column
58
+     * @param string $direction
59 59
      * @return \Illuminate\Database\Eloquent\Builder
60 60
      */
61 61
     public static function orderBy($column, $direction)
Please login to merge, or discard this patch.