Skip to content

Docblock indentation  #2976

@tomasnorre

Description

@tomasnorre

Bug Report

Subject Details
Rector version v0.7.2
Installed as composer dependency

After updating to rector v.0.7.2, I get "funny" indentations suggestions for some, not all docblocks.

     /*****************************
-     *
-     * General Helper Functions
-     *
-     *****************************/
-
-    /**
-     * This method is used to add a message to the internal queue
-     *
-     * @param  string $message the message itself
-     * @param  int $severity message level (-1 = success (default), 0 = info, 1 = notice, 2 = warning, 3 = error)
-     */
-    protected function addMessage(string $message, int $severity = FlashMessage::OK): void
+				 *
+				 * General Helper Functions
+				 *
+				 *****************************/
+				/**
+				 * This method is used to add a message to the internal queue
+				 *
+				 * @param   string $message the message itself
+				 * @param   int $severity message level (-1 = success (default), 0 = info, 1 = notice, 2 = warning, 3 = error)
+				 */
+				protected function addMessage(string $message, int $severity = FlashMessage::OK): void
     {

I haven't found a pattern in the behaviour yet, but perhaps you can point me into the correct direction.

I'm honestly not sure if it's a problem with rector, or a misconfiguration on my site.

I only run the dead-code set.

Expected Behaviour

I would expect the docblock to be "left" align as usual.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions