classes/LncFile.php
Showing 2 of 2 total issues
Function php
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
Open
public function php(string $php = null): ?string { // lazy loading if ($php === null) { if ($this->target() && A::get($this->data, 'lnc') && F::exists($this->target())) {
- Read upRead up
Consider simplifying this complex logical expression. Open
Open
if ($target && F::exists($target) === false) { $data['needsUpdate'] = true; } elseif ($source && $target && F::exists($target) && F::modified($source) > F::modified($target)) { $data['needsUpdate'] = true; } elseif ($source && F::modified($source) !== $data['modified']) {