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

@@ 117-127 (lines=11) @@
114
        return $candidate;
115
    }
116
117
    public function jsonSerialize()
118
    {
119
        return [
120
            'identity_id'    => $this->identityId,
121
            'institution'    => $this->institution,
122
            'common_name'    => $this->commonName,
123
            'email'          => $this->email,
124
            'name_id'        => $this->nameId,
125
            'ra_institution' => $this->raInstitution,
126
        ];
127
    }
128
}
129