It seems like getWebRootDirLocation() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
26
For projects only, we create a public folder: ' . $this->mu()->/** @scrutinizer ignore-call */ getWebRootDirLocation() . '/public';
The method getWebRootDirLocation() does not exist on Sunnysideup\UpgradeToSilverstripe4\ModuleUpgrader. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
26
For projects only, we create a public folder: ' . $this->mu()->/** @scrutinizer ignore-call */ getWebRootDirLocation() . '/public';
Loading history...
27
}
28
29
/**
30
* [runActualTask description]
31
* @param array $params not currently used for this task
32
*/
33
public function runActualTask($params = []): ?string
It seems like getIsProjectUpgrade() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
35
if ($this->mu()->/** @scrutinizer ignore-call */ getIsProjectUpgrade()) {