welovewordpress / SublimePhpTidy

Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy
GNU General Public License v2.0
109 stars 30 forks source link

Formatting PHP-Doc Comments #15

Closed sonOfRa closed 4 years ago

sonOfRa commented 11 years ago

When formatting PHP files, and there are oneline PHP-Doc Comments in them, phptidy produces Syntax Errors:

/** PHPDOC goes here */
function foo() 
  echo "bar";
}

Is turned into:

 * * * * /** PHPDOC goes here */
function foo() 
  echo "bar";
}

This seems to happen either when there is only one line of PHPDoc, or if the first line of the PHPDoc is not empty.

I'm running Sublime Text 2 Build 2217 on Ubuntu 12.10 amd64, installed PHPTidy via PackageControl

swashata commented 11 years ago

+1