Force PHP standards with Git hooks and Code Sniffer
Phpcs Dependency
First, we need a development dependency specified to install phpcs. It looks something like this:
{
"require-dev": [
"squizlabs/php_codesniffer": "2.0.*@dev"
]
}
function string_to_slug (str) { | |
str = str.replace(/^\s+|\s+$/g, ''); // trim | |
str = str.toLowerCase(); | |
// remove accents, swap ñ for n, etc | |
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
var to = "aaaaeeeeiiiioooouuuunc------"; | |
for (var i=0, l=from.length ; i<l ; i++) { | |
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
} |
First, we need a development dependency specified to install phpcs. It looks something like this:
{
"require-dev": [
"squizlabs/php_codesniffer": "2.0.*@dev"
]
}
Looking for the First Job
This is a very common state for people in college, people before/after a bootcamp, or people from another area.
The first job will be the hardest one to get, but it will get easier over time.
The interview will be harder than the job itself