Code Duplication    Length = 9-9 lines in 2 locations

src/Ressources/ProfileCertain.php 1 location

@@ 62-70 (lines=9) @@
59
     * Return with all the result from certain.
60
     * @return ProfileCertain[]
61
     */
62
    public function getProfiles()
63
    {
64
        $request=  $this->get();
65
        if($request->isSuccessFul()){
66
            $profileCertainResults = $request->getResults();
67
            return $profileCertainResults;          
68
        }
69
        return null;
70
    }
71
72
}

src/Ressources/RegistrationCertain.php 1 location

@@ 26-34 (lines=9) @@
23
     * Return with all the result from certain.
24
     * @return RegistrationCertain[]
25
     */
26
    public function getRegistrations()
27
    {
28
        $request=  $this->get();
29
        if($request->isSuccessFul()){
30
            $registrationCertainResults = $request->getResults();
31
            return $profileCertainResults;
32
        }
33
        return null;
34
    }
35
    
36
}