this needs to be explained
Thanks to David for this code candy
// this needs to be explained!!
$this->_searchResult[$type] = $this->_searchResult[$type];
Programming language: PHP
Thanks to David for this code candy
// this needs to be explained!!
$this->_searchResult[$type] = $this->_searchResult[$type];
Programming language: PHP
Thanks to Markus B. for this code candy
/**
* Once you are done trying to ‘optimize’ this routine,
* and have realized what a terrible mistake that was,
* please increment the following counter as a warning
* to the next guy:
*
* total_hours_wasted_here = 11
*/
Programming language: PHP
Thanks to Sebastian R. for this code candy
// the two salts for the password. I know it could be safer
// with random salts but for now it’s okay
Source: found in an old configuration file in third-party software
Programming language: PHP
/**
* This function could be re-written to be more clean and
* effective – yet it’s not that important.
*/
Source: Direct link to the source code
Software: TYPO3
Programming language: PHP
Thanks to Keenora for this code candy:
function getSort() {
// class “Doku_Parser_Mode_code” returns 200
return 194;
}
Software: DokuWiki
Programming language: PHP