Completed
Pull Request — master (#697)
by
unknown
17:47
created
src/Commands/RuleMakeCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return string
63 63
      */
64 64
     protected function getTemplateContents()
65 65
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     protected function getDestinationFilePath()
79 79
     {
Please login to merge, or discard this patch.
src/Commands/MigrationMakeCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * @throws \InvalidArgumentException
69 69
      *
70
-     * @return mixed
70
+     * @return Stub
71 71
      */
72 72
     protected function getTemplateContents()
73 73
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @return mixed
110
+     * @return string
111 111
      */
112 112
     protected function getDestinationFilePath()
113 113
     {
Please login to merge, or discard this patch.
src/Commands/ModelMakeCommand.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return string
63 63
      */
64 64
     protected function getTemplateContents()
65 65
     {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-     * @return mixed
81
+     * @return string
82 82
      */
83 83
     protected function getDestinationFilePath()
84 84
     {
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @return mixed|string
93
+     * @return string
94 94
      */
95 95
     private function getModelName()
96 96
     {
Please login to merge, or discard this patch.
src/Commands/ResourceMakeCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return string
63 63
      */
64 64
     protected function getTemplateContents()
65 65
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     protected function getDestinationFilePath()
79 79
     {
Please login to merge, or discard this patch.
src/Commands/TestMakeCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @return mixed
62
+     * @return string
63 63
      */
64 64
     protected function getTemplateContents()
65 65
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @return mixed
76
+     * @return string
77 77
      */
78 78
     protected function getDestinationFilePath()
79 79
     {
Please login to merge, or discard this patch.
src/Module.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * Get a specific data from composer.json file by given the key.
229 229
      *
230
-     * @param $key
230
+     * @param string $key
231 231
      * @param null $default
232 232
      *
233 233
      * @return mixed
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     /**
301 301
      * Determine whether the given status same with the current module status.
302 302
      *
303
-     * @param $status
303
+     * @param integer $status
304 304
      *
305 305
      * @return bool
306 306
      */
@@ -354,9 +354,9 @@  discard block
 block discarded – undo
354 354
     /**
355 355
      * Set active state for current module.
356 356
      *
357
-     * @param $active
357
+     * @param integer $active
358 358
      *
359
-     * @return bool
359
+     * @return integer
360 360
      */
361 361
     public function setActive($active)
362 362
     {
Please login to merge, or discard this patch.
src/FileRepository.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,6 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * Creates a new Module instance
105 105
      *
106
-     * @param Container $app
107 106
      * @param $name
108 107
      * @param $path
109 108
      * @return \Nwidart\Modules\Module
@@ -425,9 +424,9 @@  discard block
 block discarded – undo
425 424
     /**
426 425
      * Get a specific config data from a configuration file.
427 426
      *
428
-     * @param $key
427
+     * @param string $key
429 428
      *
430
-     * @param null $default
429
+     * @param string $default
431 430
      * @return mixed
432 431
      */
433 432
     public function config($key, $default = null)
@@ -614,7 +613,7 @@  discard block
 block discarded – undo
614 613
     /**
615 614
      * Get stub path.
616 615
      *
617
-     * @return string|null
616
+     * @return string|boolean
618 617
      */
619 618
     public function getStubPath()
620 619
     {
Please login to merge, or discard this patch.
src/Commands/RequireCommand.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@  discard block
 block discarded – undo
62 62
         }
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $path
67
+     */
65 68
     protected function getComposer($path)
66 69
     {
67 70
         return json_decode(file_get_contents($path), true);
@@ -97,6 +100,10 @@  discard block
 block discarded – undo
97 100
         $this->putComposer($moduleComposerPath, $moduleComposer);
98 101
     }
99 102
 
103
+    /**
104
+     * @param string $path
105
+     * @param Json $data
106
+     */
100 107
     protected function putComposer($path, $data)
101 108
     {
102 109
         file_put_contents($path, json_encode($data, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));
Please login to merge, or discard this patch.
src/Process/Installer.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -133,7 +133,6 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * Run the installation process.
135 135
      *
136
-     * @param bool $dev
137 136
      * @return \Symfony\Component\Process\Process
138 137
      */
139 138
     public function run()
@@ -168,7 +167,6 @@  discard block
 block discarded – undo
168 167
     /**
169 168
      * Get process instance.
170 169
      *
171
-     * @param bool $dev
172 170
      * @return \Symfony\Component\Process\Process
173 171
      */
174 172
     public function getProcess()
Please login to merge, or discard this patch.