original_string: public function decodeAspiringTranslatorsGroup(Group $group)
      {
          $result = null;
          $match = null;
          if (preg_match('/^\/' . preg_quote(self::GROUPNAME_ASPIRING_TRANSLATORS, '/') . '\/(.+)$/', $group->getGroupPath(), $match)) {
              $result = $this->app->make(LocaleRepository::class)->findApproved($match[1]);
          }
  
          return $result;
      }
code: public function decodeAspiringTranslatorsGroup(Group $group)
      {
          $result = null;
          $match = null;
          if (preg_match('/^\/' . preg_quote(self::GROUPNAME_ASPIRING_TRANSLATORS, '/') . '\/(.+)$/', $group->getGroupPath(), $match)) {
              $result = $this->app->make(LocaleRepository::class)->findApproved($match[1]);
          }
  
          return $result;
      }
code_tokens: public function decodeAspiringTranslatorsGroup ( Group $ group ) { $ result = null ; $ match = null ; if ( preg_match ( '/^\/' . preg_quote ( self :: GROUPNAME_ASPIRING_TRANSLATORS , '/' ) . '\/(.+)$/' , $ group -> getGroupPath ( ) , $ match ) ) { $ result = $ this -> app -> make ( LocaleRepository :: class ) -> findApproved ( $ match [ 1 ] ) ; } return $ result ; }
docstring: Check if a group is an aspiring translators group. If so returns the associated locale entity.
  
  @param Group $group
  
  @return LocaleEntity|null
docstring_tokens: Check if a group is an aspiring translators group . If so returns the associated locale entity .