In this case I'd move the comma to the very next line:

```php
$container
    ->register('foo.commands.my_command', 'Acme\HelloBundle\Command\MyCommand')
    ->addTag('console.command')
;
```