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 normalizeBidirectionalTextMarkers($graphemes) | |
{ | |
$regex = '/ | |
\x{202A} # LEFT-TO-RIGHT EMBEDDING | |
|\x{202B} # RIGHT-TO-LEFT EMBEDDING | |
|\x{202D} # LEFT-TO-RIGHT OVERRIDE | |
|\x{202E} # RIGHT-TO-LEFT OVERRIDE | |
|\x{202C} # POP DIRECTIONAL FORMATTING | |
/ux'; |
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 Connection | |
{ | |
public function transactional(callable $callback) | |
{ | |
$callback(); | |
} | |
} | |
function capture(&$result, callable $callback) { |
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 TestCase extends PHPUnit_Framework_TestCase | |
{ | |
private $dep; | |
private $service; | |
public function setUp() | |
{ | |
$this->service = new Service(); |
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 of the function: ":" | |
Function braces: "()" | |
Opening braces function body: "{" | |
Invoke function: ":" | |
Pass through a pipe: "|" | |
Pass stdout of first function call to another invocation: ":" | |
Background the whole thing: "&" |
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/go-go-crankin analyze --configuration gogo.xml | |
Building file list | |
................................................................................ | |
................................................................................ | |
................................................................................ | |
................................................................................ | |
................................................................................ | |
................................................................................ | |
................................................................................ |
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 Factory | |
{ | |
/** | |
* @param string:T $className | |
* @return T | |
*/ | |
public function create($className) | |
{} |
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 Akjumii_Payment_Model_Method_Manual extends Mage_Payment_Model_Method_Abstract | |
{ | |
protected $_code = 'manual_payment'; | |
protected $_isGateway = false; | |
protected $_canAuthorize = false; | |
protected $_canVoid = false; |
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
"autoload": { | |
"psr-0": { | |
"": ["app/code/local", "app/code/community", "app/code/core", "lib"] | |
} | |
} |
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 | |
/** | |
* Classes source autoload | |
*/ | |
class Varien_Autoload | |
{ | |
/** @var \Composer\Autoload\ClassLoader */ | |
private static $autoloader; | |
/** @var self */ |
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"?> | |
<package packagerversion="1.9.4" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0" xmlns:tasks="http://pear.php.net/dtd/tasks-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0 http://pear.php.net/dtd/tasks-1.0.xsd http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> | |
<name>twig</name> | |
<channel>pecl.php.net</channel> | |
<summary>Twig</summary> | |
<description>Twig C extension</description> | |
<lead> | |
<name>Fabien Potencier</name> | |
<user>fabpot</user> | |
<email>[email protected]</email> |