phpfmt_stable icon indicating copy to clipboard operation
phpfmt_stable copied to clipboard

This is a stable snapshot (version 6125cf9) of the phpfmt plugin for Sublime Text

Results 65 phpfmt_stable issues
Sort by recently updated
recently updated
newest added

I am trying to disable it by following command `phpfmt: enable/disable additional transformations`. It makes changes in phpfmt work, but it is not what it suspected to do. When this...

Just tried out this , got the entire php file deleted/cleared and autosaved to the server whenever running a command. (Y)

Now fmt wokr like this: ```PHP if (true) $variable = 'text'; elseif (1) $siteId = 'text'; ``` convert to: ```PHP if (true) { $variable = 'text'; } elseif (1); $siteId...

Before: $num = (int) $str; After: $num = intval($str);

TwoCommandsInSameLine NormalizeIsNotEquals AddMissingCurlyBraces SmartLnAfterCurlyOpen ExtraCommaInArray NormalizeLnAndLtrimLines MergeParenCloseWithCurlyOpen ResizeSpaces SplitCurlyCloseAndTokens ReindentSwitchBlocks ReindentObjOps Reindent ReindentEqual PSR2KeywordsLowerCase PSR2CurlyOpenNextLine PSR2ModifierVisibilityStaticOrder PSR2SingleEmptyLineAndStripClosingTag LeftAlignComment PSR2IndentWithSpace RTrim EliminateDuplicatedEmptyLines

Some code format standards require this. Namely WordPress Primary reference: http://make.wordpress.org/core/handbook/coding-standards/php/#space-usage Can you build a transformation for this ?

I have created a class which binds dynamically interfaces and classes from an array. Instead of adding the class namespace in the array e.g $classes =['\Test\Model\Test']; I want to add...

hello friend, is posible add Auto Align Single Arrow function like that "->" to this pluggin or add in custom??? ``` $stmtpre = "Mysql Query"; $DB = $this->DBMANAGER->InsertDB(DB_Name, $stmtpre); ```...

Code within a while block, outside a PHP tag (but including the endwhile tag) is re-indenting each time phpfmt `format now` is run: ![dec-01-2016 12-17-29](https://cloud.githubusercontent.com/assets/8418440/20810853/42136ca6-b7c0-11e6-8e9d-e6ea75fdcfde.gif) Running Sublime Text Build 3126

all method keywords (abstract, public, static, etc) are removed using psr-2 formatting whenever a trait declaration block exists. eg ``` class A { use TraitA, TraitB { TraitB::get insteadof TraitA;...