Code Duplication    Length = 25-27 lines in 2 locations

app/Containers/Authentication/Data/Transporters/ProxyApiLoginTransporter.php 1 location

@@ 12-38 (lines=27) @@
9
 *
10
 * @author  Mahmoud Zalt  <[email protected]>
11
 */
12
class ProxyApiLoginTransporter extends Transporter
13
{
14
15
    /**
16
     * @var array
17
     */
18
    protected $schema = [
19
        'type' => 'object',
20
        'properties' => [
21
            'email',
22
            'name',
23
            'password',
24
            'client_id',
25
            'client_password',
26
            'grant_type',
27
            'scope',
28
        ],
29
        'required'   => [
30
            'password',
31
            'client_id',
32
            'client_password',
33
        ],
34
        'default'    => [
35
            'scope' => '',
36
        ]
37
    ];
38
}
39

app/Containers/Authentication/Data/Transporters/ProxyRefreshTransporter.php 1 location

@@ 12-36 (lines=25) @@
9
 *
10
 * @author  Mahmoud Zalt  <[email protected]>
11
 */
12
class ProxyRefreshTransporter extends Transporter
13
{
14
15
    /**
16
     * @var array
17
     */
18
    protected $schema = [
19
        'type' => 'object',
20
        'properties' => [
21
            'refresh_token',
22
            'client_id',
23
            'client_password',
24
            'grant_type',
25
            'scope',
26
        ],
27
        'required'   => [
28
            'refresh_token',
29
            'client_id',
30
            'client_password',
31
        ],
32
        'default'    => [
33
            'scope' => '',
34
        ]
35
    ];
36
}
37