original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: Add helper path
  
  @param  string $path
  
  @return void
  @throws CommonException
docstring_tokens: Add helper path