@@ -58,7 +58,7 @@ |
||
| 58 | 58 | |
| 59 | 59 | if($contentType === 'json'){ |
| 60 | 60 | $response['results'] = $this->jsonp_decode($bodyString, $assoc); |
| 61 | - }else{ |
|
| 61 | + } else{ |
|
| 62 | 62 | $response['results']=$bodyString; |
| 63 | 63 | } |
| 64 | 64 | |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | throw new Exceptions\RessourceMandatoryFieldException(sprintf('The field %s is required',$field)); |
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | - }else{ |
|
| 111 | + } else{ |
|
| 112 | 112 | throw new Exceptions\RessourceMandatoryFieldException(sprintf('The id field is required')); |
| 113 | 113 | } |
| 114 | 114 | $this->results = $this->certainApiService->put($ressourceName, $this->ressourceCalled, $ressourceId, $bodyData, $query, $assoc, $contentType); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | throw new Exceptions\RessourceMandatoryFieldException(sprintf('The field %s is required',$field)); |
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | - }else{ |
|
| 111 | + } else{ |
|
| 112 | 112 | throw new Exceptions\RessourceMandatoryFieldException(sprintf('The id field is required')); |
| 113 | 113 | } |
| 114 | 114 | $this->results = $this->certainApiService->put($ressourceName, $this->ressourceCalled, $ressourceId, $bodyData, $query, $assoc, $contentType); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | foreach ($ressourceCalledParameters as $segmentKey => $segmentValue) { |
| 170 | 170 | if($segmentValue != ''){ |
| 171 | 171 | $this->ressourceCalled .= '/'.$segmentKey.'/'.$segmentValue; |
| 172 | - }else{ |
|
| 172 | + } else{ |
|
| 173 | 173 | $this->ressourceCalled .= '/'.$segmentKey; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -38,6 +38,9 @@ |
||
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $email |
|
| 43 | + */ |
|
| 41 | 44 | public function getProfileCertainReturnByEmail($email) |
| 42 | 45 | { |
| 43 | 46 | return $this->get(null, ['email'=> $email]); |