Completed
Push — master ( a5bde4...58727d )
by wen
14:46
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, -3 removed lines patch added patch discarded remove patch
@@ -2,17 +2,16 @@
 block discarded – undo
2 2
 
3 3
 namespace Sco\Admin\Component;
4 4
 
5
-use BadMethodCallException;
6 5
 use Illuminate\Database\Eloquent\Model;
7
-use InvalidArgumentException;
8 6
 use Illuminate\Foundation\Application;
7
+use InvalidArgumentException;
9 8
 use Sco\Admin\Component\Concerns\HasAccess;
10 9
 use Sco\Admin\Component\Concerns\HasEvents;
11 10
 use Sco\Admin\Component\Concerns\HasNavigation;
12 11
 use Sco\Admin\Contracts\ComponentInterface;
12
+use Sco\Admin\Contracts\Display\DisplayInterface;
13 13
 use Sco\Admin\Contracts\Form\FormInterface;
14 14
 use Sco\Admin\Contracts\RepositoryInterface;
15
-use Sco\Admin\Contracts\Display\DisplayInterface;
16 15
 
17 16
 abstract class Component implements ComponentInterface
18 17
 {
Please login to merge, or discard this patch.