Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
10 | public function up() |
||
11 | { |
||
12 | $data = [ |
||
13 | [ |
||
14 | 'title' => 'About Bluz Framework', |
||
15 | 'alias' => 'about', |
||
16 | 'content' => '<p>Bluz Lightweight PHP Framework!</p>', |
||
17 | 'keywords' => 'php, php framework, bluz framework', |
||
18 | 'description' => 'About Bluz', |
||
19 | 'created' => date('Y-m-d H:i:s'), |
||
20 | 'userId' => 1 |
||
21 | ] |
||
22 | ]; |
||
23 | |||
24 | $pages = $this->table('pages'); |
||
25 | $pages->insert($data) |
||
26 | ->save(); |
||
27 | } |
||
28 | |||
37 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.