This file contains hidden or 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 | |
class ExtraFieldInWhitelist extends Module | |
{ | |
public function __construct() | |
{ | |
$this->name = 'extrafieldinwhitelist'; | |
$this->tab = 'front_office_features'; | |
$this->version = '1'; | |
$this->author = 'Krystian Podemski'; |
This file contains hidden or 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 | |
function combos($data, &$all = array(), $group = array(), $val = null, $i = 0) { | |
if (isset($val)) { | |
array_push($group, $val); | |
} | |
if ($i >= count($data)) { | |
array_push($all, $group); | |
} else { | |
foreach ($data[$i] as $v) { |
This file contains hidden or 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
#!/bin/bash | |
FILES_TO_COMMIT=`git status -s | cut -c4-` | |
if [[ ! -z $FILES_TO_COMMIT ]]; then | |
for file in $FILES_TO_COMMIT; do | |
if [[ "$file" == *.php ]]; then | |
./vendor/bin/php-cs-fixer fix "$file" | |
fi | |
done |
OlderNewer