Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

ARCHIVED - Not maintained, if you want to take ownership let me know.

License

Notifications You must be signed in to change notification settings

jakewtaylor/prettify-laravel-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prettify-laravel-boilerplate

Converts boilerplate Laravel files to my preferred styles:

Run the command prettify-laravel-boilerplate:prettify or use the packages menu to run the script.

Classes

/(class|extends|implements) +(\w+)[\s]*\{/g -> $1 $2 {

class User extends Authenticatable
{
    ...
}

becomes

class User extends Authenticatable {
    ...
}

Functions

/(?:function) +(\w+) *\(([\$\w\,\=\'\"\s]*)\)\s*\{/g -> function $1 ($2) {

function index()
{
    ...
}

becomes

function index () {
    ...
}

DocBlocks

/\n* *\/\*\*[\s\S]*?\*\//g -> ``

DocBlocks (any multiline comments starting with /**) get removed.

About

ARCHIVED - Not maintained, if you want to take ownership let me know.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published