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