Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function run($request) |
||
13 | { |
||
14 | $permissions = Permission::get(); |
||
15 | foreach ($permissions as $permission) { |
||
16 | if ($permission->Arg == 0 && $permission->Type == 1) { |
||
17 | if (isset($this->_permissions[$permission->Code])) { |
||
18 | DB::alteration_message("Deleting double permission with code: ".$permission->Code, 'deleted'); |
||
19 | $permission->delete(); |
||
20 | } |
||
21 | $this->_permissions[$permission->Code]; |
||
22 | } |
||
23 | } |
||
24 | } |
||
25 | } |
||
26 |
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.