Completed
Push — master ( ce62e6...a2dd34 )
by Song
03:32
created
src/Console/GenerateCommand.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-     * @return bool
80
+     * @return false|null
81 81
      */
82 82
     protected function generate()
83 83
     {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * @param string $name
118 118
      * @param string $resource
119
-     * @return mixed
119
+     * @return string
120 120
      */
121 121
     protected function buildControllerClass($name, $resource)
122 122
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     /**
137 137
      * @param string $name
138
-     * @return mixed
138
+     * @return string
139 139
      */
140 140
     protected function buildResourceClass($name)
141 141
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,9 +168,9 @@  discard block
 block discarded – undo
168 168
      */
169 169
     protected function indentCodes($code)
170 170
     {
171
-        $indent = str_repeat(' ',  8);
171
+        $indent = str_repeat(' ', 8);
172 172
 
173
-        return $indent. preg_replace("/\r\n/", "\r\n{$indent}", $code);
173
+        return $indent.preg_replace("/\r\n/", "\r\n{$indent}", $code);
174 174
     }
175 175
 
176 176
     /**
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     protected function makeDirectory($path)
250 250
     {
251
-        if (! $this->files->isDirectory(dirname($path))) {
251
+        if (!$this->files->isDirectory(dirname($path))) {
252 252
             $this->files->makeDirectory(dirname($path), 0777, true, true);
253 253
         }
254 254
 
Please login to merge, or discard this patch.
src/Controllers/HasResourceActions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * Remove the specified resource from storage.
31 31
      *
32 32
      * @param  int  $id
33
-     * @return \Illuminate\Http\Response
33
+     * @return \Illuminate\Http\JsonResponse
34 34
      */
35 35
     public function destroy($id)
36 36
     {
Please login to merge, or discard this patch.
src/Console/ResourceGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@
 block discarded – undo
220 220
             );
221 221
         }
222 222
 
223
-        $table = $this->model->getConnection()->getTablePrefix() . $this->model->getTable();
223
+        $table = $this->model->getConnection()->getTablePrefix().$this->model->getTable();
224 224
         /** @var \Doctrine\DBAL\Schema\MySqlSchemaManager $schema */
225 225
         $schema = $this->model->getConnection()->getDoctrineSchemaManager($table);
226 226
 
Please login to merge, or discard this patch.