Completed
Push — master ( 3ea27d...e15f7b )
by wen
41:24 queued 26:28
created
src/Console/ComponentMakeCommand.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -220,6 +220,9 @@  discard block
 block discarded – undo
220 220
         return $model;
221 221
     }
222 222
 
223
+    /**
224
+     * @param string $model
225
+     */
223 226
     protected function getViewColumns($model)
224 227
     {
225 228
         $columns = $this->getTableColumns($model);
@@ -250,11 +253,17 @@  discard block
 block discarded – undo
250 253
         return $column->getComment() ?? studly_case($column->getName());
251 254
     }
252 255
 
256
+    /**
257
+     * @param string $name
258
+     */
253 259
     protected function getViewColumnType($name)
254 260
     {
255 261
         return $this->columnTypeMappings[$name] ?? 'text';
256 262
     }
257 263
 
264
+    /**
265
+     * @param string $model
266
+     */
258 267
     protected function getFormElements($model)
259 268
     {
260 269
         $columns = $this->getTableColumns($model);
@@ -283,6 +292,9 @@  discard block
 block discarded – undo
283 292
         );
284 293
     }
285 294
 
295
+    /**
296
+     * @param string $name
297
+     */
286 298
     protected function getFormElementType($name)
287 299
     {
288 300
         return $this->elementTypeMappings[$name] ?? 'text';
Please login to merge, or discard this patch.
src/Component/Component.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
     }
144 144
 
145 145
     /**
146
-     * @return \Illuminate\Database\Eloquent\Model|mixed
146
+     * @return Model
147 147
      */
148 148
     protected function makeModel()
149 149
     {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 
5 5
 use BadMethodCallException;
6 6
 use Illuminate\Database\Eloquent\Model;
7
-use InvalidArgumentException;
8 7
 use Illuminate\Foundation\Application;
8
+use InvalidArgumentException;
9 9
 use Sco\Admin\Component\Concerns\HasAccess;
10 10
 use Sco\Admin\Component\Concerns\HasEvents;
11 11
 use Sco\Admin\Component\Concerns\HasNavigation;
12 12
 use Sco\Admin\Contracts\ComponentInterface;
13
+use Sco\Admin\Contracts\Display\DisplayInterface;
13 14
 use Sco\Admin\Contracts\Form\FormInterface;
14 15
 use Sco\Admin\Contracts\RepositoryInterface;
15
-use Sco\Admin\Contracts\Display\DisplayInterface;
16 16
 
17 17
 abstract class Component implements ComponentInterface
18 18
 {
Please login to merge, or discard this patch.