Closed filipesilva closed 9 years ago
The following debugging information was generated by Atom Beautify
on Thu Jul 02 2015 11:44:57 GMT+0100 (GMT Daylight Time)
.
Platform: win32
Atom Version: 1.0.0
Atom Beautify Version: 0.28.7
Original File Path: E:\dev\konnectagain\KA_API\server.php
Original File Grammar: PHP
Original File Language: PHP
Original File Contents:
<?php
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = urldecode($uri);
$paths = require __DIR__.'/bootstrap/paths.php';
$requested = $paths['public'].$uri;
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' and file_exists($requested)) {
return false;
}
require_once $paths['public'].'/index.php';
Editor Options: Options from Atom Editor settings
{
"_default": {
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": false
}
}
Config Options: Options from Atom Beautify package settings
{
"js": {
"break_chained_methods": true,
"wrap_line_length": 80,
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"space_in_paren": false,
"jslint_happy": false,
"space_after_anon_function": false,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"eval_code": false,
"unescape_strings": false,
"end_with_newline": false
},
"html": {
"indent_scripts": "keep",
"wrap_attributes_indent_size": 4,
"wrap_line_length": 80,
"wrap_attributes": "force",
"indent_inner_html": false,
"indent_size": 2,
"indent_char": " ",
"brace_style": "collapse",
"preserve_newlines": true,
"max_preserve_newlines": 10,
"unformatted": [
"a",
"sub",
"sup",
"b",
"i",
"u"
],
"end_with_newline": false
},
"cs": {
"configPath": ""
},
"c": {
"configPath": ""
},
"cpp": {
"configPath": ""
},
"css": {
"indent_size": 2,
"indent_char": " ",
"selector_separator_newline": false,
"newline_between_rules": false,
"preserve_newlines": false,
"wrap_line_length": 0,
"indent_comments": true,
"force_indentation": false,
"convert_quotes": "none",
"align_assignments": false
},
"d": {
"configPath": ""
},
"fortran": {
"emacs_path": "",
"emacs_script_path": ""
},
"java": {
"configPath": ""
},
"objectivec": {
"configPath": ""
},
"pawn": {
"configPath": ""
},
"perl": {
"perltidy_profile": ""
},
"php": {
"cs_fixer_path": "",
"fixers": "",
"level": ""
},
"python": {
"max_line_length": 79,
"indent_size": 2,
"ignore": [
"E24"
]
},
"ruby": {
"indent_size": 2,
"indent_char": " "
},
"rust": {
"rustfmt_path": ""
},
"sql": {
"indent_size": 2,
"keywords": "upper",
"identifiers": "lower"
},
"vala": {
"configPath": ""
}
}
Home Options:
Options from E:\Users\Filipe\.jsbeautifyrc
{
"_default": {}
}
EditorConfig Options: Options from EditorConfig file
{
"_default": {}
}
Project Options:
Options from .jsbeautifyrc
files starting from directory E:\dev\konnectagain\KA_API
and going up to root
[
{
"_default": {}
},
{
"_default": {}
},
{
"_default": {}
}
]
Final Options: Final combined options that are used
{
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": false,
"cs_fixer_path": "",
"fixers": "",
"level": ""
}
Package Settings: The raw package settings options
{
"_analyticsUserId": "2827bddd-2589-4332-b7bf-9dc17ea639d2",
"js_break_chained_methods": true,
"js_wrap_line_length": 80,
"html_indent_scripts": "keep",
"html_wrap_attributes_indent_size": 4,
"html_wrap_line_length": 80,
"html_wrap_attributes": "force",
"analytics": true,
"_loggerLevel": "warn",
"beautifyEntireFileOnSave": true,
"muteUnsupportedLanguageErrors": false,
"muteAllErrors": false,
"cs_configPath": "",
"c_configPath": "",
"cpp_configPath": "",
"css_indent_size": 2,
"css_indent_char": " ",
"css_selector_separator_newline": false,
"css_newline_between_rules": false,
"css_preserve_newlines": false,
"css_wrap_line_length": 0,
"css_indent_comments": true,
"css_force_indentation": false,
"css_convert_quotes": "none",
"css_align_assignments": false,
"d_configPath": "",
"fortran_emacs_path": "",
"fortran_emacs_script_path": "",
"html_indent_inner_html": false,
"html_indent_size": 2,
"html_indent_char": " ",
"html_brace_style": "collapse",
"html_preserve_newlines": true,
"html_max_preserve_newlines": 10,
"html_unformatted": [
"a",
"sub",
"sup",
"b",
"i",
"u"
],
"html_end_with_newline": false,
"java_configPath": "",
"js_indent_size": 2,
"js_indent_char": " ",
"js_indent_level": 0,
"js_indent_with_tabs": false,
"js_preserve_newlines": true,
"js_max_preserve_newlines": 10,
"js_space_in_paren": false,
"js_jslint_happy": false,
"js_space_after_anon_function": false,
"js_brace_style": "collapse",
"js_keep_array_indentation": false,
"js_keep_function_indentation": false,
"js_space_before_conditional": true,
"js_eval_code": false,
"js_unescape_strings": false,
"js_end_with_newline": false,
"objectivec_configPath": "",
"pawn_configPath": "",
"perl_perltidy_profile": "",
"php_cs_fixer_path": "",
"php_fixers": "",
"php_level": "",
"python_max_line_length": 79,
"python_indent_size": 2,
"python_ignore": [
"E24"
],
"ruby_indent_size": 2,
"ruby_indent_char": " ",
"rust_rustfmt_path": "",
"sql_indent_size": 2,
"sql_keywords": "upper",
"sql_identifiers": "lower",
"vala_configPath": "",
"language_cs_disabled": false,
"language_cs_default_beautifier": "Uncrustify",
"language_cs_beautify_on_save": false,
"language_c_disabled": false,
"language_c_default_beautifier": "Uncrustify",
"language_c_beautify_on_save": false,
"language_coffeescript_disabled": false,
"language_coffeescript_default_beautifier": "coffee-fmt",
"language_coffeescript_beautify_on_save": false,
"language_cpp_disabled": false,
"language_cpp_default_beautifier": "Uncrustify",
"language_cpp_beautify_on_save": false,
"language_css_disabled": false,
"language_css_default_beautifier": "JS Beautify",
"language_css_beautify_on_save": false,
"language_csv_disabled": false,
"language_csv_default_beautifier": "Pretty Diff",
"language_csv_beautify_on_save": false,
"language_d_disabled": false,
"language_d_default_beautifier": "Uncrustify",
"language_d_beautify_on_save": false,
"language_ejs_disabled": false,
"language_ejs_default_beautifier": "Pretty Diff",
"language_ejs_beautify_on_save": false,
"language_erb_disabled": false,
"language_erb_default_beautifier": "Pretty Diff",
"language_erb_beautify_on_save": false,
"language_go_disabled": false,
"language_go_default_beautifier": "gofmt",
"language_go_beautify_on_save": false,
"language_fortran_disabled": false,
"language_fortran_default_beautifier": "Fortran Beautifier",
"language_fortran_beautify_on_save": false,
"language_handlebars_disabled": false,
"language_handlebars_default_beautifier": "JS Beautify",
"language_handlebars_beautify_on_save": false,
"language_html_disabled": false,
"language_html_default_beautifier": "JS Beautify",
"language_html_beautify_on_save": false,
"language_java_disabled": false,
"language_java_default_beautifier": "Uncrustify",
"language_java_beautify_on_save": false,
"language_js_disabled": false,
"language_js_default_beautifier": "JS Beautify",
"language_js_beautify_on_save": false,
"language_json_disabled": false,
"language_json_default_beautifier": "JS Beautify",
"language_json_beautify_on_save": false,
"language_jsx_disabled": false,
"language_jsx_default_beautifier": "Pretty Diff",
"language_jsx_beautify_on_save": false,
"language_less_disabled": false,
"language_less_default_beautifier": "Pretty Diff",
"language_less_beautify_on_save": false,
"language_markdown_disabled": false,
"language_markdown_default_beautifier": "Tidy Markdown",
"language_markdown_beautify_on_save": false,
"language_marko_disabled": false,
"language_marko_default_beautifier": "JS Beautify",
"language_marko_beautify_on_save": false,
"language_mustache_disabled": false,
"language_mustache_default_beautifier": "JS Beautify",
"language_mustache_beautify_on_save": false,
"language_objectivec_disabled": false,
"language_objectivec_default_beautifier": "Uncrustify",
"language_objectivec_beautify_on_save": false,
"language_pawn_disabled": false,
"language_pawn_default_beautifier": "Uncrustify",
"language_pawn_beautify_on_save": false,
"language_perl_disabled": false,
"language_perl_default_beautifier": "Perltidy",
"language_perl_beautify_on_save": false,
"language_php_disabled": false,
"language_php_default_beautifier": "PHP-CS-Fixer",
"language_php_beautify_on_save": false,
"language_python_disabled": false,
"language_python_default_beautifier": "autopep8",
"language_python_beautify_on_save": false,
"language_ruby_disabled": false,
"language_ruby_default_beautifier": "Rubocop",
"language_ruby_beautify_on_save": false,
"language_rust_disabled": false,
"language_rust_default_beautifier": "rustfmt",
"language_rust_beautify_on_save": false,
"language_sass_disabled": false,
"language_sass_default_beautifier": "Pretty Diff",
"language_sass_beautify_on_save": false,
"language_scss_disabled": false,
"language_scss_default_beautifier": "Pretty Diff",
"language_scss_beautify_on_save": false,
"language_spacebars_disabled": false,
"language_spacebars_default_beautifier": "Pretty Diff",
"language_spacebars_beautify_on_save": false,
"language_sql_disabled": false,
"language_sql_default_beautifier": "sqlformat",
"language_sql_beautify_on_save": false,
"language_swig_disabled": false,
"language_swig_default_beautifier": "Pretty Diff",
"language_swig_beautify_on_save": false,
"language_tss_disabled": false,
"language_tss_default_beautifier": "Pretty Diff",
"language_tss_beautify_on_save": false,
"language_twig_disabled": false,
"language_twig_default_beautifier": "Pretty Diff",
"language_twig_beautify_on_save": false,
"language_typescript_disabled": false,
"language_typescript_default_beautifier": "TypeScript Formatter",
"language_typescript_beautify_on_save": false,
"language_vala_disabled": false,
"language_vala_default_beautifier": "Uncrustify",
"language_vala_beautify_on_save": false,
"language_visualforce_disabled": false,
"language_visualforce_default_beautifier": "Pretty Diff",
"language_visualforce_beautify_on_save": false,
"language_xml_disabled": false,
"language_xml_default_beautifier": "Pretty Diff",
"language_xml_beautify_on_save": false
}
Beautified File Contents:
<?php
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = urldecode($uri);
$paths = require __DIR__.'/bootstrap/paths.php';
$requested = $paths['public'].$uri;
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' and file_exists($requested)) {
return false;
}
require_once $paths['public'].'/index.php';
Logs:
2015-07-02T10:44:57.211Z - info: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] beautify <?php
$uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$uri = urldecode($uri);
$paths = require __DIR__.'/bootstrap/paths.php';
$requested = $paths['public'].$uri;
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' and file_exists($requested)) {
return false;
}
require_once $paths['public'].'/index.php';
[ { _default: { indent_size: 2, indent_char: ' ', indent_with_tabs: false } },
{ js:
{ break_chained_methods: true,
wrap_line_length: 80,
indent_size: 2,
indent_char: ' ',
indent_level: 0,
indent_with_tabs: false,
preserve_newlines: true,
max_preserve_newlines: 10,
space_in_paren: false,
jslint_happy: false,
space_after_anon_function: false,
brace_style: 'collapse',
keep_array_indentation: false,
keep_function_indentation: false,
space_before_conditional: true,
eval_code: false,
unescape_strings: false,
end_with_newline: false },
html:
{ indent_scripts: 'keep',
wrap_attributes_indent_size: 4,
wrap_line_length: 80,
wrap_attributes: 'force',
indent_inner_html: false,
indent_size: 2,
indent_char: ' ',
brace_style: 'collapse',
preserve_newlines: true,
max_preserve_newlines: 10,
unformatted: [Object],
end_with_newline: false },
cs: { configPath: '' },
c: { configPath: '' },
cpp: { configPath: '' },
css:
{ indent_size: 2,
indent_char: ' ',
selector_separator_newline: false,
newline_between_rules: false,
preserve_newlines: false,
wrap_line_length: 0,
indent_comments: true,
force_indentation: false,
convert_quotes: 'none',
align_assignments: false },
d: { configPath: '' },
fortran: { emacs_path: '', emacs_script_path: '' },
java: { configPath: '' },
objectivec: { configPath: '' },
pawn: { configPath: '' },
perl: { perltidy_profile: '' },
php: { cs_fixer_path: '', fixers: '', level: '' },
python: { max_line_length: 79, indent_size: 2, ignore: [Object] },
ruby: { indent_size: 2, indent_char: ' ' },
rust: { rustfmt_path: '' },
sql: { indent_size: 2, keywords: 'upper', identifiers: 'lower' },
vala: { configPath: '' } },
{ _default: {} },
{ _default: {} },
{ _default: {} },
{ _default: {} },
{ _default: {} } ] PHP E:\dev\konnectagain\KA_API\server.php undefined
2015-07-02T10:44:57.211Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] indent_size=2, indent_char= , indent_with_tabs=false, break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, , , , ,
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] [ { name: 'PHP',
namespace: 'php',
grammars: [ 'PHP' ],
extensions: [ 'php' ],
options: { cs_fixer_path: [Object], fixers: [Object], level: [Object] },
beautifiers: [ 'PHP-CS-Fixer' ] } ] 'PHP' 'php'
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] Language PHP supported
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] getOptions selections [ 'php' ] indent_size=2, indent_char= , indent_with_tabs=false, break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, , , , ,
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true indent_size=2, indent_char= , indent_with_tabs=false
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php indent_size=2, indent_char= , indent_with_tabs=false
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php cs_fixer_path=, fixers=, level=
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php cs_fixer_path=, fixers=, level=
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true
2015-07-02T10:44:57.223Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] PHP name=PHP, namespace=php, grammars=[PHP], extensions=[php], title=PHP - PHP-CS-Fixer Path, type=string, default=, description=Path to the `php-cs-fixer` CLI executable (Supported by PHP-CS-Fixer), beautifiers=[PHP-CS-Fixer], type=string, default=, description=Add fixer(s). i.e. linefeed,-short_tag,indentation (Supported by PHP-CS-Fixer), title=PHP - Fixers, beautifiers=[PHP-CS-Fixer], type=string, default=, description=By default, all PSR-2 fixers and some additional ones are run. (Supported by PHP-CS-Fixer), title=PHP - Level, beautifiers=[PHP-CS-Fixer], beautifiers=[PHP-CS-Fixer]
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options indent_size=2, indent_char= , indent_with_tabs=false, cs_fixer_path=, fixers=, level=
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] beautifiers silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, languages=[PHP]
2015-07-02T10:44:57.224Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] PHP E:\dev\konnectagain\KA_API\server.php { indent_size: 2,
indent_char: ' ',
indent_with_tabs: false,
cs_fixer_path: '',
fixers: '',
level: '' } indent_size=2, indent_char= , indent_with_tabs=false, break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, , , , ,
2015-07-02T10:44:57.225Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] beautifier PHP-CS-Fixer silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, languages=[PHP]
2015-07-02T10:44:57.225Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] php-cs-fixer indent_size=2, indent_char= , indent_with_tabs=false, cs_fixer_path=, fixers=, level=
2015-07-02T10:44:57.280Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] php-cs-fixer paths 0=undefined, 1=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT
2015-07-02T10:44:57.280Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] phpCSFixerPath C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT
2015-07-02T10:44:57.280Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] phpCSFixerPath C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT 0=undefined, 1=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT
2015-07-02T10:44:57.281Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] tempFile temp null path=C:\Users\Filipe\AppData\Local\Temp\temp11562-6312-vvkxjl, fd=58
2015-07-02T10:44:57.281Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] exeName, args: php 0=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT, 1=fix, 2=undefined, 3=undefined, 4=C:\Users\Filipe\AppData\Local\Temp\temp11562-6312-vvkxjl
2015-07-02T10:44:57.298Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] exePath, env: C:\php-5.6.9-Win32-VC11-x86\php.EXE ALLUSERSPROFILE=C:\ProgramData, ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk, APPDATA=C:\Users\Filipe\AppData\Roaming, ATOM_HOME=C:\Users\Filipe\.atom, CommonProgramFiles=C:\Program Files (x86)\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=RED-PC, ComSpec=C:\WINDOWS\system32\cmd.exe, configsetroot=C:\WINDOWS\ConfigSetRoot, FP_NO_HOST_CHECK=NO, GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q, HOMEDRIVE=C:, HOMEPATH=\Users\Filipe, JAVA_HOME=C:\Program Files\Java\jdk1.7.0_67, LOCALAPPDATA=C:\Users\Filipe\AppData\Local, LOGONSERVER=\\MicrosoftAccount, NODE_ENV=production, NODE_PATH=C:\Users\Filipe\AppData\Local\atom\app-1.0.0\resources\app.asar\exports, NUMBER_OF_PROCESSORS=4, OS=Windows_NT, Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Lenovo\Password Manager\;C:\Program Files (x86)\Git\bin;C:\php-5.6.9-Win32-VC11-x86;C:\Python27;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\MongoDB 2.6 Standard\bin;C:\apache-ant-1.9.4\bin;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP\;C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\;c:\Users\Filipe\AppData\Local\atom\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Filipe\AppData\Local\Pandoc\;C:\Users\Filipe\AppData\Roaming\npm;C:\Program Files\Java\jdk1.7.0_67\bin;C:\android-sdk\build-tools\20.0.0;C:\Users\Filipe\AppData\Local\atom\bin, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=x86, PROCESSOR_ARCHITEW6432=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=4501, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files (x86), ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, READYAPPS=C:\ProgramData\Lenovo\ReadyApps, SESSIONNAME=Console, SystemDrive=C:, SystemRoot=C:\WINDOWS, TEMP=C:\Users\Filipe\AppData\Local\Temp, TMP=C:\Users\Filipe\AppData\Local\Temp, TVT=C:\Program Files (x86)\Lenovo, USERDOMAIN=RED-PC, USERDOMAIN_ROAMINGPROFILE=RED-PC, USERNAME=Filipe, USERPROFILE=C:\Users\Filipe, windir=C:\WINDOWS
2015-07-02T10:44:57.298Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn C:\php-5.6.9-Win32-VC11-x86\php.EXE 0=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT, 1=fix, 2=C:\Users\Filipe\AppData\Local\Temp\temp11562-6312-vvkxjl
2015-07-02T10:44:57.338Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn done 0 @ECHO OFF
SET BIN_TARGET=%~dp0/../fabpot/php-cs-fixer/php-cs-fixer
php "%BIN_TARGET%" %*
2015-07-02T10:44:57.338Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn result 0 @ECHO OFF
SET BIN_TARGET=%~dp0/../fabpot/php-cs-fixer/php-cs-fixer
php "%BIN_TARGET%" %*
2015-07-02T10:44:57.298Z - debug: [C:\Users\Filipe.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn C:\php-5.6.9-Win32-VC11-x86\php.EXE 0=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT, 1=fix, 2=C:\Users\Filipe\AppData\Local\Temp\temp11562-6312-vvkxjl
It looks like it did find both PHP.exe and PHP-CS-Fixer.bat so I am not, yet, sure why this is not appearing to work.
Could you try some of these examples from: https://github.com/Glavin001/atom-beautify/tree/master/examples/simple-jsbeautifyrc/php/
Such as original/test.php
:
<?php
$hello = "world";
if (!isset($_SESSION)) session_start();
require_once("sql.req.php");
// friend requests
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="notifications.php">';
if ($num>0) { echo '<i class="fa fa-star white"></i>';
}else { echo '<i class="fa fa-star-o"></i>'; }
echo '</a>';
// new messages
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="messages.php">';
if ($num>0) {
echo '<i class="fa fa-envelope white"></i>';
}else {
echo '<i class="fa fa-envelope-o"></i>';
}
echo '</a>';
?>
And see if it correctly beautifies to expected/test.php
:
<?php
$hello = 'world';
if (!isset($_SESSION)) {
session_start();
}
require_once 'sql.req.php';
// friend requests
$q = $mysqli->query('');
$num = $q->num_rows;
echo '<a href="notifications.php">';
if ($num > 0) {
echo '<i class="fa fa-star white"></i>';
} else {
echo '<i class="fa fa-star-o"></i>';
}
echo '</a>';
// new messages
$q = $mysqli->query('');
$num = $q->num_rows;
echo '<a href="messages.php">';
if ($num > 0) {
echo '<i class="fa fa-envelope white"></i>';
} else {
echo '<i class="fa fa-envelope-o"></i>';
}
echo '</a>';
Result with the test.php
is as follows:
The following debugging information was generated by Atom Beautify
on Fri Jul 03 2015 09:00:17 GMT+0100 (GMT Daylight Time)
.
Platform: win32
Atom Version: 1.0.0
Atom Beautify Version: 0.28.7
Original File Path: undefined
Original File Grammar: PHP
Original File Language: PHP
Original File Contents:
<?php
$hello = "world";
if (!isset($_SESSION)) session_start();
require_once("sql.req.php");
// friend requests
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="notifications.php">';
if ($num>0) { echo '<i class="fa fa-star white"></i>';
}else { echo '<i class="fa fa-star-o"></i>'; }
echo '</a>';
// new messages
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="messages.php">';
if ($num>0) {
echo '<i class="fa fa-envelope white"></i>';
}else {
echo '<i class="fa fa-envelope-o"></i>';
}
echo '</a>';
?>
Editor Options: Options from Atom Editor settings
{
"_default": {
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": false
}
}
Config Options: Options from Atom Beautify package settings
{
"js": {
"break_chained_methods": true,
"wrap_line_length": 80,
"indent_size": 2,
"indent_char": " ",
"indent_level": 0,
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"space_in_paren": false,
"jslint_happy": false,
"space_after_anon_function": false,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"space_before_conditional": true,
"eval_code": false,
"unescape_strings": false,
"end_with_newline": false
},
"html": {
"indent_scripts": "keep",
"wrap_attributes_indent_size": 4,
"wrap_line_length": 80,
"wrap_attributes": "force",
"indent_inner_html": false,
"indent_size": 2,
"indent_char": " ",
"brace_style": "collapse",
"preserve_newlines": true,
"max_preserve_newlines": 10,
"unformatted": [
"a",
"sub",
"sup",
"b",
"i",
"u"
],
"end_with_newline": false
},
"cs": {
"configPath": ""
},
"c": {
"configPath": ""
},
"cpp": {
"configPath": ""
},
"css": {
"indent_size": 2,
"indent_char": " ",
"selector_separator_newline": false,
"newline_between_rules": false,
"preserve_newlines": false,
"wrap_line_length": 0,
"indent_comments": true,
"force_indentation": false,
"convert_quotes": "none",
"align_assignments": false
},
"d": {
"configPath": ""
},
"fortran": {
"emacs_path": "",
"emacs_script_path": ""
},
"java": {
"configPath": ""
},
"objectivec": {
"configPath": ""
},
"pawn": {
"configPath": ""
},
"perl": {
"perltidy_profile": ""
},
"php": {
"cs_fixer_path": "",
"fixers": "",
"level": ""
},
"python": {
"max_line_length": 79,
"indent_size": 2,
"ignore": [
"E24"
]
},
"ruby": {
"indent_size": 2,
"indent_char": " "
},
"rust": {
"rustfmt_path": ""
},
"sql": {
"indent_size": 2,
"keywords": "upper",
"identifiers": "lower"
},
"vala": {
"configPath": ""
}
}
Home Options:
Options from C:\Users\Filipe\.jsbeautifyrc
{
"_default": {}
}
EditorConfig Options: Options from EditorConfig file
{}
Project Options:
Options from .jsbeautifyrc
files starting from directory .
and going up to root
[]
Final Options: Final combined options that are used
{
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": false,
"cs_fixer_path": "",
"fixers": "",
"level": ""
}
Package Settings: The raw package settings options
{
"_analyticsUserId": "2827bddd-2589-4332-b7bf-9dc17ea639d2",
"js_break_chained_methods": true,
"js_wrap_line_length": 80,
"html_indent_scripts": "keep",
"html_wrap_attributes_indent_size": 4,
"html_wrap_line_length": 80,
"html_wrap_attributes": "force",
"analytics": true,
"_loggerLevel": "warn",
"beautifyEntireFileOnSave": true,
"muteUnsupportedLanguageErrors": false,
"muteAllErrors": false,
"cs_configPath": "",
"c_configPath": "",
"cpp_configPath": "",
"css_indent_size": 2,
"css_indent_char": " ",
"css_selector_separator_newline": false,
"css_newline_between_rules": false,
"css_preserve_newlines": false,
"css_wrap_line_length": 0,
"css_indent_comments": true,
"css_force_indentation": false,
"css_convert_quotes": "none",
"css_align_assignments": false,
"d_configPath": "",
"fortran_emacs_path": "",
"fortran_emacs_script_path": "",
"html_indent_inner_html": false,
"html_indent_size": 2,
"html_indent_char": " ",
"html_brace_style": "collapse",
"html_preserve_newlines": true,
"html_max_preserve_newlines": 10,
"html_unformatted": [
"a",
"sub",
"sup",
"b",
"i",
"u"
],
"html_end_with_newline": false,
"java_configPath": "",
"js_indent_size": 2,
"js_indent_char": " ",
"js_indent_level": 0,
"js_indent_with_tabs": false,
"js_preserve_newlines": true,
"js_max_preserve_newlines": 10,
"js_space_in_paren": false,
"js_jslint_happy": false,
"js_space_after_anon_function": false,
"js_brace_style": "collapse",
"js_keep_array_indentation": false,
"js_keep_function_indentation": false,
"js_space_before_conditional": true,
"js_eval_code": false,
"js_unescape_strings": false,
"js_end_with_newline": false,
"objectivec_configPath": "",
"pawn_configPath": "",
"perl_perltidy_profile": "",
"php_cs_fixer_path": "",
"php_fixers": "",
"php_level": "",
"python_max_line_length": 79,
"python_indent_size": 2,
"python_ignore": [
"E24"
],
"ruby_indent_size": 2,
"ruby_indent_char": " ",
"rust_rustfmt_path": "",
"sql_indent_size": 2,
"sql_keywords": "upper",
"sql_identifiers": "lower",
"vala_configPath": "",
"language_cs_disabled": false,
"language_cs_default_beautifier": "Uncrustify",
"language_cs_beautify_on_save": false,
"language_c_disabled": false,
"language_c_default_beautifier": "Uncrustify",
"language_c_beautify_on_save": false,
"language_coffeescript_disabled": false,
"language_coffeescript_default_beautifier": "coffee-fmt",
"language_coffeescript_beautify_on_save": false,
"language_cpp_disabled": false,
"language_cpp_default_beautifier": "Uncrustify",
"language_cpp_beautify_on_save": false,
"language_css_disabled": false,
"language_css_default_beautifier": "JS Beautify",
"language_css_beautify_on_save": false,
"language_csv_disabled": false,
"language_csv_default_beautifier": "Pretty Diff",
"language_csv_beautify_on_save": false,
"language_d_disabled": false,
"language_d_default_beautifier": "Uncrustify",
"language_d_beautify_on_save": false,
"language_ejs_disabled": false,
"language_ejs_default_beautifier": "Pretty Diff",
"language_ejs_beautify_on_save": false,
"language_erb_disabled": false,
"language_erb_default_beautifier": "Pretty Diff",
"language_erb_beautify_on_save": false,
"language_go_disabled": false,
"language_go_default_beautifier": "gofmt",
"language_go_beautify_on_save": false,
"language_fortran_disabled": false,
"language_fortran_default_beautifier": "Fortran Beautifier",
"language_fortran_beautify_on_save": false,
"language_handlebars_disabled": false,
"language_handlebars_default_beautifier": "JS Beautify",
"language_handlebars_beautify_on_save": false,
"language_html_disabled": false,
"language_html_default_beautifier": "JS Beautify",
"language_html_beautify_on_save": false,
"language_java_disabled": false,
"language_java_default_beautifier": "Uncrustify",
"language_java_beautify_on_save": false,
"language_js_disabled": false,
"language_js_default_beautifier": "JS Beautify",
"language_js_beautify_on_save": false,
"language_json_disabled": false,
"language_json_default_beautifier": "JS Beautify",
"language_json_beautify_on_save": false,
"language_jsx_disabled": false,
"language_jsx_default_beautifier": "Pretty Diff",
"language_jsx_beautify_on_save": false,
"language_less_disabled": false,
"language_less_default_beautifier": "Pretty Diff",
"language_less_beautify_on_save": false,
"language_markdown_disabled": false,
"language_markdown_default_beautifier": "Tidy Markdown",
"language_markdown_beautify_on_save": false,
"language_marko_disabled": false,
"language_marko_default_beautifier": "JS Beautify",
"language_marko_beautify_on_save": false,
"language_mustache_disabled": false,
"language_mustache_default_beautifier": "JS Beautify",
"language_mustache_beautify_on_save": false,
"language_objectivec_disabled": false,
"language_objectivec_default_beautifier": "Uncrustify",
"language_objectivec_beautify_on_save": false,
"language_pawn_disabled": false,
"language_pawn_default_beautifier": "Uncrustify",
"language_pawn_beautify_on_save": false,
"language_perl_disabled": false,
"language_perl_default_beautifier": "Perltidy",
"language_perl_beautify_on_save": false,
"language_php_disabled": false,
"language_php_default_beautifier": "PHP-CS-Fixer",
"language_php_beautify_on_save": false,
"language_python_disabled": false,
"language_python_default_beautifier": "autopep8",
"language_python_beautify_on_save": false,
"language_ruby_disabled": false,
"language_ruby_default_beautifier": "Rubocop",
"language_ruby_beautify_on_save": false,
"language_rust_disabled": false,
"language_rust_default_beautifier": "rustfmt",
"language_rust_beautify_on_save": false,
"language_sass_disabled": false,
"language_sass_default_beautifier": "Pretty Diff",
"language_sass_beautify_on_save": false,
"language_scss_disabled": false,
"language_scss_default_beautifier": "Pretty Diff",
"language_scss_beautify_on_save": false,
"language_spacebars_disabled": false,
"language_spacebars_default_beautifier": "Pretty Diff",
"language_spacebars_beautify_on_save": false,
"language_sql_disabled": false,
"language_sql_default_beautifier": "sqlformat",
"language_sql_beautify_on_save": false,
"language_swig_disabled": false,
"language_swig_default_beautifier": "Pretty Diff",
"language_swig_beautify_on_save": false,
"language_tss_disabled": false,
"language_tss_default_beautifier": "Pretty Diff",
"language_tss_beautify_on_save": false,
"language_twig_disabled": false,
"language_twig_default_beautifier": "Pretty Diff",
"language_twig_beautify_on_save": false,
"language_typescript_disabled": false,
"language_typescript_default_beautifier": "TypeScript Formatter",
"language_typescript_beautify_on_save": false,
"language_vala_disabled": false,
"language_vala_default_beautifier": "Uncrustify",
"language_vala_beautify_on_save": false,
"language_visualforce_disabled": false,
"language_visualforce_default_beautifier": "Pretty Diff",
"language_visualforce_beautify_on_save": false,
"language_xml_disabled": false,
"language_xml_default_beautifier": "Pretty Diff",
"language_xml_beautify_on_save": false
}
Beautified File Contents:
<?php
$hello = "world";
if (!isset($_SESSION)) session_start();
require_once("sql.req.php");
// friend requests
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="notifications.php">';
if ($num>0) { echo '<i class="fa fa-star white"></i>';
}else { echo '<i class="fa fa-star-o"></i>'; }
echo '</a>';
// new messages
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="messages.php">';
if ($num>0) {
echo '<i class="fa fa-envelope white"></i>';
}else {
echo '<i class="fa fa-envelope-o"></i>';
}
echo '</a>';
?>
Logs:
2015-07-03T08:00:17.853Z - info: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] beautify <?php
$hello = "world";
if (!isset($_SESSION)) session_start();
require_once("sql.req.php");
// friend requests
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="notifications.php">';
if ($num>0) { echo '<i class="fa fa-star white"></i>';
}else { echo '<i class="fa fa-star-o"></i>'; }
echo '</a>';
// new messages
$q = $mysqli->query("");
$num = $q->num_rows;
echo '<a href="messages.php">';
if ($num>0) {
echo '<i class="fa fa-envelope white"></i>';
}else {
echo '<i class="fa fa-envelope-o"></i>';
}
echo '</a>';
?> [ { _default: { indent_size: 2, indent_char: ' ', indent_with_tabs: false } },
{ js:
{ break_chained_methods: true,
wrap_line_length: 80,
indent_size: 2,
indent_char: ' ',
indent_level: 0,
indent_with_tabs: false,
preserve_newlines: true,
max_preserve_newlines: 10,
space_in_paren: false,
jslint_happy: false,
space_after_anon_function: false,
brace_style: 'collapse',
keep_array_indentation: false,
keep_function_indentation: false,
space_before_conditional: true,
eval_code: false,
unescape_strings: false,
end_with_newline: false },
html:
{ indent_scripts: 'keep',
wrap_attributes_indent_size: 4,
wrap_line_length: 80,
wrap_attributes: 'force',
indent_inner_html: false,
indent_size: 2,
indent_char: ' ',
brace_style: 'collapse',
preserve_newlines: true,
max_preserve_newlines: 10,
unformatted: [Object],
end_with_newline: false },
cs: { configPath: '' },
c: { configPath: '' },
cpp: { configPath: '' },
css:
{ indent_size: 2,
indent_char: ' ',
selector_separator_newline: false,
newline_between_rules: false,
preserve_newlines: false,
wrap_line_length: 0,
indent_comments: true,
force_indentation: false,
convert_quotes: 'none',
align_assignments: false },
d: { configPath: '' },
fortran: { emacs_path: '', emacs_script_path: '' },
java: { configPath: '' },
objectivec: { configPath: '' },
pawn: { configPath: '' },
perl: { perltidy_profile: '' },
php: { cs_fixer_path: '', fixers: '', level: '' },
python: { max_line_length: 79, indent_size: 2, ignore: [Object] },
ruby: { indent_size: 2, indent_char: ' ' },
rust: { rustfmt_path: '' },
sql: { indent_size: 2, keywords: 'upper', identifiers: 'lower' },
vala: { configPath: '' } },
{ _default: {} },
{} ] PHP undefined undefined
2015-07-03T08:00:17.853Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] indent_size=2, indent_char= , indent_with_tabs=false, break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, ,
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] [ { name: 'PHP',
namespace: 'php',
grammars: [ 'PHP' ],
extensions: [ 'php' ],
options: { cs_fixer_path: [Object], fixers: [Object], level: [Object] },
beautifiers: [ 'PHP-CS-Fixer' ] } ] 'PHP' ''
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] Language PHP supported
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] getOptions selections [ 'php' ] indent_size=2, indent_char= , indent_with_tabs=false, break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, ,
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true indent_size=2, indent_char= , indent_with_tabs=false
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php indent_size=2, indent_char= , indent_with_tabs=false
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php cs_fixer_path=, fixers=, level=
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php cs_fixer_path=, fixers=, level=
2015-07-03T08:00:17.854Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] true
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] false
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php undefined
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options php
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] PHP name=PHP, namespace=php, grammars=[PHP], extensions=[php], title=PHP - PHP-CS-Fixer Path, type=string, default=, description=Path to the `php-cs-fixer` CLI executable (Supported by PHP-CS-Fixer), beautifiers=[PHP-CS-Fixer], type=string, default=, description=Add fixer(s). i.e. linefeed,-short_tag,indentation (Supported by PHP-CS-Fixer), title=PHP - Fixers, beautifiers=[PHP-CS-Fixer], type=string, default=, description=By default, all PSR-2 fixers and some additional ones are run. (Supported by PHP-CS-Fixer), title=PHP - Level, beautifiers=[PHP-CS-Fixer], beautifiers=[PHP-CS-Fixer]
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] options indent_size=2, indent_char= , indent_with_tabs=false, cs_fixer_path=, fixers=, level=
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] beautifiers silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, languages=[PHP]
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] PHP undefined { indent_size: 2,
indent_char: ' ',
indent_with_tabs: false,
cs_fixer_path: '',
fixers: '',
level: '' } indent_size=2, indent_char= , indent_with_tabs=false, break_chained_methods=true, wrap_line_length=80, indent_size=2, indent_char= , indent_level=0, indent_with_tabs=false, preserve_newlines=true, max_preserve_newlines=10, space_in_paren=false, jslint_happy=false, space_after_anon_function=false, brace_style=collapse, keep_array_indentation=false, keep_function_indentation=false, space_before_conditional=true, eval_code=false, unescape_strings=false, end_with_newline=false, indent_scripts=keep, wrap_attributes_indent_size=4, wrap_line_length=80, wrap_attributes=force, indent_inner_html=false, indent_size=2, indent_char= , brace_style=collapse, preserve_newlines=true, max_preserve_newlines=10, unformatted=[a, sub, sup, b, i, u], end_with_newline=false, configPath=, configPath=, configPath=, indent_size=2, indent_char= , selector_separator_newline=false, newline_between_rules=false, preserve_newlines=false, wrap_line_length=0, indent_comments=true, force_indentation=false, convert_quotes=none, align_assignments=false, configPath=, emacs_path=, emacs_script_path=, configPath=, configPath=, configPath=, perltidy_profile=, cs_fixer_path=, fixers=, level=, max_line_length=79, indent_size=2, ignore=[E24], indent_size=2, indent_char= , rustfmt_path=, indent_size=2, keywords=upper, identifiers=lower, configPath=, ,
2015-07-03T08:00:17.855Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\index.coffee] beautifier PHP-CS-Fixer silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, silly=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, debug=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, verbose=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, info=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, warn=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, error=function (msg) {
// build argument list (level, msg, ... [string interpolate], [{metadata}], [callback])
var args = [level].concat(Array.prototype.slice.call(arguments));
target.log.apply(target, args);
}, onLogging=function (handler) {
var subscription;
subscription = emitter.on('logging', handler);
return subscription;
}, languages=[PHP]
2015-07-03T08:00:17.856Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] php-cs-fixer indent_size=2, indent_char= , indent_with_tabs=false, cs_fixer_path=, fixers=, level=
2015-07-03T08:00:17.925Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] php-cs-fixer paths 0=undefined, 1=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT
2015-07-03T08:00:17.926Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] phpCSFixerPath C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT
2015-07-03T08:00:17.926Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] phpCSFixerPath C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT 0=undefined, 1=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT
2015-07-03T08:00:17.927Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] tempFile temp null path=C:\Users\Filipe\AppData\Local\Temp\temp11563-6388-1q9do7y, fd=1
2015-07-03T08:00:17.927Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] exeName, args: php 0=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT, 1=fix, 2=undefined, 3=undefined, 4=C:\Users\Filipe\AppData\Local\Temp\temp11563-6388-1q9do7y
2015-07-03T08:00:17.950Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] exePath, env: C:\php-5.6.9-Win32-VC11-x86\php.EXE ALLUSERSPROFILE=C:\ProgramData, ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk, APPDATA=C:\Users\Filipe\AppData\Roaming, ATOM_HOME=C:\Users\Filipe\.atom, CommonProgramFiles=C:\Program Files (x86)\Common Files, CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files, CommonProgramW6432=C:\Program Files\Common Files, COMPUTERNAME=RED-PC, ComSpec=C:\WINDOWS\system32\cmd.exe, configsetroot=C:\WINDOWS\ConfigSetRoot, FP_NO_HOST_CHECK=NO, GOOGLE_API_KEY=AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q, HOMEDRIVE=C:, HOMEPATH=\Users\Filipe, JAVA_HOME=C:\Program Files\Java\jdk1.7.0_67, LOCALAPPDATA=C:\Users\Filipe\AppData\Local, LOGONSERVER=\\MicrosoftAccount, NODE_ENV=production, NODE_PATH=C:\Users\Filipe\AppData\Local\atom\app-1.0.0\resources\app.asar\exports, NUMBER_OF_PROCESSORS=4, OS=Windows_NT, Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Lenovo\Password Manager\;C:\Program Files (x86)\Git\bin;C:\php-5.6.9-Win32-VC11-x86;C:\Python27;C:\ProgramData\ComposerSetup\bin;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\MongoDB 2.6 Standard\bin;C:\apache-ant-1.9.4\bin;C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\;C:\Program Files (x86)\MySQL\MySQL Fabric 1.5.4 & MySQL Utilities 1.5.4 1.5\Doctrine extensions for PHP\;C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\;c:\Users\Filipe\AppData\Local\atom\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Filipe\AppData\Local\Pandoc\;C:\Users\Filipe\AppData\Roaming\npm;C:\Program Files\Java\jdk1.7.0_67\bin;C:\android-sdk\build-tools\20.0.0;C:\Users\Filipe\AppData\Local\atom\bin, PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC, PROCESSOR_ARCHITECTURE=x86, PROCESSOR_ARCHITEW6432=AMD64, PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel, PROCESSOR_LEVEL=6, PROCESSOR_REVISION=4501, ProgramData=C:\ProgramData, ProgramFiles=C:\Program Files (x86), ProgramFiles(x86)=C:\Program Files (x86), ProgramW6432=C:\Program Files, PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\, PUBLIC=C:\Users\Public, READYAPPS=C:\ProgramData\Lenovo\ReadyApps, SESSIONNAME=Console, SystemDrive=C:, SystemRoot=C:\WINDOWS, TEMP=C:\Users\Filipe\AppData\Local\Temp, TMP=C:\Users\Filipe\AppData\Local\Temp, TVT=C:\Program Files (x86)\Lenovo, USERDOMAIN=RED-PC, USERDOMAIN_ROAMINGPROFILE=RED-PC, USERNAME=Filipe, USERPROFILE=C:\Users\Filipe, windir=C:\WINDOWS
2015-07-03T08:00:17.951Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn C:\php-5.6.9-Win32-VC11-x86\php.EXE 0=C:\Users\Filipe\AppData\Roaming\Composer\vendor\bin\php-cs-fixer.BAT, 1=fix, 2=C:\Users\Filipe\AppData\Local\Temp\temp11563-6388-1q9do7y
2015-07-03T08:00:18.003Z - debug: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn done 0 @ECHO OFF
SET BIN_TARGET=%~dp0/../fabpot/php-cs-fixer/php-cs-fixer
php "%BIN_TARGET%" %*
2015-07-03T08:00:18.003Z - verbose: [C:\Users\Filipe\.atom\packages\atom-beautify\src\beautifiers\beautifier.coffee] spawn result 0 @ECHO OFF
SET BIN_TARGET=%~dp0/../fabpot/php-cs-fixer/php-cs-fixer
php "%BIN_TARGET%" %*
I wonder though.... What is the command that's actually being ran? Is it php php-cs-fixer fix test.php
or php-cs-fixer fix test.php
?
Because the first one when ran via console does return Could not open input file: php-cs-fixer
(which is to be expected, since it is not a .phar
but rather a .bat
on the path).
since it is not a .phar but rather a .bat on the path
I think that is the problem. Could you run where.exe php-cs-fixer
and it should display two, one .bat
and one without an extension or it may be a .phar
or .php
extension.
Use that in the options for PHP CS Fixer Path
.
That didn't work, but then I tried downloading the .phar
itself somewhere and putting that on the PHP CS Fixer Path
and it worked.
What happens then is that atom-beautify
does not work with a global composer php-cs-fixer install on windows because the files on composer/bin
are not .phar
and does cannot be run via php php-cs-fixer fix filename.php
.
where.exe php-cs-fixer
should only return the php-cs-fixer.bat if the installation was done according to the wiki of php-cs-fixer (With a global installation. This sets up the path like:
export PATH="$PATH:$HOME/.composer/vendor/bin"
, which contains the .bat and not the .phar).
But you don't have to download the phar manually. Just check the path to the .phar that is used in the php-cs-fixer.bat and use this one as the global php-cs-fixer path.
Good tip! The .bat
does not point to a .phar
but rather to a file with no extension (that contains php code), which worked nonetheless. Thanks!
I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance.
Hi,
I've php-cs-fixer installed and can run it from the command line, but from inside atom the beaitifying message appears and nothing happens.
I've read a similar issue on the repo that seemed to stem from having the path set manually on atom-beautify, but that is not the case with me. I'll put the debug info in a comment here.
For the test, I just added a bunch on empty spaces after attributions which the CLI removes, but atom doesn't change at all. CLI command used was
php-cs-fixer fix server.php
.