This file contains hidden or 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
| <?xml version="1.0"?> | |
| <ruleset name="Laravel Standards"> | |
| <!-- | |
| The name attribute of the ruleset tag is displayed | |
| when running PHP_CodeSniffer with the -v command line | |
| argument. The description tag below is not displayed anywhere | |
| except in this file, so it can contain information for | |
| developers who may change this file in the future. | |
| --> |
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <ruleset name="MyStandard"> | |
| <description>PSR2 with tabs instead of spaces.</description> | |
| <arg name="tab-width" value="4"/> | |
| <rule ref="PSR2"> | |
| <exclude name="Generic.WhiteSpace.DisallowTabIndent"/> | |
| </rule> | |
| <rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/> | |
| <rule ref="Generic.WhiteSpace.ScopeIndent"> | |
| <properties> |
This file contains hidden or 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
| var outputLocation = require('path').resolve(__dirname, 'file.json'); | |
| require('fs').writeFile(outputLocation, JSON.stringify(data, null, 4), function(err) { | |
| if(err) { | |
| console.log(err); | |
| } else { | |
| console.log("JSON saved to "+outputLocation); | |
| } | |
| }); |