original_string: protected static function _getSearchDirectories()
      {
          $className = get_called_class();
          $class = new ReflectionClass($className);
          $basedir = dirname($class->getFilename());
          $depth = substr_count($className, '\\')
              ?: substr_count($className, '_');
  
          return array(
              /* Composer */
              $basedir . str_repeat('/..', $depth) . '/data/locale',
              /* Source */
              $basedir . str_repeat('/..', $depth + 1) . '/locale'
          );
      }
code: protected static function _getSearchDirectories()
      {
          $className = get_called_class();
          $class = new ReflectionClass($className);
          $basedir = dirname($class->getFilename());
          $depth = substr_count($className, '\\')
              ?: substr_count($className, '_');
  
          return array(
              /* Composer */
              $basedir . str_repeat('/..', $depth) . '/data/locale',
              /* Source */
              $basedir . str_repeat('/..', $depth + 1) . '/locale'
          );
      }
code_tokens: protected static function _getSearchDirectories ( ) { $ className = get_called_class ( ) ; $ class = new ReflectionClass ( $ className ) ; $ basedir = dirname ( $ class -> getFilename ( ) ) ; $ depth = substr_count ( $ className , '\\' ) ? : substr_count ( $ className , '_' ) ; return array ( /* Composer */ $ basedir . str_repeat ( '/..' , $ depth ) . '/data/locale' , /* Source */ $ basedir . str_repeat ( '/..' , $ depth + 1 ) . '/locale' ) ; }
docstring: Get potential locations for the locale directory.
  
  @var array List of directories
docstring_tokens: Get potential locations for the locale directory .