| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace RobbieP\ZbarQrdecoder; |
||
| 70 | private function getProvider() |
||
| 71 | { |
||
| 72 | $provider = '\RobbieP\ZbarQrdecoder\ZbarQrdecoderServiceProviderLaravel5'; |
||
| 73 | |||
| 74 | if (version_compare(Application::VERSION, '5.0', '<')) { |
||
| 75 | $provider = '\RobbieP\ZbarQrdecoder\ZbarQrdecoderServiceProviderLaravel4'; |
||
| 76 | } |
||
| 77 | |||
| 78 | return new $provider($this->app); |
||
| 79 | } |
||
| 80 | |||
| 82 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.