1 | <?php |
||
12 | class ExpoPushNotificationsServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Bootstrap the application services. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | 23 | public function boot() |
|
38 | |||
39 | /** |
||
40 | * Register the application services. |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | 23 | public function register() |
|
48 | |||
49 | /** |
||
50 | * Gets the Expo repository driver based on config. |
||
51 | * |
||
52 | * @return ExpoRepository |
||
53 | */ |
||
54 | 23 | public function getInterestsDriver() |
|
66 | |||
67 | /** |
||
68 | * Publishes the configuration files for the package. |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | 23 | protected function setupConfig() |
|
80 | |||
81 | /** |
||
82 | * Publishes the migration files needed in the package. |
||
83 | * |
||
84 | * @param ExpoRepository $repository |
||
85 | * |
||
86 | * @return void |
||
87 | */ |
||
88 | 23 | private function shouldPublishMigrations(ExpoRepository $repository) |
|
97 | } |
||
98 |
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.