Completed
Push — master ( b150a8...fa80df )
by Changwan
07:18
created
src/Wandu/Compiler/SyntaxAnalyzer.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Wandu\Compiler;
3 3
 
4 4
 use Closure;
5
-use Wandu\Compiler\Exception\UnknownTokenException;
6 5
 use Wandu\Compiler\Exception\UnknownTokenFromLexException;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
src/Wandu/Console/Commands/PsyshCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Psy\Shell;
5 5
 use Wandu\Console\Command;
6
-use Wandu\Q\Queue;
7 6
 
8 7
 class PsyshCommand extends Command
9 8
 {
Please login to merge, or discard this patch.
src/Wandu/DI/Container.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -488,7 +488,7 @@
 block discarded – undo
488 488
 
489 489
     /**
490 490
      * @param array $array
491
-     * @return array
491
+     * @return callable
492 492
      */
493 493
     protected static function getSeqArray(array $array)
494 494
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 use Wandu\DI\Containee\InstanceContainee;
14 14
 use Wandu\DI\Exception\CannotChangeException;
15 15
 use Wandu\DI\Exception\CannotFindParameterException;
16
-use Wandu\DI\Exception\CannotInjectException;
17 16
 use Wandu\DI\Exception\CannotResolveException;
18 17
 use Wandu\DI\Exception\NullReferenceException;
19 18
 use Wandu\Reflection\ReflectionCallable;
Please login to merge, or discard this patch.
src/Wandu/Foundation/Kernels/KernelAbstract.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-     * @param \Exception|\Throwable $exception
54
+     * @param ErrorException $exception
55 55
      * @return int
56 56
      */
57 57
     public function handleException($exception)
Please login to merge, or discard this patch.
src/Wandu/Http/Traits/RequestTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     }
110 110
 
111 111
     /**
112
-     * @param mixed $method
112
+     * @param string|null $method
113 113
      * @return string
114 114
      */
115 115
     protected function filterMethod($method)
Please login to merge, or discard this patch.
src/Wandu/Installation/Commands/InstallCommand.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -80,6 +80,11 @@  discard block
 block discarded – undo
80 80
         $this->output->writeln("<info>Install Complete!</info>");
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $appBasePath
85
+     * @param string $appNamespace
86
+     * @param string $path
87
+     */
83 88
     protected function install($appBasePath, $appNamespace, $path)
84 89
     {
85 90
         $installer = new SkeletonBuilder($appBasePath, __DIR__ . '/../skeleton');
@@ -99,6 +104,9 @@  discard block
 block discarded – undo
99 104
         );
100 105
     }
101 106
     
107
+    /**
108
+     * @param string $composerFile
109
+     */
102 110
     protected function runDumpAutoload($composerFile)
103 111
     {
104 112
         $basePath = dirname($composerFile);
@@ -111,6 +119,10 @@  discard block
 block discarded – undo
111 119
         (new Process("{$composer} dump-autoload", $basePath))->run();
112 120
     }
113 121
 
122
+    /**
123
+     * @param string $appNamespace
124
+     * @param string $composerFile
125
+     */
114 126
     protected function saveAutoloadToComposer($appNamespace, $composerFile, $path = '')
115 127
     {
116 128
         $this->output->write("save autoload setting to composer... ");
@@ -137,6 +149,10 @@  discard block
 block discarded – undo
137 149
         $this->output->writeln("<info>ok</info>");
138 150
     }
139 151
 
152
+    /**
153
+     * @param string $message
154
+     * @param string $default
155
+     */
140 156
     protected function askAppNamespace($message, $default)
141 157
     {
142 158
         return $this->io->ask($message, $default, function ($namespace) {
@@ -144,6 +160,10 @@  discard block
 block discarded – undo
144 160
         });
145 161
     }
146 162
 
163
+    /**
164
+     * @param string $message
165
+     * @param string $default
166
+     */
147 167
     protected function askAppBasePath($message, $default)
148 168
     {
149 169
         $appBasePath = $this->io->ask($message, $default);
Please login to merge, or discard this patch.
src/Wandu/Validator/ValidatorFactory.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -136,6 +136,9 @@  discard block
 block discarded – undo
136 136
         return $validator;
137 137
     }
138 138
     
139
+    /**
140
+     * @param string $pattern
141
+     */
139 142
     protected function getMethodAndParams($pattern)
140 143
     {
141 144
         if (false === $pivot = strpos($pattern, ':')) {
@@ -144,6 +147,10 @@  discard block
 block discarded – undo
144 147
         $method = substr($pattern, 0, $pivot);
145 148
         $params = array_reduce(
146 149
             explode(',', substr($pattern, $pivot + 1)),
150
+
151
+            /**
152
+             * @param string $carry
153
+             */
147 154
             function ($carry, $value) {
148 155
                 $value = trim($value);
149 156
                 if ($value) {
Please login to merge, or discard this patch.