Skip to content

Commit

Permalink
strict types for a few classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Dec 8, 2024
1 parent e723174 commit aa9ace5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config/scrapingbee.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

return [
'api_key' => env('SCRAPINGBEE_API_KEY'),
'base_url' => env('SCRAPINGBEE_BASE_URL', 'https://app.scrapingbee.com/api/v1/'),
Expand Down
2 changes: 2 additions & 0 deletions src/LaravelScrapingBeeFacade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Ziming\LaravelScrapingBee;

use Illuminate\Support\Facades\Facade;
Expand Down
2 changes: 2 additions & 0 deletions src/LaravelScrapingBeeServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Ziming\LaravelScrapingBee;

use Spatie\LaravelPackageTools\Package;
Expand Down
2 changes: 2 additions & 0 deletions tests/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Ziming\LaravelScrapingBee\Tests;

class ExampleTest extends TestCase
Expand Down
6 changes: 4 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Ziming\LaravelScrapingBee\Tests;

use Orchestra\Testbench\TestCase as Orchestra;
Expand All @@ -12,14 +14,14 @@ public function setUp(): void
parent::setUp();
}

protected function getPackageProviders($app)
protected function getPackageProviders($app): array
{
return [
LaravelScrapingBeeServiceProvider::class,
];
}

public function getEnvironmentSetUp($app)
public function getEnvironmentSetUp($app): void
{
config()->set('database.default', 'testing');
}
Expand Down

0 comments on commit aa9ace5

Please sign in to comment.