| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Understand\UnderstandLaravel5; |
||
| 42 | public function getJsConfig() |
||
| 43 | { |
||
| 44 | return [ |
||
| 45 | 'env' => UnderstandFieldProvider::getEnvironment(), |
||
| 46 | 'token' => $this->app['config']->get('understand-laravel.token'), |
||
| 47 | 'context' => [ |
||
| 48 | 'session_id' => UnderstandFieldProvider::getSessionId(), |
||
| 49 | 'request_id' => UnderstandFieldProvider::getProcessIdentifier(), |
||
| 50 | 'user_id' => UnderstandFieldProvider::getUserId(), |
||
| 51 | 'client_ip' => UnderstandFieldProvider::getClientIp() |
||
| 52 | ] |
||
| 53 | ]; |
||
| 54 | } |
||
| 55 | } |
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.