@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $this->mergeConfigFrom(__DIR__.'/../config/safe-urls.php', 'safe-urls'); |
46 | 46 | |
47 | 47 | // Register the service the package provides. |
48 | - $this->app->singleton('safe-urls', function () { |
|
48 | + $this->app->singleton('safe-urls', function() { |
|
49 | 49 | return new SafeUrls(); |
50 | 50 | }); |
51 | 51 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | */ |
58 | 58 | public function provides() |
59 | 59 | { |
60 | - return ['safe-urls']; |
|
60 | + return [ 'safe-urls' ]; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
@@ -73,6 +73,6 @@ discard block |
||
73 | 73 | ], 'safe-urls.config'); |
74 | 74 | |
75 | 75 | // Registering package commands. |
76 | - $this->commands(['safe-urls']); |
|
76 | + $this->commands([ 'safe-urls' ]); |
|
77 | 77 | } |
78 | 78 | } |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public static function threatTypes(): array |
56 | 56 | { |
57 | - return []; |
|
57 | + return [ ]; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public static function platformTypes(): array |
66 | 66 | { |
67 | - return []; |
|
67 | + return [ ]; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public static function threatEntryTypes(): array |
76 | 76 | { |
77 | - return [self::DEFAULT_THREAT_ENTRY_TYPE]; |
|
77 | + return [ self::DEFAULT_THREAT_ENTRY_TYPE ]; |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -81,7 +81,7 @@ |
||
81 | 81 | */ |
82 | 82 | public function getData() |
83 | 83 | { |
84 | - return []; |
|
84 | + return [ ]; |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public static function payload(array $urls): array |
25 | 25 | { |
26 | - return []; |
|
26 | + return [ ]; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -35,6 +35,6 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public static function formatUrls(array $urls): array |
37 | 37 | { |
38 | - return []; |
|
38 | + return [ ]; |
|
39 | 39 | } |
40 | 40 | } |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | public function __construct() |
30 | 30 | { |
31 | 31 | // Initialise the list of urls as an empty array. |
32 | - $this->urls = []; |
|
32 | + $this->urls = [ ]; |
|
33 | 33 | |
34 | 34 | // Initialise the list of urls as an empty array. |
35 | - $this->results = []; |
|
35 | + $this->results = [ ]; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -131,6 +131,6 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public static function format(array $urls): array |
133 | 133 | { |
134 | - return []; |
|
134 | + return [ ]; |
|
135 | 135 | } |
136 | 136 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace RattfieldNz\SafeUrls\Libraries\Curl; |
4 | 4 | |
5 | -use Orchestra\Testbench\TestCase;; |
|
5 | +use Orchestra\Testbench\TestCase; ; |
|
6 | 6 | |
7 | 7 | class CurlTest extends TestCase |
8 | 8 | { |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | protected function setUp(): void |
25 | 25 | { |
26 | 26 | $this->postUrl = ''; |
27 | - $this->headers = []; |
|
28 | - $this->payload = []; |
|
27 | + $this->headers = [ ]; |
|
28 | + $this->payload = [ ]; |
|
29 | 29 | $this->timeout = 10; |
30 | 30 | $this->curl = new Curl( |
31 | 31 | $this->postUrl, |
@@ -1,8 +1,8 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace RattfieldNz\SafeUrls\Libraries\Data; |
4 | 4 | |
5 | -use Orchestra\Testbench\TestCase;; |
|
5 | +use Orchestra\Testbench\TestCase; ; |
|
6 | 6 | |
7 | 7 | class DataTest extends TestCase |
8 | 8 | { |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace RattfieldNz\SafeUrls\Libraries\Config; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types = 1); |
|
1 | +<?php declare(strict_types=1); |
|
2 | 2 | |
3 | 3 | namespace RattfieldNz\SafeUrls; |
4 | 4 |