Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #1

Merged
merged 1 commit into from Jan 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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