Completed
Push — master ( 43590a...28d05b )
by Raphaël
05:30
created
src/CertainApiClient.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -108,20 +108,20 @@  discard block
 block discarded – undo
108 108
      * @param string $ressourceId
109 109
      * @return string
110 110
      */
111
-    private function builPathToCall($ressourceName,$ressourcePath =null, $ressourceId = null)
111
+    private function builPathToCall($ressourceName, $ressourcePath = null, $ressourceId = null)
112 112
     {
113 113
         $ressourceAdded = '';
114
-        if(!is_null($ressourcePath) && $ressourcePath != ''){
114
+        if (!is_null($ressourcePath) && $ressourcePath != '') {
115 115
             $ressourceAdded = $ressourcePath;
116 116
         }
117 117
 
118 118
         if ($ressourceId !== null) {
119 119
             $ressourceAdded = '/'.$ressourceId;
120 120
         }
121
-        if(!is_null($ressourcePath)){
121
+        if (!is_null($ressourcePath)) {
122 122
             $this->builPath = 'accounts/'.$this->getAccountCode().$ressourceAdded;
123 123
             return  $this->builPath;
124
-        }else{
124
+        }else {
125 125
             $this->builPath = $ressourceName.'/'.$this->getAccountCode().$ressourceAdded;
126 126
             return  $this->builPath;
127 127
         }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      * @param string $contentType
139 139
      * @return array
140 140
      */
141
-    public function get($ressourceName, $ressourcePath =null, $ressourceId = null, $query = array(),
141
+    public function get($ressourceName, $ressourcePath = null, $ressourceId = null, $query = array(),
142 142
                         $assoc = false, $contentType = 'json')
143 143
     {
144 144
         try {
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      * @param string $contentType
168 168
      * @return array
169 169
      */
170
-    public function post($ressourceName, $ressourcePath =null, $ressourceId = null,
170
+    public function post($ressourceName, $ressourcePath = null, $ressourceId = null,
171 171
                          $bodyData = array(), $query = array(), $assoc = false,
172 172
                          $contentType = 'json')
173 173
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param string $contentType
202 202
      * @return array
203 203
      */
204
-    public function put($ressourceName, $ressourcePath =null, $ressourceId = null,
204
+    public function put($ressourceName, $ressourcePath = null, $ressourceId = null,
205 205
                          $bodyData = array(), $query = array(), $assoc = false,
206 206
                          $contentType = 'json')
207 207
     {
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      * @param string $contentType
234 234
      * @return array
235 235
      */
236
-    public function delete($ressourceName, $ressourcePath =null, $ressourceId = null, $assoc = false,
236
+    public function delete($ressourceName, $ressourcePath = null, $ressourceId = null, $assoc = false,
237 237
                            $contentType = 'json')
238 238
     {
239 239
         try {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
         if(!is_null($ressourcePath)){
122 122
             $this->builPath = 'accounts/'.$this->getAccountCode().$ressourceAdded;
123 123
             return  $this->builPath;
124
-        }else{
124
+        } else{
125 125
             $this->builPath = $ressourceName.'/'.$this->getAccountCode().$ressourceAdded;
126 126
             return  $this->builPath;
127 127
         }
Please login to merge, or discard this patch.