The standard code style linter is a great tool by Feross - check it out!
Remove trailing semicolons:
find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;
Ensure space between function and opening bracket:
| <?php | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Authentication Defaults | |
| |-------------------------------------------------------------------------- | |
| | | |
| | This option controls the default authentication "guard" and password |
The standard code style linter is a great tool by Feross - check it out!
Remove trailing semicolons:
find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;
Ensure space between function and opening bracket:
| <?php | |
| if ( ! function_exists('config_path')) | |
| { | |
| /** | |
| * Get the configuration path. | |
| * | |
| * @param string $path | |
| * @return string | |
| */ |
| @servers(['web' => '[email protected] -p 1234']) | |
| @setup | |
| $project_name = 'Project Name'; | |
| $project_url = 'http://project-domain.com/'; | |
| $project_root = '/www/project/web'; | |
| $slack_hook = 'your-slack-hook-url'; | |
| $slack_channel = '#channel'; | |
| @endsetup |
| @servers(['web' => '[email protected] -p 1234']) | |
| @setup | |
| $path = "/path/to/site"; | |
| @endsetup | |
| @task('down') | |
| cd {{ $path }} | |
| php artisan down | |
| @endtask |
| /* | |
| |-------------------------------------------------------------------------- | |
| | New Relic App Name | |
| |-------------------------------------------------------------------------- | |
| | | |
| | If the extension `newrelic` is loaded then | |
| | set the name of the app to something. | |
| | | |
| */ |
| // Load plugins | |
| var gulp = require('gulp'), | |
| browserSync = require('browser-sync'), | |
| reload = browserSync.reload, | |
| sass = require('gulp-ruby-sass'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| minifycss = require('gulp-minify-css'), | |
| jshint = require('gulp-jshint'), | |
| uglify = require('gulp-uglify'), | |
| imagemin = require('gulp-imagemin'), |
| <?php | |
| class ArrayValidation extends Illuminate\Validation\Validator | |
| { | |
| public function validatePeriodArray($field, $values, $params) | |
| { | |
| $valid = true; | |
| foreach($values as $value) | |
| { |
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Detect The Application Environment | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Laravel takes a dead simple approach to your application environments | |
| | so you can just specify a machine name for the host that matches a | |
| | given environment, then we will automatically detect it for you. |
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |