codeigniter4/coding-standard

PHPCBF mis-aligning equals signs

jim-parry opened this issue · 0 comments

Another example of a suspect configuration inside PHPCBF ... it is inappropriately aligning subesquent assignment statements on the = sign, violating any reasonable line length rule. Example:

public function testBasicHandle()
{
	$config                                                                = new LoggerConfig();
	$config->path                                                          = $this->start . 'charlie/';
	$config->handlers['Tests\Support\Log\Handlers\TestHandler']['handles'] = ['critical'];
	$logger                                                                = new MockFileHandler($config->handlers['Tests\Support\Log\Handlers\TestHandler']);
	$logger->setDateFormat('Y-m-d H:i:s:u');
	$this->assertTrue($logger->handle('warning', 'This is a test log'));
}