Skip to content

Commit

Permalink
Merge pull request #1 from irazasyed/analysis-8KPL56
Browse files Browse the repository at this point in the history
Apply style fixes
  • Loading branch information
irazasyed authored Jan 4, 2017
2 parents d9ee458 + 8142195 commit 6623a61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/GsuiteChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use Generator;
use GuzzleHttp\Client;
use GuzzleHttp\Promise;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Promise;
use Psr\Http\Message\ResponseInterface;

/**
* Class GsuiteChecker
* Class GsuiteChecker.
*/
class GsuiteChecker
{
Expand All @@ -28,17 +28,17 @@ class GsuiteChecker
/**
* Create a new instance of GsuiteChecker with provided domains.
*
* @param mixed $domains
* @param mixed $domains
*/
public function __construct($domains = [])
{
$this->domains = (array)$domains;
$this->domains = (array) $domains;
}

/**
* Create a new instance if the value isn't one already.
*
* @param mixed $domains
* @param mixed $domains
*
* @return static
*/
Expand Down Expand Up @@ -128,13 +128,13 @@ public function responseHandler($response, $index)
/** @var string $domain Get the domain */
$domain = $this->domains[$index];

/** Remove it from the list */
/* Remove it from the list */
unset($this->domains[$index]);

/** @var $status Gsuite status of the domain */
$status = $this->status($response);

/** Put the domain and status to the list */
/* Put the domain and status to the list */
$this->domains[$domain] = $status;
}

Expand All @@ -157,14 +157,14 @@ protected function status($response)
/**
* Determine if a given string contains a given substring.
*
* @param string $haystack
* @param string|array $needles
* @param string $haystack
* @param string|array $needles
*
* @return bool
*/
protected function strContains($haystack, $needles)
{
foreach ((array)$needles as $needle) {
foreach ((array) $needles as $needle) {
if ($needle != '' && mb_strpos($haystack, $needle) !== false) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class ExampleTest extends \PHPUnit_Framework_TestCase
{
/**
* Test that true does in fact equal true
* Test that true does in fact equal true.
*/
public function testTrueIsTrue()
{
Expand Down

0 comments on commit 6623a61

Please sign in to comment.