Conditions | 4 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
45 | protected function getJWKSet() |
||
46 | { |
||
47 | $jwkset = parent::getJWKSet(); |
||
48 | if (null !== $this->getFileLastModificationTime()) { |
||
49 | if ($this->getFileLastModificationTime() + $this->ttl < time()) { |
||
50 | $keys = $jwkset->getKeys(); |
||
51 | unset($keys[count($keys) - 1]); |
||
52 | $jwkset = new JWKSet(); |
||
53 | $jwkset->addKey($this->createJWK()); |
||
|
|||
54 | foreach ($keys as $key) { |
||
55 | $jwkset->addKey($key); |
||
56 | } |
||
57 | $this->jwkset = $jwkset; |
||
58 | $this->save(); |
||
59 | } |
||
60 | } |
||
61 | |||
62 | return parent::getJWKSet(); |
||
63 | } |
||
64 | } |
||
65 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.