AnomalyModulePreferencesCreatePreferencesFields
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 21
c 0
b 0
f 0
1
<?php
2
3
use Anomaly\Streams\Platform\Database\Migration\Migration;
4
5
/**
6
 * Class AnomalyModulePreferencesCreatePreferencesFields
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class AnomalyModulePreferencesCreatePreferencesFields extends Migration
0 ignored issues
show
Coding Style Compatibility introduced by Brennon Loveless
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
13
{
14
15
    /**
16
     * The addon fields.
17
     *
18
     * @var array
19
     */
20
    protected $fields = [
21
        'user'  => [
22
            'type'   => 'anomaly.field_type.relationship',
23
            'config' => [
24
                'mode'    => 'lookup',
25
                'related' => 'Anomaly\UsersModule\User\UserModel',
26
            ],
27
        ],
28
        'key'   => 'anomaly.field_type.text',
29
        'value' => 'anomaly.field_type.textarea',
30
    ];
31
32
}
33