composer global require friendsofphp/php-cs-fixer
after successfully installation of PHP-CS-FIXER
now install PHP-CS-FIXER VSCODE Extension
| name: CI/CD workflow | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| testing: |
| // Requires Gulp v4. | |
| // $ npm uninstall --global gulp gulp-cli | |
| // $ rm /usr/local/share/man/man1/gulp.1 | |
| // $ npm install --global gulp-cli | |
| // $ npm install | |
| const { src, dest, watch, series, parallel } = require('gulp'); | |
| const browsersync = require('browser-sync').create(); | |
| const sass = require('gulp-sass'); | |
| const autoprefixer = require('gulp-autoprefixer'); | |
| const sourcemaps = require('gulp-sourcemaps'); |
| <template> | |
| <textarea | |
| id="textarea" | |
| :placeholder="placeholder" | |
| :value="value" | |
| name="textarea" | |
| @input="input($event.target.value)"/> | |
| </template> | |
| <script> |
| <?php | |
| /* | |
| This function saved my life. | |
| found on: http://www.sitepoint.com/forums//showthread.php?t=438748 | |
| by: crvandyke | |
| It takes an object, and when all else if/else/recursive functions fail to convert the object into an associative array, this one goes for the kill. Who would'a thunk it?! | |
| */ | |
| $array = json_decode(json_encode($object), true); |