Skip to content

Commit

Permalink
Merge pull request #1 from spatie/analysis-qxjNoy
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
freekmurze committed Jan 12, 2017
2 parents ad6cddc + 738f622 commit 60d814d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/BaseStream.php
Expand Up @@ -4,7 +4,7 @@

abstract class BaseStream
{
/** @var \Spatie\TwitterStreamingApi\PhirehoseWrapper */
/** @var \Spatie\TwitterStreamingApi\PhirehoseWrapper */
protected $stream;

protected function createStream(
Expand All @@ -13,8 +13,7 @@ protected function createStream(
string $consumerKey,
string $consumerSecret,
string $filter
) : PhirehoseWrapper
{
) : PhirehoseWrapper {
return new PhirehoseWrapper(
$accessToken,
$accessSecret,
Expand Down
7 changes: 4 additions & 3 deletions src/PhirehoseWrapper.php
Expand Up @@ -2,8 +2,8 @@

namespace Spatie\TwitterStreamingApi;

use OauthPhirehose;
use Phirehose;
use OauthPhirehose;

class PhirehoseWrapper extends OauthPhirehose
{
Expand All @@ -17,11 +17,12 @@ public function __construct($accessToken, $accessSecret, $consumerKey, $consumer
$this->consumerKey = $consumerKey;
$this->consumerSecret = $consumerSecret;

$this->onStreamActivity = function($status) {};
$this->onStreamActivity = function ($status) {
};
}

/**
* Enqueue each status
* Enqueue each status.
*
* @param string $status
*/
Expand Down
4 changes: 1 addition & 3 deletions src/PublicStream.php
Expand Up @@ -8,8 +8,6 @@ class PublicStream extends BaseStream
{
public function __construct($accessToken, $accessSecret, $consumerKey, $consumerSecret)
{


$this->stream = $this->createStream(
$accessToken,
$accessSecret,
Expand All @@ -27,7 +25,7 @@ public function __construct($accessToken, $accessSecret, $consumerKey, $consumer
*/
public function whenHears($listenFor, callable $whenHears)
{
if (!is_array($listenFor)) {
if (! is_array($listenFor)) {
$listenFor = [$listenFor];
}

Expand Down

0 comments on commit 60d814d

Please sign in to comment.