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