public function addHelperPath(string $path): void
    {
        $class = static::class;
        $realPath = realpath($path);

        if (false === $realPath) {
            throw new CommonException("Invalid Helper path `$path` for class `$class`");
        }

        // create store of helpers
        if (!isset(static::$helpersPath[$class])) {
            static::$helpersPath[$class] = [];
        }

        if (!\in_array($realPath, static::$helpersPath[$class], true)) {
            static::$helpersPath[$class][] = $realPath;
        }
    }
public function addHelperPath(string $path): void
    {
        $class = static::class;
        $realPath = realpath($path);

        if (false === $realPath) {
            throw new CommonException("Invalid Helper path `$path` for class `$class`");
        }

        // create store of helpers
        if (!isset(static::$helpersPath[$class])) {
            static::$helpersPath[$class] = [];
        }

        if (!\in_array($realPath, static::$helpersPath[$class], true)) {
            static::$helpersPath[$class][] = $realPath;
        }
    }
public function addHelperPath ( string $ path ) : void { $ class = static :: class ; $ realPath = realpath ( $ path ) ; if ( false === $ realPath ) { throw new CommonException ( "Invalid Helper path `$path` for class `$class`" ) ; } // create store of helpers if ( ! isset ( static :: $ helpersPath [ $ class ] ) ) { static :: $ helpersPath [ $ class ] = [ ] ; } if ( ! \ in_array ( $ realPath , static :: $ helpersPath [ $ class ] , true ) ) { static :: $ helpersPath [ $ class ] [ ] = $ realPath ; } }
Add helper path

@param  string $path

@return void
@throws CommonException
Add helper path