Code Duplication    Length = 25-29 lines in 2 locations

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

@@ 12-40 (lines=29) @@
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
            // 'phone',
24
25
            'password',
26
            'client_id',
27
            'client_password',
28
            'grant_type',
29
            'scope',
30
        ],
31
        'required'   => [
32
            'password',
33
            'client_id',
34
            'client_password',
35
        ],
36
        'default'    => [
37
            'scope' => '',
38
        ]
39
    ];
40
}
41

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