| Conditions | 5 | 
| Paths | 3 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 30 | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 35 | public function handle($request, Closure $next) | ||
| 36 |     { | ||
| 37 |         if (! $this->client->is('AppClient')) { | ||
| 38 |             throw new ApiResponseException('Unauthorized Client', 403); | ||
| 39 | } | ||
| 40 | |||
| 41 | if ( | ||
| 42 |             $this->client->is('iOS') && | ||
| 43 |             $this->client->appChannel('App Store') && | ||
| 44 |             $this->client->get('appVersion') === config('var.ios.app_store_reviewing_version') | ||
| 45 |         ) { | ||
| 46 |             $this->client->set('isAppStoreReviewing', true); | ||
| 47 | } | ||
| 48 | |||
| 49 | return $next($request); | ||
| 50 | } | ||
| 51 | } | ||
| 52 |