Changes doc blocks from single to multi line, or reversed. Works for class constants, properties and methods only.
Whether const blocks should be single or multi line
Allowed values: 'multi'
, 'single'
, null
Default value: 'multi'
Whether property doc blocks should be single or multi line
Allowed values: 'multi'
, 'single'
, null
Default value: 'multi'
Whether method doc blocks should be single or multi line
Allowed values: 'multi'
, 'single'
, null
Default value: 'multi'
Default configuration.
--- Original
+++ New
<?php
class Foo{
- /** @var bool */
+ /**
+ * @var bool
+ */
public $var;
}
With configuration: ['property' => 'single']
.
--- Original
+++ New
<?php
class Foo{
- /**
- * @var bool
- */
+ /** @var bool */
public $var;
}