Skip to content

Commit

Permalink
Merge branch 'main' of github.com:facade/ignition
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Oct 11, 2021
2 parents 47cd827 + bbe7aaf commit 3ee6e94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Commands/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Composer\InstalledVersions;
use Exception;
use Facade\FlareClient\Flare;
use Facade\FlareClient\Http\Exceptions\BadResponse;
use Facade\FlareClient\Http\Exceptions\BadResponseCode;
use Illuminate\Config\Repository;
use Illuminate\Console\Command;
Expand Down Expand Up @@ -79,7 +78,7 @@ protected function sendTestException()
app(Flare::class)->sendTestReport($testException);
$this->info('');
} catch (Exception $exception) {
$this->warn( '❌ We were unable to send an exception to Flare. ');
$this->warn('❌ We were unable to send an exception to Flare. ');

if ($exception instanceof BadResponseCode) {
$this->info('');
Expand Down
6 changes: 3 additions & 3 deletions tests/Context/LaravelRequestContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function it_returns_the_authenticated_user()
/** @test */
public function it_the_authenticated_user_model_has_a_toFlare_method_it_will_be_used_to_collect_user_data()
{
$user = new class() extends User {
$user = new class () extends User {
public function toFlare()
{
return ['id' => $this->id];
Expand All @@ -159,7 +159,7 @@ public function toFlare()
/** @test */
public function it_the_authenticated_user_model_has_no_matching_method_it_will_return_no_user_data()
{
$user = new class() {
$user = new class () {
};

$request = $this->createRequest('GET', '/route', [], ['cookie' => 'noms']);
Expand All @@ -176,7 +176,7 @@ public function it_the_authenticated_user_model_has_no_matching_method_it_will_r
/** @test */
public function it_the_authenticated_user_model_is_broken_it_will_return_no_user_data()
{
$user = new class() extends User {
$user = new class () extends User {
protected $appends = ['invalid'];
};

Expand Down
2 changes: 1 addition & 1 deletion tests/JobRecorder/JobRecorderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private function createEvent(
string $queue,
$job
): JobExceptionOccurred {
$fakeQueue = new class() extends Queue {
$fakeQueue = new class () extends Queue {
public function getPayload($job, $connection): string
{
return $this->createPayload($job, $connection);
Expand Down

0 comments on commit 3ee6e94

Please sign in to comment.