coding-standard icon indicating copy to clipboard operation
coding-standard copied to clipboard

PHPCBF mis-aligning equals signs

Open jim-parry opened this issue 5 years ago • 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'));
}

jim-parry avatar Jan 04 '19 02:01 jim-parry