forked from scribu/wp-phptidy
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow custom configurations using the built-in settings.
The script automatically looks for a config file, but inside Sublime Text 2, it wasn't pulling from the right place. This just changes it to look in the same folder as the script (inside the plugin folder). This should only be used for the non-WP `phptidy.php` script, because the plugin already handles the custom WordPress stylings.
- Loading branch information
1 parent
00119ff
commit 17f74a4
Showing
3 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Custom configuration for PSR2 style. | ||
*/ | ||
$curly_brace_newline = array(T_CLASS, T_FUNCTION); | ||
|
||
$default_author = "Morgan Estes <morgan.estes@gmail.com>"; | ||
|
||
// Enable the single cleanup functions | ||
$fix_token_case = true; | ||
$fix_builtin_functions_case = true; | ||
$replace_inline_tabs = true; | ||
$replace_phptags = true; | ||
$replace_shell_comments = true; | ||
$fix_statement_brackets = false; | ||
$fix_separation_whitespace = true; | ||
$fix_comma_space = true; | ||
$add_file_docblock = true; | ||
$add_function_docblocks = true; | ||
$add_doctags = true; | ||
$fix_docblock_format = true; | ||
$fix_docblock_space = true; | ||
$add_blank_lines = false; | ||
$indent = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters