Code Duplication    Length = 11-11 lines in 2 locations

src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/Identity.php 1 location

@@ 109-119 (lines=11) @@
106
        return $identity;
107
    }
108
109
    public function jsonSerialize()
110
    {
111
        return [
112
            'id'                        => $this->id,
113
            'name_id'                   => $this->nameId,
114
            'institution'               => $this->institution,
115
            'email'                     => $this->email,
116
            'common_name'               => $this->commonName,
117
            'preferred_locale'          => $this->preferredLocale,
118
        ];
119
    }
120
}
121

src/Surfnet/StepupMiddleware/ApiBundle/Identity/Entity/RaCandidate.php 1 location

@@ 103-113 (lines=11) @@
100
        return $candidate;
101
    }
102
103
    public function jsonSerialize()
104
    {
105
        return [
106
            'identity_id'    => $this->identityId,
107
            'institution'    => $this->institution,
108
            'common_name'    => $this->commonName,
109
            'email'          => $this->email,
110
            'name_id'        => $this->nameId,
111
            'ra_institution' => $this->raInstitution,
112
        ];
113
    }
114
}
115