| @@ 275-285 (lines=11) @@ | ||
| 272 | } |
|
| 273 | ||
| 274 | return false; |
|
| 275 | } elseif (count($never) && count($always)) { |
|
| 276 | if (in_array($this->owner->ClassName, $never)) { |
|
| 277 | return false; |
|
| 278 | } |
|
| 279 | ||
| 280 | if (in_array($this->owner->ClassName, $always)) { |
|
| 281 | return true; |
|
| 282 | } |
|
| 283 | ||
| 284 | //exception... if dev sets both always and never |
|
| 285 | //then the ones not set will be included by default. |
|
| 286 | return true; |
|
| 287 | } else { |
|
| 288 | user_error("Strange condition!", E_USER_NOTICE); |
|
| @@ 118-128 (lines=11) @@ | ||
| 115 | } |
|
| 116 | return false; |
|
| 117 | } |
|
| 118 | if (count($never) && count($always)) { |
|
| 119 | if (in_array($this->owner->ClassName, $never)) { |
|
| 120 | return false; |
|
| 121 | } |
|
| 122 | if (in_array($this->owner->ClassName, $always)) { |
|
| 123 | return true; |
|
| 124 | } |
|
| 125 | //exception... if dev sets both always and never |
|
| 126 | //then the ones not set will be included by default. |
|
| 127 | return true; |
|
| 128 | } |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||