I hereby claim:
- I am jrbasso on github.
- I am jrbasso (https://keybase.io/jrbasso) on keybase.
- I have a public key whose fingerprint is FB6C 0029 F72B 33F3 69CF C90F B81C DD9B B318 78F8
To claim this, I am signing this object:
<?php | |
$data = array_fill(0, 1000, 1.0); | |
$iterations = 10000; | |
$m = microtime(true); | |
while ($iterations-- > 0) { | |
json_encode($data); | |
} | |
echo "Elapsed time: ", (microtime(true) - $m), "\n"; |
<?php | |
namespace Cake; | |
class Router { | |
protected static $_collection; | |
protected static $_vars; | |
public static function test() { | |
static::$_collection = new \stdClass(); |
I hereby claim:
To claim this, I am signing this object:
// app/config/databases.php | |
class DATABASE_CONFIG { | |
var $default = array(...); | |
var $soap = array('datasource' => 'Datasources.Soap', ...); | |
var $test = array(...); | |
} | |
// app/models/servico.php |
<?php | |
// Fake methods | |
function pluginSplit() {} | |
function env() {} | |
class ValidateAPI { | |
protected $_cakePath; | |
protected $_files = array(); |
Cake
Cake\Cache\Engine\ApcEngine
, Cake\Controller\Controller
HtmlHelper
will be Cake\View\Helper\HtmlHelper
instead of Cake\View\Helper\Html
)#!/bin/sh | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
echo "Checking PHP Lint..." | |
FILES="" | |
for FILE in `git diff --cached --name-only --diff-filter=ACMR HEAD | egrep \\\\.\(php\|ctp\)\$` | |
do | |
php -l -d display_errors=0 $PROJECT/$FILE | |
if [ $? != 0 ] |
<?php | |
$dir = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__)); | |
while ($dir->valid()) { | |
$filename = $dir->key(); | |
if (substr($filename, -4) !== '.php' || strpos($filename, '.git')) { | |
$dir->next(); | |
continue; | |
} |
diff --git a/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc b/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc | |
index 848fc56..0d0e224 100644 | |
--- a/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc | |
+++ b/CodeSniffer/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.inc | |
@@ -37,6 +37,16 @@ class Test | |
} | |
} | |
+ function hello4() | |
+ { |
<?php | |
namespace Cake\Bin; | |
class Push { | |
const DEFAULT_TYPE = 'text'; | |
const CAKEBIN_URL = 'http://bin.cakephp.org'; | |
protected $allowedTypes = array( |