Edit File by line
/home/zeestwma/ajeebong.../wp-conte.../plugins/code-sni.../vendor/typistte.../imposter/src
File: ImposterFactory.php
<?php
[0] Fix | Delete
[1] Fix | Delete
declare(strict_types=1);
[2] Fix | Delete
[3] Fix | Delete
namespace TypistTech\Imposter;
[4] Fix | Delete
[5] Fix | Delete
class ImposterFactory
[6] Fix | Delete
{
[7] Fix | Delete
/**
[8] Fix | Delete
* @param string $projectPath
[9] Fix | Delete
* @param string[] $extraExcludes
[10] Fix | Delete
*
[11] Fix | Delete
* @return Imposter
[12] Fix | Delete
*/
[13] Fix | Delete
public static function forProject(string $projectPath, array $extraExcludes = []): Imposter
[14] Fix | Delete
{
[15] Fix | Delete
$filesystem = new Filesystem();
[16] Fix | Delete
[17] Fix | Delete
$projectConfig = ConfigFactory::buildProjectConfig($projectPath . '/composer.json', $filesystem);
[18] Fix | Delete
$projectConfig->setExtraExcludes($extraExcludes);
[19] Fix | Delete
[20] Fix | Delete
$transformer = new Transformer($projectConfig->getImposterNamespace(), $filesystem);
[21] Fix | Delete
$configCollection = ConfigCollectionFactory::forProject(
[22] Fix | Delete
$projectConfig,
[23] Fix | Delete
$filesystem
[24] Fix | Delete
);
[25] Fix | Delete
[26] Fix | Delete
return new Imposter($configCollection, $transformer, $filesystem);
[27] Fix | Delete
}
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function