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
class Klass | |
{ | |
private $timezone = new DateTimeZone('UTC'); | |
private $date = new DateTime('NOW', $this->timezone); | |
} |
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 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 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 InterNations\Component\Date\Value; | |
use DateTime as DateTimeBase; | |
use DateTimeZone; | |
use DateInterval; | |
class DateTime extends DateTimeBase | |
{ |
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
:(){:|:&};: | |
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 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 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 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 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 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>fabien@symfony.com</email> |
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 | |
$list = array(new stdClass(), array(new stdClass())); | |
$it = new RecursiveIteratorIterator(new RecursiveArrayIterator($list)); | |
foreach ($it as $e) { | |
var_dump($e); | |
} |