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;
    }
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;
    }
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 ; }
Check if a group is an aspiring translators group. If so returns the associated locale entity.

@param Group $group

@return LocaleEntity|null
Check if a group is an aspiring translators group . If so returns the associated locale entity .