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 | |
# before | |
DB::getInstance()->query('sql'); | |
# after | |
DB::query('sql'); | |
# Notice: All functions in the extended class must be protected. |
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 | |
// Only the first parameter is necessary. The other two are there because of the recursion :) | |
function sanitizeArray (array $array, array &$output = [], $breakpoint = 0) { | |
foreach($array as $key => $val){ | |
if(++$breakpoint > 1000){ | |
return false; |