Skip to content

Commit

Permalink
Merge branch 'master' into php-cs-fixer-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdorn authored May 7, 2021
2 parents 97602c4 + 67c8bc0 commit 70a59c7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix styling
commit_message: Fix styling
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
- name: Lint
run: vendor/bin/php-cs-fixer fix
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
],
"require": {
"php": "^8.0",
"fennb/phirehose": "dev-master#405d125db9baa771ac0cd861f0b2b2032434d40c",
"friendsofphp/php-cs-fixer": "^3.0"
"fennb/phirehose": "dev-master#405d125db9baa771ac0cd861f0b2b2032434d40c"
},
"require-dev": {
"phpunit/phpunit": "^9",
"spatie/laravel-ray": "^1",
"spatie/laravel-ray": "^1",
"friendsofphp/php-cs-fixer": "^3.0",
"vimeo/psalm": "^4"
},
"autoload": {
Expand Down
7 changes: 4 additions & 3 deletions src/PublicStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public function __construct(
string $accessSecret,
string $consumerKey,
string $consumerSecret
) {
)
{
$this->stream = $this->createStream(
$accessToken,
$accessSecret,
Expand All @@ -23,7 +24,7 @@ public function __construct(

public function whenHears(string | array $listenFor, callable $whenHears): self
{
if (! is_array($listenFor)) {
if (!is_array($listenFor)) {
$listenFor = [$listenFor];
}

Expand All @@ -45,7 +46,7 @@ public function whenFrom(array $boundingBoxes, callable $whenFrom): self

public function whenTweets(string | array $twitterUserIds, callable $whenTweets): self
{
if (! is_array($twitterUserIds)) {
if (!is_array($twitterUserIds)) {
$twitterUserIds = [$twitterUserIds];
}

Expand Down

0 comments on commit 70a59c7

Please sign in to comment.