Skip to content

Commit ebbbdbb

Browse files
kevariablegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 3772f59 commit ebbbdbb

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/Facades/SlackLogging.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,14 @@ class SlackLogging extends Facade
1717
{
1818
/**
1919
* Replace the bound instance with a fake.
20-
*
21-
* @return void
2220
*/
2321
public static function fake(): void
2422
{
25-
static::swap(new SlackLoggingFake());
23+
static::swap(new SlackLoggingFake);
2624
}
2725

2826
protected static function getFacadeAccessor(): string
2927
{
3028
return 'slack-logging';
3129
}
32-
}
30+
}

src/SlackLogging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Illuminate\Support\Facades\App;
1212
use Illuminate\Support\Facades\Cache;
1313
use Illuminate\Support\Facades\Http;
14-
use Illuminate\Support\Facades\Log;
1514
use Illuminate\Support\Facades\Request;
1615
use Illuminate\Support\Facades\Session;
1716
use Illuminate\Support\Str;
@@ -190,6 +189,7 @@ private function logError($exception): void
190189
Http::post(url: $url, data: $slack->toArray());
191190
} catch (RequestException $e) {
192191
$e->getResponse();
192+
193193
return;
194194
} catch (\Exception $e) {
195195
return;

src/SlackLoggingFake.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class SlackLoggingFake extends SlackLogging
88
{
9-
/** @var class-string[] $exceptions */
9+
/** @var class-string[] */
1010
public array $exceptions = [];
1111

1212
public function assertRequestsSent(int $expectedCount): void
@@ -15,8 +15,8 @@ public function assertRequestsSent(int $expectedCount): void
1515
}
1616

1717
/**
18-
* @param mixed $throwable
19-
* @param callable|null $callback
18+
* @param mixed $throwable
19+
* @param callable|null $callback
2020
*/
2121
public function assertNotSent($throwable, $callback = null): void
2222
{
@@ -39,8 +39,8 @@ public function assertNothingSent(): void
3939
}
4040

4141
/**
42-
* @param mixed $throwable
43-
* @param callable|null $callback
42+
* @param mixed $throwable
43+
* @param callable|null $callback
4444
*/
4545
public function assertSent($throwable, $callback = null): void
4646
{
@@ -63,4 +63,4 @@ public function handle(\Throwable $exception): bool
6363

6464
return true;
6565
}
66-
}
66+
}

src/SlackLoggingServiceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function register(): void
2929
$handler = new SlackLoggingHandler(
3030
$app['slack-logging'],
3131
);
32+
3233
return new Logger('slack-logging', [$handler]);
3334
});
3435
}

tests/LoggingTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Illuminate\Support\Facades\Log;
44
use Kevariable\SlackLogging\Facades\SlackLogging;
5+
56
use function Pest\Laravel\get;
67

78
beforeEach(function () {
@@ -39,4 +40,4 @@
3940
get('/throwables-via-route');
4041

4142
SlackLogging::assertRequestsSent(expectedCount: 1);
42-
});
43+
});

0 commit comments

Comments
 (0)