Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Replace Nested Conditional with Guard Clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
Slamdunk committed Nov 14, 2014
1 parent ed575ea commit 5762b95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Client/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

use SoapClient;

if (extension_loaded('soap')) {
if (! extension_loaded('soap')) {
return;
}

class Common extends SoapClient
{
/**
/**
* doRequest() pre-processing method
*
* @var callable
Expand Down Expand Up @@ -57,5 +59,3 @@ public function __doRequest($request, $location, $action, $version, $oneWay = nu
return call_user_func($this->doRequestCallback, $this, ltrim($request), $location, $action, $version, $oneWay);
}
}

}

0 comments on commit 5762b95

Please sign in to comment.