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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit | |
| colors="true" | |
| processIsolation="false" | |
| stopOnFailure="false" | |
| syntaxCheck="false" | |
| bootstrap="./tests/init.php" | |
| > | |
| <php> |
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 | |
| /** | |
| * Custom redis client class to be able to set a custom prefix for every key | |
| * | |
| * @see https://github.com/nicolasff/phpredis | |
| **/ | |
| class RedisClient extends Redis { | |
| /** | |
| * Default prefix |
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
| public $paypal = array( | |
| 'datasource' => 'PaypalIpn.PaypalIpnSource', | |
| 'environment' => 'sandbox', | |
| 'business' => '[email protected]', | |
| ); |
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
| server { | |
| # Enable Gzip compressed. | |
| gzip on; | |
| # Enable compression both for HTTP/1.0 and HTTP/1.1 (required for CloudFront). | |
| gzip_http_version 1.0; | |
| gzip_comp_level 5; | |
| # Don't compress anything that's already small and unlikely to shrink much | |
| # if at all (the default is 20 bytes, which is bad as that usually leads to |
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 fib() { | |
| list($x, $y) = [0, 1]; | |
| while(1) { | |
| yield $y; | |
| list($x, $y) = [$y, $x + $y]; | |
| } | |
| } |
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 | |
| $formatter = function($entity) use ($preferredlanguage, $translatedFields) { | |
| foreach ($entity->translations as $translation) { | |
| if ($translation->locale === $preferredlanguage) { | |
| foreach ($translatedFields as $f) { | |
| $entity->set($f, $translation->get($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 | |
| /** | |
| * Name of database configuration resource to use for storing data in Elastic Search | |
| * | |
| * @var string | |
| **/ | |
| public $useIndexConfig = 'index'; | |
| /** | |
| * Check if DataSource currently is ElasticSource |
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
| { | |
| "name": "bakers", | |
| "repositories": [ | |
| { | |
| "type": "pear", | |
| "url": "http://pear.cakephp.org" | |
| } | |
| ], | |
| "require": { | |
| "pear-cakephp/cakephp": "2.4.0-RC2", |
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 | |
| /** | |
| * Configuration options | |
| * | |
| */ | |
| $iterations = 1000000; | |
| info(); | |
| $callable = function() { | |
| return 1 + 1; |
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
| # This file MUST be edited with the 'visudo' command as root. | |
| # | |
| # Please consider adding local content in /etc/sudoers.d/ instead of | |
| # directly modifying this file. | |
| # | |
| # See the man page for details on how to write a sudoers file. | |
| # | |
| Defaults env_reset | |
| Defaults mail_badpass |