@@ 88-99 (lines=12) @@ | ||
85 | /** |
|
86 | * Get the profile. |
|
87 | */ |
|
88 | protected function getProfile(): CrawlProfile |
|
89 | { |
|
90 | if (!is_null($this->option('profile'))) { |
|
91 | return app($this->option('profile')); |
|
92 | } |
|
93 | ||
94 | if (config('laravel-link-checker.default_profile') != '') { |
|
95 | return app(config('laravel-link-checker.default_profile')); |
|
96 | } |
|
97 | ||
98 | throw new Exception('Could not determine the profile to be used'); |
|
99 | } |
|
100 | ||
101 | /** |
|
102 | * Get the reporter. |
|
@@ 104-115 (lines=12) @@ | ||
101 | /** |
|
102 | * Get the reporter. |
|
103 | */ |
|
104 | protected function getReporter(): CrawlObserver |
|
105 | { |
|
106 | if (!is_null($this->option('reporter'))) { |
|
107 | return app($this->option('reporter')); |
|
108 | } |
|
109 | ||
110 | if (config('laravel-link-checker.default_reporter') != '') { |
|
111 | return app(config('laravel-link-checker.default_reporter')); |
|
112 | } |
|
113 | ||
114 | throw new Exception('Could not reporter the profile to be used'); |
|
115 | } |
|
116 | } |
|
117 |