| Conditions | 4 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 4 | public function __construct($CakeSession, $enableSessionCheck = true, $sessionPrefix = 'Facebook.php-graph-sdk') { |
|
| 30 | |||
| 31 | 4 | $this->_CakeSession = $CakeSession; |
|
| 32 | |||
| 33 | # Session check |
||
| 34 | 4 | if ($enableSessionCheck && ( ! $this->_CakeSession->valid() || ! $this->_CakeSession->started())) { |
|
| 35 | 1 | throw new \Facebook\Exceptions\FacebookSDKException('Sessions are not active.', 720); |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | $this->sessionPrefix = $sessionPrefix . '.'; |
|
| 39 | |||
| 66 |