ProxyApiLoginTransporter
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 29
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
lcom 0
cbo 1
dl 29
loc 29
c 0
b 0
f 0

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
namespace App\Containers\Authentication\Data\Transporters;
4
5
use App\Ship\Parents\Transporters\Transporter;
6
7
/**
8
 * Class ProxyApiLoginTransporter
9
 *
10
 * @author  Mahmoud Zalt  <[email protected]>
11
 */
12 View Code Duplication
class ProxyApiLoginTransporter extends Transporter
0 ignored issues
show
Duplication introduced by Mahmoud Zalt
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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