@@ -32,6 +32,7 @@ discard block |
||
32 | 32 | * Create a new collection. |
33 | 33 | * |
34 | 34 | * @param mixed $items |
35 | + * @param \LaravelFlare\Flare\Admin\Models\ModelAdmin $modelManager |
|
35 | 36 | * |
36 | 37 | * @return void |
37 | 38 | */ |
@@ -48,7 +49,7 @@ discard block |
||
48 | 49 | * Attempt to reformat the current attribute items array |
49 | 50 | * into the most usable format (an Attribute Collection). |
50 | 51 | * |
51 | - * @return void |
|
52 | + * @return AttributeCollection |
|
52 | 53 | */ |
53 | 54 | public function formatFields() |
54 | 55 | { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | throw new \Exception('Attribute Field Type cannot be empty or undefined.'); |
41 | 41 | } |
42 | 42 | |
43 | - return call_user_func_array([$this->createAttribute($field['type'], $action, $attribute, $field, $modelManager), camel_case('render_'.$action)], []); |
|
43 | + return call_user_func_array([$this->createAttribute($field['type'], $action, $attribute, $field, $modelManager), camel_case('render_' . $action)], []); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |