for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the ******* package.
*
* (c) Amin Yazdanpanah <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Streaming;
class Utiles
{
* @param string $str
* @return string
public static function appendSlash(string $str): string
return $str ? rtrim($str, '/') . "/" : $str;
}
* Round to even number
* @param float $num
* @return int
public static function RTE(float $num): int
return (int)$num % 2 == 0 ? $num : ++$num;
return (int)$num % 2 == 0 ? $num : ++$num
double
integer