Skip to content

Instantly share code, notes, and snippets.

@freddymu
Forked from james2doyle/phplint-folder.sh
Created July 14, 2021 06:30
Show Gist options
  • Save freddymu/b7cc373e5e6056285be6f761521cce9a to your computer and use it in GitHub Desktop.
Save freddymu/b7cc373e5e6056285be6f761521cce9a to your computer and use it in GitHub Desktop.

Revisions

  1. @james2doyle james2doyle revised this gist Aug 10, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions phplint-folder.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/usr/bin/env bash

    # found on http://kamisama.me/2012/07/02/faster-php-lint/

    find my/folder/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l
  2. @james2doyle james2doyle created this gist Jul 27, 2015.
    3 changes: 3 additions & 0 deletions phplint-folder.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/usr/bin/env bash

    find my/folder/ -name "*.php" -print0 | xargs -0 -n1 -P8 php -l