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 App\Domain; | |
class Checkout | |
{ | |
private $orderValidation; | |
private $orderRepo; | |
private $featureToggle; | |
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 App; | |
use Illuminate\Database\Eloquent\Model; | |
class FeatureToggle extends Model | |
{ | |
public $timestamps = true; | |
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 App\Domain; | |
class Checkout | |
{ | |
private $orderValidation; | |
private $orderRepo; | |
public function __construct(OrderValidation $orderValidation, OrderRepository $orderRepo) |
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
export AUTOMATION_REPO_PATH="$HOME/Code/automation" | |
hf-deploy() { | |
env=$1 | |
app=$2 | |
ver=$3 | |
if [ -z $1 -o -z $2 -o -z $3 ] | |
then | |
echo "Missing parameters." |
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 | |
$expectedLength = count(reset($values)); | |
$diffLength = count(array_intersect_key(...$values)); | |
if ($diffLength !== $expectedLength) { | |
throw new LengthException("Element size differs ({$diffLength} should be {$expectedLength})"); | |
} | |
$items = array_map(function (...$items) { | |
return $items; |
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 phpgt\dom\test; | |
class Helper { | |
const HTML = "<!doctype html><html><body><h1>Hello!</h1></body></html>"; | |
const HTML_MORE = <<<HTML | |
<!doctype html> | |
<html> | |
<head> |
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 phpgt\dom\test; | |
class Helper { | |
const HTML = "<!doctype html><html><body><h1>Hello!</h1></body></html>"; | |
const HTML_MORE = <<<HTML | |
<!doctype html> | |
<html> | |
<head> |
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 phpgt\dom\test; | |
class Helper { | |
const HTML = "<!doctype html><html><body><h1>Hello!</h1></body></html>"; | |
const HTML_MORE = <<<HTML | |
<!doctype html> | |
<html> | |
<head> |
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
array:9 [ | |
"bStat" => true | |
"versao" => "1.00" | |
"tpAmb" => "2" | |
"verAplic" => "RS20160520152620" | |
"cStat" => "104" | |
"xMotivo" => "Arquivo processado" | |
"nRec" => "359000002452757" | |
"cUF" => "2" | |
"aProt" => array:9 [ |
NewerOlder