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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBF6BOdkBEADQzhspoM44xtONPN7VGwRPwY6onk2+b+RdYYvkHzJc8jghdQJh | |
iIOwXvbgHwPkC5EWa+7cTLy1feb+emdk747MMv+ch+CdtlgWXaZOm75QlBLWj58C | |
V9dXgrJE8ZrYCpTiTFtV0Ghi8AbGJJTx45d1RlM/yHUtee8qsbihMPfMDIo4gyGX | |
fscXFuMXh8wIhbLV2XMGUz9206e882HNqLB7fHo6vpcyXbaZRZQW/c6GB1tVt1uA | |
wFT9d5ovZ0eebfS3jQjWQsH8sbe4ItbRKxoOdHTVgI86IDslGyrxcCsahRa8kLOa | |
4InyKLelPLYcTrQXmbI8R4YIpIyyjzlRFQAjy0FwgJOXe3r+nrMgTxu1Jfr0vosQ | |
qDRoExLAR2su+RKOpz6BhA9euOEtOzzTnMnCnAPm3Q5o8yc+b5N8g4luqHZVHCTG | |
N/zNbC3yjYfY+qH5eW4dpHO3tRVTJBexrba8nk6P3jnMlje2Nqsxaw/e2CWcoFA5 |
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 | |
function foo($a, $b) | |
{ | |
if ($a > 10) { | |
echo 1; | |
} else { | |
echo 2; | |
} | |
} |
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 | |
class MyClassWithPreloading | |
{ | |
public function helloPreloading() | |
{ | |
$start = microtime(true); | |
$value = 1; |
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
opcache.enable_cli=1 | |
opcache.preload="/var/www/app/preload.php" | |
opcache.preload_user=www-data |
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 | |
$files = [ | |
'MyClassWithPreloading.php' | |
]; | |
foreach ($files as $file) { | |
opcache_compile_file($file); | |
} |
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 -a |
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
git init >> Inicia um novo repositório git; | |
git add Controller.php >> Adiciona um arquivo a "staging area"; | |
git add . >> Adiciona todos os arquivos do repositório a "staging area"; | |
git commit -m "mensagem" >> Faz um commit; | |
git commit -am "mensagem" >> Adicionar arquivo a "staging area" e fazer commit ao mesmo tempo; | |
git commit --amend >> Alterar último commit; | |
git commit --amend -m "Mensagem" >> Fazer commit alterando o último. | |
------------------------------------------------------------------------------------------- | |
git log >> Mostra histórico de commits; |
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 | |
namespace BilletService; | |
use PagSeguro\Domains\Requests\DirectPayment\Boleto as BilletPagseguroApi; | |
class BilletService | |
{ | |
private $billetPagseguroApi; | |
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 | |
namespace Test; | |
use PHPUnit\Framework\TestCase; | |
class CreditCardPaymentTest extends TestCase | |
{ | |
/** | |
* @dataProvider creditCardDataProvider |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit backupGlobals="false" | |
backupStaticAttributes="false" | |
bootstrap="bootstrap/autoload.php" | |
colors="true" | |
convertErrorsToExceptions="true" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
processIsolation="false" | |
stopOnFailure="false"> |
NewerOlder