| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 103 | protected function initResource() |
||
| 104 | { |
||
| 105 | $resource = new Resource; |
||
| 106 | foreach ($this->getNebula()->getConfig()->get('app.resource') as $path) { |
||
| 107 | if (Path::isRelativePath($path)) { |
||
| 108 | $path = Resource::getPathByRelativedPath($path, constant('NEBULA_APP')); |
||
| 109 | } |
||
| 110 | $resource->addResourcePath($path); |
||
| 111 | } |
||
| 112 | $this->setResource($resource); |
||
| 113 | } |
||
| 115 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.