Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 25, 2023
1 parent e3a2510 commit 003f8e9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/Facades/LookingGlass.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/**
* @see \Cxj\LookingGlass\LookingGlass
*
* @method static transmit(string $label, Result $result, string $appName))
*/
class LookingGlass extends Facade
Expand Down
5 changes: 2 additions & 3 deletions src/LookingGlass.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ public function transmit(
$name = $appName ?? config('app.name');

// Send this status to Looking Glass.
$this->dispatch = WebhookCall
::create()
$this->dispatch = WebhookCall::create()
->throwExceptionOnFailure()
->url(config('looking-glass.url'))
->withHeaders(['App-Name' => $name])
->useSecret(config('looking-glass.secret'))
->payload(
['name' => $name, 'result' => $result, 'label' => $testName,]
['name' => $name, 'result' => $result, 'label' => $testName]
)
->dispatch();

Expand Down
7 changes: 3 additions & 4 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Cxj\LookingGlass;

use Cxj\LookingGlass\Commands\LookingGlassCommand;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Foundation\Console\AboutCommand;
use Spatie\LaravelPackageTools\Commands\InstallCommand;
use Spatie\LaravelPackageTools\Exceptions\InvalidPackage;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Cxj\LookingGlass\Commands\LookingGlassCommand;
use Spatie\WebhookServer\WebhookCall;
use Spatie\WebhookServer\WebhookServerServiceProvider;

Expand Down Expand Up @@ -44,15 +44,14 @@ public function register()
parent::register(); // 🙄
}


public function boot(): void
{
// Register commands.
AboutCommand::add(
'Looking Glass Client',
fn() => [
fn () => [
'Version' => self::VERSION,
'Repo' => 'https://github.com/cxj/laravel-looking-glass-client'
'Repo' => 'https://github.com/cxj/laravel-looking-glass-client',
]
);

Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Cxj\LookingGlass\Tests;

use Cxj\LookingGlass\ServiceProvider;
use Illuminate\Database\Eloquent\Factories\Factory;
use Orchestra\Testbench\TestCase as Orchestra;
use Cxj\LookingGlass\ServiceProvider;

class TestCase extends Orchestra
{
Expand Down

0 comments on commit 003f8e9

Please sign in to comment.