File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Illuminate \Console \Command ;
11
11
use Illuminate \Support \Str ;
12
12
13
+ use function array_map ;
14
+ use function base_path ;
15
+ use function collect ;
16
+ use function config ;
17
+ use function file_get_contents ;
18
+ use function implode ;
19
+ use function is_string ;
20
+ use function sprintf ;
21
+
22
+ use const PHP_EOL ;
23
+
13
24
class GenerateHelperCommand extends Command
14
25
{
15
26
protected $ signature = 'http:macros-helper ' ;
Original file line number Diff line number Diff line change 7
7
use Closure ;
8
8
use Illuminate \Support \Collection ;
9
9
10
+ use function collect ;
11
+ use function is_array ;
12
+ use function is_callable ;
13
+ use function is_null ;
14
+ use function method_exists ;
15
+
10
16
/**
11
17
* Get the JSON decoded body of the response as a collection.
12
18
*/
Original file line number Diff line number Diff line change 6
6
7
7
use Closure ;
8
8
9
+ use function is_callable ;
10
+ use function is_null ;
11
+ use function method_exists ;
12
+
9
13
/**
10
14
* Get the JSON decoded body of the response as a class instance.
11
15
*/
Original file line number Diff line number Diff line change 8
8
use Illuminate \Http \Client \Response ;
9
9
use Illuminate \Support \ServiceProvider as BaseServiceProvider ;
10
10
11
+ use function app ;
12
+ use function config ;
13
+ use function is_string ;
14
+
11
15
class ServiceProvider extends BaseServiceProvider
12
16
{
13
17
public function register (): void
@@ -57,7 +61,7 @@ protected function registerConfig(): void
57
61
protected function publishConfig (): void
58
62
{
59
63
$ this ->publishes ([
60
- __DIR__ . '/../config/http.php ' => config_path ('http.php ' ),
64
+ __DIR__ . '/../config/http.php ' => app ()-> configPath ('http.php ' ),
61
65
]);
62
66
}
63
67
}
You can’t perform that action at this time.
0 commit comments