| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function check() |
||
| 36 | { |
||
| 37 | $response = $this->client->get($this->getURL()); |
||
| 38 | $cookie = $this->getCookie($response); |
||
| 39 | $fullURL = $this->getURL(); |
||
| 40 | |||
| 41 | if ($cookie) { |
||
| 42 | return [ |
||
| 43 | EnvironmentCheck::ERROR, |
||
| 44 | "Sessions are being set for {$fullURL} : Set-Cookie => " . $cookie, |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | return [ |
||
| 48 | EnvironmentCheck::OK, |
||
| 49 | "Sessions are not being created for {$fullURL} 👍", |
||
| 50 | ]; |
||
| 72 |