Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrneDev authored and StyleCIBot committed Mar 22, 2020
1 parent 1a37975 commit f5a5f39
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions migrations/2019_07_01_000000_add_polls_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function (Builder $schema) {
$table->foreign('user_id')->references('id')->on('users')->onDelete('set null');
});
},

function (Builder $schema) {
// delete polls whose discussion was deleted
$polls = Poll::doesntHave('discussion')->get();
Expand Down Expand Up @@ -66,7 +65,6 @@ function (Builder $schema) {
$table->foreign('user_id')->references('id')->on('users')->onDelete('set null');
});
},

function (Builder $schema) {
$schema->dropIfExists('polls');
}
Expand Down
2 changes: 0 additions & 2 deletions migrations/2019_07_01_000001_add_poll_options_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ function (Builder $schema) {
$table->foreign('poll_id')->references('id')->on('polls')->onDelete('cascade');
});
},

function (Builder $schema) {
// delete poll options that don't have a poll
PollOption::query()->doesntHave('poll')->delete();
Expand All @@ -41,7 +40,6 @@ function (Builder $schema) {
$table->foreign('poll_id')->references('id')->on('polls')->onDelete('cascade');
});
},

function (Builder $schema) {
$schema->dropIfExists('poll_options');
}
Expand Down
2 changes: 0 additions & 2 deletions migrations/2019_07_01_000002_add_poll_votes_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ function (Builder $schema) {
$table->foreign('user_id')->references('id')->on('users')->onDelete('set null');
});
},

function (Builder $schema) {
// delete votes that don't have a poll or option
PollVote::query()->doesntHave('poll')->orDoesntHave('option')->delete();
Expand All @@ -44,7 +43,6 @@ function (Builder $schema) {
$table->foreign('option_id')->references('id')->on('poll_options')->onDelete('cascade');
});
},

function (Builder $schema) {
$schema->dropIfExists('poll_votes');
}
Expand Down
4 changes: 3 additions & 1 deletion src/Commands/VotePollHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function handle(VotePoll $command)

/**
* @param $vote
*
* @throws \Pusher\PusherException
*/
public function pushNewVote($vote)
Expand All @@ -86,8 +87,9 @@ public function pushNewVote($vote)
}

/**
* @return bool|\Illuminate\Foundation\Application|mixed|Pusher
* @throws \Pusher\PusherException
*
* @return bool|\Illuminate\Foundation\Application|mixed|Pusher
*/
private function getPusher()
{
Expand Down

0 comments on commit f5a5f39

Please sign in to comment.