AnomalyModulePreferencesCreatePreferencesStreams
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 0
dl 0
loc 28
c 0
b 0
f 0
1
<?php
2
3
use Anomaly\Streams\Platform\Database\Migration\Migration;
4
5
/**
6
 * Class AnomalyModulePreferencesCreatePreferencesStreams
7
 *
8
 * @link          http://pyrocms.com/
9
 * @author        PyroCMS, Inc. <[email protected]>
10
 * @author        Ryan Thompson <[email protected]>
11
 */
12
class AnomalyModulePreferencesCreatePreferencesStreams extends Migration
0 ignored issues
show
Coding Style Compatibility introduced by
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 stream definition.
17
     *
18
     * @var array
19
     */
20
    protected $stream = [
21
        'slug' => 'preferences',
22
    ];
23
24
    /**
25
     * The stream assignments.
26
     *
27
     * @var array
28
     */
29
    protected $assignments = [
30
        'user' => [
31
            'required' => true,
32
        ],
33
        'key'  => [
34
            'required' => true,
35
        ],
36
        'value',
37
    ];
38
39
}
40