1 | <?php |
||
12 | class ExpoPushNotificationsServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Bootstrap the application services. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | 23 | public function boot(\Illuminate\Routing\Router $router) |
|
37 | |||
38 | /** |
||
39 | * Register the application services. |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | 23 | public function register() |
|
47 | |||
48 | /** |
||
49 | * Gets the Expo repository driver based on config. |
||
50 | * |
||
51 | * @return ExpoRepository |
||
52 | */ |
||
53 | 23 | public function getInterestsDriver() |
|
65 | |||
66 | /** |
||
67 | * Publishes the configuration files for the package. |
||
68 | * |
||
69 | * @return void |
||
70 | */ |
||
71 | 23 | protected function setupConfig() |
|
79 | |||
80 | /** |
||
81 | * Publishes the migration files needed in the package. |
||
82 | * |
||
83 | * @param ExpoRepository $repository |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | 23 | private function shouldPublishMigrations(ExpoRepository $repository) |
|
96 | } |
||
97 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.