@@ -226,7 +226,9 @@ public static function getCount($path)
226226 {
227227 $ response = self ::connection ()->get (self ::$ api_path . $ path );
228228
229- if ($ response == false || is_string ($ response )) return $ response ;
229+ if ($ response == false || is_string ($ response )) {
230+ return $ response ;
231+ }
230232
231233 return $ response ->count ;
232234 }
@@ -240,7 +242,9 @@ public static function getCount($path)
240242 */
241243 public static function createResource ($ path , $ object )
242244 {
243- if (is_array ($ object )) $ object = (object )$ object ;
245+ if (is_array ($ object )) {
246+ $ object = (object )$ object ;
247+ }
244248
245249 return self ::connection ()->post (self ::$ api_path . $ path , $ object );
246250 }
@@ -254,7 +258,9 @@ public static function createResource($path, $object)
254258 */
255259 public static function updateResource ($ path , $ object )
256260 {
257- if (is_array ($ object )) $ object = (object )$ object ;
261+ if (is_array ($ object )) {
262+ $ object = (object )$ object ;
263+ }
258264
259265 return self ::connection ()->put (self ::$ api_path . $ path , $ object );
260266 }
@@ -279,7 +285,9 @@ public static function deleteResource($path)
279285 */
280286 private static function mapCollection ($ resource , $ object )
281287 {
282- if ($ object == false || is_string ($ object )) return $ object ;
288+ if ($ object == false || is_string ($ object )) {
289+ return $ object ;
290+ }
283291
284292 $ baseResource = __NAMESPACE__ . '\\' . $ resource ;
285293 self ::$ resource = (class_exists ($ baseResource )) ? $ baseResource : 'Bigcommerce \\Api \\Resources \\' . $ resource ;
@@ -309,7 +317,9 @@ private static function mapCollectionObject($object)
309317 */
310318 private static function mapResource ($ resource , $ object )
311319 {
312- if ($ object == false || is_string ($ object )) return $ object ;
320+ if ($ object == false || is_string ($ object )) {
321+ return $ object ;
322+ }
313323
314324 $ baseResource = __NAMESPACE__ . '\\' . $ resource ;
315325 $ class = (class_exists ($ baseResource )) ? $ baseResource : 'Bigcommerce \\Api \\Resources \\' . $ resource ;
@@ -325,7 +335,9 @@ private static function mapResource($resource, $object)
325335 */
326336 private static function mapCount ($ object )
327337 {
328- if ($ object == false || is_string ($ object )) return $ object ;
338+ if ($ object == false || is_string ($ object )) {
339+ return $ object ;
340+ }
329341
330342 return $ object ->count ;
331343 }
@@ -339,7 +351,9 @@ public static function getTime()
339351 {
340352 $ response = self ::connection ()->get (self ::$ api_path . '/time ' );
341353
342- if ($ response == false || is_string ($ response )) return $ response ;
354+ if ($ response == false || is_string ($ response )) {
355+ return $ response ;
356+ }
343357
344358 return new \DateTime ("@ {$ response ->time }" );
345359 }
@@ -1152,7 +1166,9 @@ public static function getRequestsRemaining()
11521166 if (!$ limit ) {
11531167 $ result = self ::getTime ();
11541168
1155- if (!$ result ) return false ;
1169+ if (!$ result ) {
1170+ return false ;
1171+ }
11561172
11571173 $ limit = self ::connection ()->getHeader ('X-BC-ApiLimit-Remaining ' );
11581174 }
0 commit comments