[Insight] Unused method, property, variable or parameter
Closed this issue · 0 comments
roderik commented
in src/Kunstmaan/Skylab/Skeleton/WebserverSkeleton.php, line 215
This
configs
local variable is declared but never used. You should remove it.
$configs = array();
$finder = new Finder();
$finder->files()->in($this->fileSystemProvider->getProjectConfigDirectory($project["name"]) . '/nginx.d/')->name("*.conf");
/** @var SplFileInfo $config */
foreach ($finder as $config) {
$configs[$config->getFilename()] = $this->fileSystemProvider->getProjectConfigDirectory($project["name"]) . "/nginx.d/" . $config->getFilename();
}
foreach ($this->fileSystemProvider->getProjectNginxConfigs($project) as $config) {
$configcontent .= "\n#BEGIN " . $config->getRealPath() . "\n\n";
$configcontent .= $this->projectConfigProvider->searchReplacer(file_get_contents($config->getRealPath()), $project);
Posted from SensioLabsInsight