GB_Dependencies::all_deps
Determine dependencies.
Recursively builds an array of items to process taking
dependencies into account. Does NOT catch infinite loops.
Signature
public function all_deps(mixed
$handles,
[boolean
$recursion = false,
[boolean
$group = false]] )
Parameters
$handles
—
mixed
Item handle and argument (string) or item handles and arguments (array of strings).
$recursion
—
boolean
Internal flag that function is calling itself.
$group
—
boolean
Group level: (int) level, (false) no groups.
Returns
- bool
- True on success, false on failure.
Violations
PHPMessDetector
Line |
Rule |
Message |
176 - 219 |
CyclomaticComplexity
|
The method all_deps() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10. |
176 - 219 |
NPathComplexity
|
The method all_deps() has an NPath complexity of 866. The configured NPath complexity threshold is 200. |
Checkstyle
Line |
Column |
Severity |
Message |
176 |
12 |
error
|
Method name "GB_Dependencies::all_deps" is not in camel caps format |
178 |
9 |
error
|
Inline control structures are not allowed |
186 |
13 |
error
|
Inline control structures are not allowed |
191 |
13 |
error
|
Inline control structures are not allowed |
195 |
13 |
error
|
Inline control structures are not allowed |
197 |
13 |
error
|
Inline control structures are not allowed |
197 |
132 |
warning
|
Line exceeds 120 characters; contains 132 characters |
199 |
13 |
error
|
Inline control structures are not allowed |
199 |
122 |
warning
|
Line exceeds 120 characters; contains 122 characters |
203 |
17 |
error
|
Inline control structures are not allowed |
205 |
17 |
error
|
Expected 1 space after ELSE keyword; newline found |
205 |
17 |
error
|
Inline control structures are not allowed |
209 |
13 |
error
|
Inline control structures are not allowed |
212 |
13 |
error
|
Inline control structures are not allowed |