@@ 109-113 (lines=5) @@ | ||
106 | $sig = ($method) ? $className . '::' . $method : $className; |
|
107 | ||
108 | // Class auths haven't been cached yet |
|
109 | if (!$this->getCache()->has($className)) { |
|
110 | $r = new \ReflectionClass($className); |
|
111 | preg_match_all(self::REGEX, $r->getDocComment(), $matchC); |
|
112 | $this->getCache()->set($className, $this->normalize((array)$matchC)); |
|
113 | } |
|
114 | ||
115 | // Method auths haven't been cached yet |
|
116 | if (!$this->getCache()->has($sig)) { |
|
@@ 116-120 (lines=5) @@ | ||
113 | } |
|
114 | ||
115 | // Method auths haven't been cached yet |
|
116 | if (!$this->getCache()->has($sig)) { |
|
117 | $r = new \ReflectionMethod($className, $method); |
|
118 | preg_match_all(self::REGEX, $r->getDocComment(), $matchC); |
|
119 | $this->getCache()->set($sig, $this->normalize((array)$matchC)); |
|
120 | } |
|
121 | ||
122 | return ($this->getCache()->get($sig) == []) |
|
123 | ? $this->getCache()->get($className) |