{REPLACE_ME!}
@return string
@throws \Exception
966993
public function buildFieldsTypes() {
        $this->getAbstractClass()->addUse('Bullhorn\FastRest\Api\Models\ApiInterface');

        $content = 'return [';
        foreach($this->getFields() as $key => $field) {
            if($key > 0) {
                $content .= ',';
            }

            $constantName = 'FIELD_TYPE_' . strtoupper(preg_replace('@([A-Z])@', '_\\0', lcfirst($field->getType())));
            $content .= "\n\t\t\t" . '\'' . $field->getShortName() . '\'=>ApiInterface::' . $constantName;
        }
        $content .= "\n\t\t" . '];';

        $method = new Object\Method();
        $method->setAccess('public');
        $method->setName('getFieldTypes');
        $method->setReturnType('string[]');
        $method->setContent($content);
        $this->getAbstractClass()->addMethod($method);

        return $content;
    }
704510
public function take(): string
    {
        if ($this->atEnd()) {
            $this->lastTaken = self::END;

            return self::END;
        }

        $char = $this->input[$this->index];

        $this->index += 1;

        $this->lastTaken = $char;

        return $char;
    }
334113
protected function getFormalSalutation()
    {
        $contact = $this->application->getContact();
        $name    = $contact->getLastName();
        $gender  = $contact->getGender();
        $translator = $this->getTranslator();
        
        $salutation = 'male' == $gender
                    ? $translator->translate('Dear Mr. %s')
                    : $translator->translate('Dear Ms. %s');
        
        return sprintf($salutation, $name);
    }
920251
public function update()
    {
        $args = func_get_args();
        $user = null;

        if (count($args) == 1 && $args[0] instanceof User) {
            $user = $args[0];
        } elseif (count($args) == 2 && !empty($args[0]) && is_array($args[1])) {
            $user = $this->find($args[0]);
            $user->fill($args[1]);
        }

        if ($user instanceof User) {
            if ($this->fireEvent('updating', array($user)) === false) {
                return false;
            }

            $user->setCaller($this);
            $user->save();

            $this->fireEvent('updated', array($user));

            return $user;
        }

        throw new Exception(sprintf(Exception::CANT_UPDATE_MODEL,
            'Subbly\\Model\\User',
            $this->name()
        ));
    }
1370910
public function replaceWith()
    {
        $removed_nodes = new self();

        $this->importNodes(\func_get_args(), function ($node, $imported_node) use (&$removed_nodes) {
            if ($node->nextSibling) {
                $node->parentNode->insertBefore($imported_node, $node->nextSibling);
            } else { // node is last, so there is no next sibling to insert before
                $node->parentNode->appendChild($imported_node);
            }
            $removed_nodes->addDomNode($node);
            $node->parentNode->removeChild($node);
        });

        foreach (\func_get_args() as $new_content) {
            if (!\is_string($new_content)) {
                self::create($new_content)->remove();
            }
        }

        return $removed_nodes;
    }
140466
public function getName()
    {
        if (! isset($this->name) || empty($this->name)) {
            throw new Exception\MissingPragmaNameException();
        }

        return $this->name;
    }
1350250
public function escape()
  {
    foreach(TeamSpeak3::getEscapePatterns() as $search => $replace)
    {
      $this->string = str_replace($search, $replace, $this->string);
    }

    return $this;
  }
1203696
public function replace()
	{
		foreach($this->matches as $match)
		{
			$value = $this->extractValue($match);
			$this->insertValue($value, $match['raw']);
		}
	}
1315407
public function searchAndReplace()
	{
		$this->search();

		$this->replacement = new Replacement($this->formatted, $this->str);

		$this->replacement->replace();
		
		return $this->replacement->getStr();
	}
1354546
public function me(): User
    {
        // Result is different - denormalize by hand
        $data = $this->getClient()->call(null, null, self::ENDPOINT, null, false, 'GET');

        return $this->getClient()->denormalizeObject(User::class, [$data], false);
    }
216372
public function me()
    {
        $this->loadModel('User.Users');
        $user = $this->Users->get(user()->id, ['conditions' => ['status' => 1]]);
        $languages = LocaleToolbox::languagesList();

        if ($this->request->data()) {
            $user->accessible(['id', 'username', 'roles', 'status'], false);
            $user = $this->Users->patchEntity($user, $this->request->data);
            if ($this->Users->save($user)) {
                $this->Flash->success(__d('user', 'User information successfully updated!'), ['key' => 'user_profile']);
                $this->redirect($this->referer());
            } else {
                $this->Flash->danger(__d('user', 'User information could not be saved, please check your information.'), ['key' => 'user_profile']);
            }
        }

        $this->title(__d('user', 'Account'));
        $this->set(compact('user', 'languages'));
        $this->viewMode('full');
    }
659696
public static function getFormatsToIsoReplacements()
    {
        static $replacements = null;

        if ($replacements === null) {
            $replacements = [
                'd' => true,
                'D' => 'ddd',
                'j' => true,
                'l' => 'dddd',
                'N' => true,
                'S' => function ($date) {
                    $day = $date->rawFormat('j');

                    return str_replace("$day", '', $date->isoFormat('Do'));
                },
                'w' => true,
                'z' => true,
                'W' => true,
                'F' => 'MMMM',
                'm' => true,
                'M' => 'MMM',
                'n' => true,
                't' => true,
                'L' => true,
                'o' => true,
                'Y' => true,
                'y' => true,
                'a' => 'a',
                'A' => 'A',
                'B' => true,
                'g' => true,
                'G' => true,
                'h' => true,
                'H' => true,
                'i' => true,
                's' => true,
                'u' => true,
                'v' => true,
                'E' => true,
                'I' => true,
                'O' => true,
                'P' => true,
                'Z' => true,
                'c' => true,
                'r' => true,
                'U' => true,
            ];
        }

        return $replacements;
    }
217246
protected function prepareReplacements(Exception $exception)
    {
        // Run parent
        $replacements = parent::prepareReplacements($exception);

        // Format error message field keys
        if ($exception instanceof \Illuminate\Validation\ValidationException) {
            $replacements = $this->formatCaseOfValidationMessages($replacements);
        }

        // Format response object keys
        $updatedFormat = [];
        foreach ($this->format as $key => $value) {
            $updatedFormat[APIBoilerplate::formatKeyCaseAccordingToReponseFormat($key)] = $value;
        }
        $this->format = $updatedFormat;

        return $replacements;
    }
1197272
protected function replaceParamInSql()/*# : string */
    {
        $count = 0;
        $params = $this->params;
        return preg_replace_callback(
            '/\?|\:\w+/',
            function ($m) use ($count, $params) {
                if ('?' === $m[0]) {
                    $res = $params[$count++];
                } else {
                    $res = isset($params[$m[0]]) ? $params[$m[0]] :
                        $params[substr($m[0], 1)];
                }
                return $this->getDriver()->quote($res);
            },
            $this->sql
        );
    }
1355707
protected function getRelationshipsReplace()
    {
        $totalCount = $this->getTotalRelevantRelationshipCount();

        if ( ! $totalCount) return '';

        $replace = "\n" . $this->getRelationshipsIntro();


        $replace .= $this->getReplaceForNormalRelationships()
                  . $this->getReplaceForSpecialRelationships();

        return $replace;
    }
661819
public function removeme()
    {
        // existing user ?
        $oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
        if ($oUser->load(\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('uid'))) {
            $oUser->getNewsSubscription()->setOptInStatus(0);

            // removing from group ..
            $oUser->removeFromGroup('oxidnewsletter');

            $this->_iNewsletterStatus = 3;
        }
    }
127643
public String getReplace() {
    if (GrammarError_Type.featOkTst
        && ((GrammarError_Type) jcasType).casFeat_replace == null)
      jcasType.jcas.throwFeatMissing("replace", "cogroo.uima.GrammarError");
    return jcasType.ll_cas.ll_getStringValue(addr,
        ((GrammarError_Type) jcasType).casFeatCode_replace);
  }