Completed
Push — master ( 35d0cd...0aa8d0 )
by Raphaël
02:11
created
src/CertainApiClient.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -91,19 +91,19 @@  discard block
 block discarded – undo
91 91
      * @param string $ressourceId
92 92
      * @return string
93 93
      */
94
-    private function builPathToCall($ressourceName,$ressourcePath =null, $ressourceId = null)
94
+    private function builPathToCall($ressourceName, $ressourcePath = null, $ressourceId = null)
95 95
     {
96 96
         $ressourceAdded = '';
97
-        if(!is_null($ressourcePath) && $ressourcePath != ''){
97
+        if (!is_null($ressourcePath) && $ressourcePath != '') {
98 98
             $ressourceAdded = $ressourcePath;
99 99
         }
100 100
         
101 101
         if ($ressourceId !== null) {
102 102
             $ressourceAdded = '/'.$ressourceId;
103 103
         }
104
-        if(!is_null($ressourcePath)){
104
+        if (!is_null($ressourcePath)) {
105 105
             return  'accounts/'.$this->getAccountCode().$ressourceAdded;
106
-        }else{
106
+        }else {
107 107
             return $ressourceName.'/'.$this->getAccountCode().$ressourceAdded;
108 108
         }
109 109
         
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @param string $contentType
120 120
      * @return array
121 121
      */
122
-    public function get($ressourceName, $ressourcePath =null, $ressourceId = null, $query = array(),
122
+    public function get($ressourceName, $ressourcePath = null, $ressourceId = null, $query = array(),
123 123
                         $assoc = false, $contentType = 'json')
124 124
     {
125 125
         try {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * @param string $contentType
147 147
      * @return array
148 148
      */
149
-    public function post($ressourceName, $ressourcePath =null, $ressourceId = null,
149
+    public function post($ressourceName, $ressourcePath = null, $ressourceId = null,
150 150
                          $bodyData = array(), $query = array(), $assoc = false,
151 151
                          $contentType = 'json')
152 152
     {
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * @param string $contentType
179 179
      * @return array
180 180
      */
181
-    public function put($ressourceName, $ressourcePath =null, $ressourceId = null,
181
+    public function put($ressourceName, $ressourcePath = null, $ressourceId = null,
182 182
                          $bodyData = array(), $query = array(), $assoc = false,
183 183
                          $contentType = 'json')
184 184
     {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      * @param string $contentType
209 209
      * @return array
210 210
      */
211
-    public function delete($ressourceName, $ressourcePath =null, $ressourceId = null, $assoc = false,
211
+    public function delete($ressourceName, $ressourcePath = null, $ressourceId = null, $assoc = false,
212 212
                            $contentType = 'json')
213 213
     {
214 214
         try {
Please login to merge, or discard this patch.