Completed
Push — master ( 7881d6...49e473 )
by Cheren
05:59
created

UsersSeed   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 5 1
1
<?php
2
/**
3
 * CakeCMS Community
4
 *
5
 * This file is part of the of the simple cms based on CakePHP 3.
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * @package     Community
10
 * @license     MIT
11
 * @copyright   MIT License http://www.opensource.org/licenses/mit-license.php
12
 * @link        https://github.com/CakeCMS/Community".
13
 * @author      Sergey Kalistratov <[email protected]>
14
 */
15
16
use Phinx\Seed\AbstractSeed;
17
18
/**
19
 * Class UsersSeed
20
 */
21
class UsersSeed extends AbstractSeed
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...
22
{
23
24
    /**
25
     * Table default records.
26
     *
27
     * @var array
28
     */
29
    public $records = [];
30
31
    /**
32
     * Run the seeder.
33
     *
34
     * @return  void
35
     */
36
    public function run()
37
    {
38
        $table = $this->table(CMS_TABLE_USERS);
39
        $table->insert($this->records)->save();
40
    }
41
}
42