@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | class ProfileCertain extends CertainRessourceAbstract implements CertainRessourceInterface |
| 13 | 13 | { |
| 14 | - public function getRessourceName(){ |
|
| 14 | + public function getRessourceName() { |
|
| 15 | 15 | return 'Profile'; |
| 16 | 16 | } |
| 17 | 17 | public function getMandatoryFields() |
@@ -27,18 +27,18 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function getProfileByEmail($email) |
| 29 | 29 | { |
| 30 | - $resultCertain = $this->getProfileCertainReturnByEmail($email); |
|
| 31 | - if($resultCertain->isSuccessFul()){ |
|
| 30 | + $resultCertain = $this->getProfileCertainReturnByEmail($email); |
|
| 31 | + if ($resultCertain->isSuccessFul()) { |
|
| 32 | 32 | $resultCertainProfile = $resultCertain->getResults(); |
| 33 | - if($resultCertainProfile->size == 1){ |
|
| 33 | + if ($resultCertainProfile->size == 1) { |
|
| 34 | 34 | return $resultCertainProfile->profiles[0]; |
| 35 | 35 | |
| 36 | - } elseif($resultCertainProfile->size > 1){ |
|
| 36 | + } elseif ($resultCertainProfile->size>1) { |
|
| 37 | 37 | throw new RessourceException('Duplicate entries'); |
| 38 | - } else{ |
|
| 38 | + }else { |
|
| 39 | 39 | return $resultCertain; |
| 40 | 40 | } |
| 41 | - } else{ |
|
| 41 | + }else { |
|
| 42 | 42 | return null; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -62,8 +62,8 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function getProfiles($params = []) |
| 64 | 64 | { |
| 65 | - $request= $this->get(null,$params); |
|
| 66 | - if($request->isSuccessFul()){ |
|
| 65 | + $request = $this->get(null, $params); |
|
| 66 | + if ($request->isSuccessFul()) { |
|
| 67 | 67 | $profileCertainResults = $request->getResults(); |
| 68 | 68 | return $profileCertainResults->profiles; |
| 69 | 69 | } |