Conditions | 5 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function handle($request, Closure $next) |
||
18 | { |
||
19 | if (! AgentClient::is('AppClient')) { |
||
20 | return response('Unauthorized Client', 403); |
||
21 | } |
||
22 | |||
23 | if ( |
||
24 | AgentClient::is('iOS') && |
||
25 | AgentClient::appChannel('App Store') && |
||
26 | AgentClient::get('appVersion') === config('var.ios.app_store_reviewing_version') |
||
27 | ) { |
||
28 | AgentClient::set('isAppStoreReviewing', true); |
||
29 | } |
||
30 | |||
31 | return $next($request); |
||
32 | } |
||
33 | } |
||
34 |