| @@ 257-262 (lines=6) @@ | ||
| 254 | { |
|
| 255 | switch ($key = strtolower($key)) { |
|
| 256 | ||
| 257 | case 'ajax': |
|
| 258 | if (!isset($this->isCache['ajax'])) { |
|
| 259 | return $this->isCache['ajax'] = $this->getService('Request')->isXmlHttpRequest(); |
|
| 260 | } |
|
| 261 | ||
| 262 | return $this->isCache['ajax']; |
|
| 263 | ||
| 264 | case 'put': |
|
| 265 | case 'delete': |
|
| @@ 276-281 (lines=6) @@ | ||
| 273 | ||
| 274 | case 'ssl': |
|
| 275 | case 'https': |
|
| 276 | case 'secure': |
|
| 277 | if (!isset($this->isCache['secure'])) { |
|
| 278 | $this->isCache['secure'] = $this->getService('Request')->isSecure(); |
|
| 279 | } |
|
| 280 | ||
| 281 | return $this->isCache['secure']; |
|
| 282 | ||
| 283 | default: |
|
| 284 | throw new \InvalidArgumentException("Invalid 'is' key supplied: {$key}"); |
|