Completed
Push — master ( bd4337...d5933f )
by Raphaël
02:09
created
src/Response/CertainResponse.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
             
Please login to merge, or discard this patch.
src/CertainApiClient.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,9 @@  discard block
 block discarded – undo
87 87
 
88 88
     /**
89 89
      * Build the URI to request
90
-     * @param string|array $ressourceName
90
+     * @param string $ressourceName
91 91
      * @param string $ressourceId
92
+     * @param string $ressourcePath
92 93
      * @return string
93 94
      */
94 95
     private function builPathToCall($ressourceName,$ressourcePath =null, $ressourceId = null)
@@ -225,7 +226,7 @@  discard block
 block discarded – undo
225 226
 
226 227
     /**
227 228
      * Make the  Certain Api repsonse.
228
-     * @param ResponseInterface $response
229
+     * @param \Psr\Http\Message\ResponseInterface|null $response
229 230
      * @param string $contentType
230 231
      * @param boolean $assoc
231 232
      * @return array
Please login to merge, or discard this patch.
src/Ressources/RegistrationCertain.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
                         'registrationCode' => $registrationCertainResults->registrations[0]->registrationCode,
70 70
                         'attendeeTypeCode' => $registrationCertainResults->registrations[0]->attendeeTypeCode,
71 71
                     ];
72
-            }
73
-            elseif($registrationCertainResults->size > 0 && $returnRegCode){
72
+            } elseif($registrationCertainResults->size > 0 && $returnRegCode){
74 73
                     return $registrationCertainResults->registrations[0]->registrationCode;
75 74
             } elseif($registrationCertainResults->size > 0  && !$returnRegCode){
76 75
                 return true;
Please login to merge, or discard this patch.