Change-Id: I5e59dd8136fcbd8dc833d7c9f6288656e13df6e9
* @return int|bool The item index of the lower bound, or false if the target value
* sorts before all items.
*/
- public static function findLowerBound( $valueCallback, $valueCount, $comparisonCallback, $target ) {
+ public static function findLowerBound( $valueCallback, $valueCount,
+ $comparisonCallback, $target
+ ) {
if ( $valueCount === 0 ) {
return false;
}
* Exception for Cdb errors.
* This explicitly doesn't subclass MWException to encourage reuse.
*/
-class CdbException extends Exception {}
+class CdbException extends Exception {
+}
if ( ( $flags & self::QUICK_VOLATILE ) && PHP_SAPI !== 'cli' ) {
try {
$cache = ObjectCache::newAccelerator( array() );
- } catch ( MWException $e ) {} // not supported
+ } catch ( MWException $e ) {
+ // not supported
+ }
}
if ( $cache ) {
$counter = $cache->incr( $bucket, $count );