cancel
Showing results for 
Search instead for 
Did you mean: 

What tools/ides are you using for code formatting?

What tools/ides are you using for code formatting?

I've try netbeans and eclipse with psr2 format configuration but in magento files I've got:

 

public function __construct(
    \Magento\Framework\App\Helper\Context $context,
    \Magento\Catalog\Model\ProductTypes\ConfigInterface $config
) {
    $this->config = $config;
    parent::__construct($context);
}

In those ides I've got:

1) Netbeans:

public function __construct(
\Magento\Framework\App\Helper\Context $context,
    \Magento\Catalog\Model\ProductTypes\ConfigInterface $config
)
{
    $this->config = $config;
    parent::__construct($context);
}

2) Eclipse:

public function __construct(\Magento\Framework\App\Helper\Context $context,
    \Magento\Catalog\Model\ProductTypes\ConfigInterface $config
)
{
    $this->config = $config;
    parent::__construct($context);
}

And other diff appearances. I'm not believing that not exist tools to format and magento team use PHP-CodeSniffer and then manually format if bug have been founded