original_string: public function getCurrentComponentVersion($name)
      {
          try {
              $currentVersion = Option::get(self::getNameInOptionTable($name));
          } catch (\Exception $e) {
              // mysql error 1146: table doesn't exist
              if (Db::get()->isErrNo($e, '1146')) {
                  // case when the option table is not yet created (before 0.2.10)
                  $currentVersion = false;
              } else {
                  // failed for some other reason
                  throw $e;
              }
          }
  
          return $currentVersion;
      }
code: public function getCurrentComponentVersion($name)
      {
          try {
              $currentVersion = Option::get(self::getNameInOptionTable($name));
          } catch (\Exception $e) {
              // mysql error 1146: table doesn't exist
              if (Db::get()->isErrNo($e, '1146')) {
                  // case when the option table is not yet created (before 0.2.10)
                  $currentVersion = false;
              } else {
                  // failed for some other reason
                  throw $e;
              }
          }
  
          return $currentVersion;
      }
code_tokens: public function getCurrentComponentVersion ( $ name ) { try { $ currentVersion = Option :: get ( self :: getNameInOptionTable ( $ name ) ) ; } catch ( \ Exception $ e ) { // mysql error 1146: table doesn't exist if ( Db :: get ( ) -> isErrNo ( $ e , '1146' ) ) { // case when the option table is not yet created (before 0.2.10) $ currentVersion = false ; } else { // failed for some other reason throw $ e ; } } return $ currentVersion ; }
docstring: Returns the currently installed version of a Piwik component.
  
  @param string $name The component name. Eg, a plugin name, `'core'` or dimension column name.
  @return string A semantic version.
  @throws \Exception
docstring_tokens: Returns the currently installed version of a Piwik component .