We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function run() |
||
14 | { |
||
15 | DB::table('articles')->insert([[ |
||
16 | 'id' => 1, |
||
17 | 'user_id' => 1, |
||
18 | 'content' => 'Some Content', |
||
19 | 'metas' => '{"meta_title":"Meta Title Value","meta_description":"Meta Description Value"}', |
||
20 | 'tags' => '{"tags":["tag1","tag2","tag3"]}', |
||
21 | 'extras' => '{"extra_details":["detail1","detail2","detail3"]}', |
||
22 | ]]); |
||
23 | } |
||
24 | } |
||
25 |
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.