Skip to content

Commit aa9ace5

Browse files
committed
strict types for a few classes
1 parent e723174 commit aa9ace5

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

config/scrapingbee.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
return [
46
'api_key' => env('SCRAPINGBEE_API_KEY'),
57
'base_url' => env('SCRAPINGBEE_BASE_URL', 'https://app.scrapingbee.com/api/v1/'),

src/LaravelScrapingBeeFacade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Ziming\LaravelScrapingBee;
46

57
use Illuminate\Support\Facades\Facade;

src/LaravelScrapingBeeServiceProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Ziming\LaravelScrapingBee;
46

57
use Spatie\LaravelPackageTools\Package;

tests/ExampleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Ziming\LaravelScrapingBee\Tests;
46

57
class ExampleTest extends TestCase

tests/TestCase.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Ziming\LaravelScrapingBee\Tests;
46

57
use Orchestra\Testbench\TestCase as Orchestra;
@@ -12,14 +14,14 @@ public function setUp(): void
1214
parent::setUp();
1315
}
1416

15-
protected function getPackageProviders($app)
17+
protected function getPackageProviders($app): array
1618
{
1719
return [
1820
LaravelScrapingBeeServiceProvider::class,
1921
];
2022
}
2123

22-
public function getEnvironmentSetUp($app)
24+
public function getEnvironmentSetUp($app): void
2325
{
2426
config()->set('database.default', 'testing');
2527
}

0 commit comments

Comments
 (0)