These rules are adopted from the AngularJS commit conventions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Carbon\Carbon; | |
use DateInterval; | |
use DatePeriod; | |
use Illuminate\Support\Collection; | |
class Report | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "pre commit hook start" | |
CURRENT_DIRECTORY=`pwd` | |
PHP_CS_FIXER="$CURRENT_DIRECTORY/vendor/bin/php-cs-fixer" | |
HAS_PHP_CS_FIXER=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Parse a video string | |
* | |
* @param string $haystack The string to be parsed | |
* @param string $protocol The protocol to be used for the urls | |
* @return array $video | |
* | |
* @version 2014-08-22 | |
* |