# app/config/config.yml
framework:
translator: ~
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
stripe* | |
loading* | |
LOADED -> waiting | |
waiting | |
mounting* | |
mounted -> waiting0 | |
waiting0 |
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
#!/usr/bin/env bash | |
EXIT_CODE=0 | |
for FILE in `git status --porcelain | egrep '^[AM]' | egrep '\.(md|php|twig|xml|yml)$' | awk '{print $2;}'`; do | |
php-cs-fixer fix $FILE --verbose --dry-run | |
if [[ $? != 0 ]]; then | |
echo "f=$FILE; php-cs-fixer fix \$f --verbose && git add \$f" |
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 | |
$book = new Book(array( | |
'name' => 'Les aventures de François', | |
'status' => 'published', | |
'author' => new Author(array( | |
'name' => 'François', | |
'age' => '27', | |
)), | |
)); |
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 | |
/** | |
* @param ExecutionContext $context | |
* @return bool | |
*/ | |
public function isValidAddress($context) | |
{ | |
if ($this->knownCustomer) { | |
$this->address = $this->em->getRepository('AcmePizzaBundle:Address')->findOneBy(array('phone' => $this->knownPhone)); |