Registers a node fix.

@since 5.0.0

@param Node_Fix $fix   Required.
@param int      $group Required. Only the constants CHARACTERS, SPACING_PRE_WORDS, SPACING_POST_WORDS, HTML_INSERTION are valid.

@throws \InvalidArgumentException Group is invalid.
493129
public function register_node_fix( Node_Fix $fix, $group ) {
		if ( isset( $this->node_fixes[ $group ] ) ) {
			$this->node_fixes[ $group ][] = $fix;
		} else {
			throw new \InvalidArgumentException( "Invalid fixer group $group." );
		}
	}
1112473
protected function registerGroup($group = null, $action = [])
    {
        if ($group !== null) {
            $this->group = $group['action'];
        } elseif (is_array($action) && isset($action['_group'])) {
            $groups = RouteCollector::getGroups();
            $group = $action['_group'];
            $this->group = isset($groups[$group]) ? $groups[$group] : null;
        }
    }
71331
public function patch(string $uriPath, callable $handler, array $parameters = []): GroupInterface
    {
        return $this->method('PATCH', $uriPath, $handler, $parameters);
    }
396616
private function registerGroupChange($custId, $groupIdOld, $groupIdNew)
    {
        $data = new EChangeGroup();
        $data->setCustomerRef($custId);
        $data->setGroupOld($groupIdOld);
        $data->setGroupNew($groupIdNew);
        $dateChanged = $this->hlpDate->getUtcNowForDb();
        $data->setDateChanged($dateChanged);
        $this->daoChangeGroup->create($data);
    }
1223603
protected void setGroup(String group) {
    for (INodeHardLinkFile linkedFile : linkedFiles) {
      linkedFile.setGroup(group, false);
    }
  }
347758
function addToGroup($group)
    {
        $this->_api->doRequest("PUT", "{$group->getBaseApiPath()}/contacts/{$this->id}");               
        $this->_group_ids_set[$group->id] = true;        
    }
1351808
protected function appendToGroup($groupHeader, $text, $pattern) {
        $this->groups[$groupHeader][] = trim(preg_replace($pattern, '', $text));
    }
1221099
function it_compiles_nodes_using_a_generic_solution($node)
    {
        $node->compile($this)->will(function ($args) {
            $args[0]->write('echo $message');
        });

        $this->repr($node)->getSource()->shouldMatch('/echo \$message/');
    }
191599
public function flush($locale, $group, $namespace)
    {
        $key = $this->getKey($locale, $group, $namespace);
        $this->store->tags([$key])->flush();
    }
209809
public function registerGroup()
    {
        $app = $this->app;

        $app->bind('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface', function($app)
        {
            return new GroupRepository($app['sentry'], $app['events']);
        });

        $app->bind('Stevemo\Cpanel\Group\Form\GroupFormInterface', function($app)
        {
            return new GroupForm(
                new GroupValidator($app['validator'], new MessageBag),
                $app->make('Stevemo\Cpanel\Group\Repo\CpanelGroupInterface')
            );
        });
    }
1038411
public function register( $option_group ) {

		// Register rendering callbacks only for non-grouped controls.
		if ( empty( $this->grouped_with ) ) {
			\add_settings_field( $this->get_id(), $this->short, [ $this, 'render' ], $option_group . $this->tab_id, $this->section, $this->settings_args );
		}
	}
215338
public function addResourceGroup($groupName, array $resources) {
        $this->validateResourceGroupName($groupName);

        if ($this->resourceGroupExists($groupName)) {
            throw new InvalidArgumentException(
                'Resource group with name "' . $groupName . '" already exists'
            );
        }

        return $this->editResourceGroup($groupName, $resources);
    }
921988
public function resolveGrouping(NodeContract $node)
    {
        if ($node->countChildren() === 0) {
            return;
        }

        foreach ($node->getChildren() as $child) {
            $this->resolveGrouping($child);
        }

        $p = 0;
        $last_opening = null;

        foreach ($node->getChildren() as $n => $child) {
            if ($child instanceof Nodes\GroupOpeningNode) {
                ++$p;
                $last_opening = $n;
            }

            if ($child instanceof Nodes\GroupClosingNode) {
                --$p;
                // A group has found. Close and re-resolve

                if ($last_opening === null) {
                    throw new Exceptions\QuerySyntaxException('Unexpected closing bracket: '.$node->getRoot()->getValue());
                }

                $new_node = new $this->node();

                $children = $node->getChildrenBetweenIndexes((int) $last_opening, $n);
                $node->removeChildren($children);
                $new_node->addChildren($children);

                $new_node->removeChildByIndex(0);
                $new_node->removeChildByIndex($new_node->countChildren() - 1);
                $node->addChildBeforeNodeByIndex($new_node, (int) $last_opening);

                if ($node->getParent() !== null) {
                    $this->resolveGrouping($node->getParent());
                }

                return;
            }
        }

        if ($p > 0) {
            throw new Exceptions\QuerySyntaxException('Expected closing bracket: '.$node->getRoot()->getValue());
        }
    }
478603
public function addGroup($groupName, $nameSuffixes) {
    // @todo More performant dedicated implementation.
    foreach ($nameSuffixes as $suffix) {
      $this->addName($groupName . '.' . $suffix);
    }
  }
1212058
public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
1224675
public function onNodePrepare(NodeEvent $event)
    {
        $node = $event->getNode();

        if (!empty($node->group_id)) {
            return; // Someone took care of this for us
        }

        $node->group_id = $this->findMostRelevantGroupId();
        $node->is_ghost = (int)$this->findMostRelevantGhostValue($node);
    }
971060
public function setGroupName($groupName)
    {
        $group = posix_getgrnam($groupName);
        if (! isset($group['gid'])) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid group name', $groupName));
        }

        $this->setGroupId($group['gid']);
    }