Passed
Push — master ( 5cb54f...c9c63f )
by Christian
11:13 queued 10s
created

SwagTestPluginAclOpenToAllRead   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A enrichPrivileges() 0 5 1
1
<?php declare(strict_types=1);
2
3
namespace SwagTestPluginAcl;
4
5
use Shopware\Core\Framework\Plugin;
6
7
class SwagTestPluginAclOpenToAllRead extends Plugin
8
{
9
    public function enrichPrivileges(): array
10
    {
11
        return [
12
            'all' => [
13
                'open_to_all:read',
14
            ],
15
        ];
16
    }
17
}
18