Shall register a new section in the registry
@return array
429249
public function init()
    {
        $this->registryTableExists();

        if (empty($this->registry[$this->section])) {

            $this->registry[$this->section] = $this->getContent();
        }

        return $this->registry[$this->section];
    }
1231104
public function get_registry() {
		if ( ! isset( $this->registry ) ) {
			$this->registry = new Default_Registry( $this->get_hyphenator_cache() );
		} elseif ( $this->update_registry_cache ) {
			$this->registry->update_hyphenator_cache( $this->get_hyphenator_cache() );
			$this->update_registry_cache = false;
		}

		return $this->registry;
	}
645062
public function isRegistered($identifier)
    {
        $this->verifySectionName($identifier);

        return array_key_exists($identifier, $this->registry[$this->section]);
    }
669171
public function registerServerNamespace()
    {
        foreach ($this->customComponents as $ns => $componentDir) {
            if (is_int($ns)) {
                $ns = $componentDir;
                $componentDir = ComposerHelper::getDirByNamespace($ns);
                $ns = rtrim($ns, "\\");
                $componentDir = rtrim($componentDir, "/");
            }

            $this->componentNamespaces[] = $ns;
            $componentDir = alias($componentDir);

            foreach ($this->serverScan as $dir) {
                $scanDir = $componentDir . DS . $dir;
                if (!is_dir($scanDir)) {
                    continue;
                }

                $scanNs = $ns . "\\" . $dir;
                $this->scanNamespaces[$scanNs] = $scanDir;
            }
        }
    }
922833
public function getConfigurationRegistry()
    {
        if (null === $this->configurationRegistry) {
            $this->configurationRegistry = new Configuration\ConfigurationRegistry();
        }

        return $this->configurationRegistry;
    }
411641
public function toArray()
    {
        $ini = [];

        foreach ($this->sections as $sectionName => $section) {
            $ini[$sectionName] = $section->getProperties();
        }

        return $ini;
    }
1270979
static public function registerDefaults() {
		if (self::$registeredStatic) {
			require_once __DIR__ . '/Exceptions/RegisterationFailed.php';
			throw new RegistrationFailed('Is already registered');
		}
		
		$loader = new static();
		$loader->registerNamespace('ZExt', __DIR__ . '/..');
		$loader->register();
		
		self::$registeredStatic = true;
		
		return $loader;
	}
459207
public function register()
    {
        $tokens    = array();
        $translate = array();
        foreach ($this->newKeywords as $token => $versions) {
            if (\defined($token)) {
                $tokens[] = constant($token);
            }
            if (isset($versions['content'])) {
                $translate[strtolower($versions['content'])] = $token;
            }
        }

        /*
         * Deal with tokens not recognized by the PHP version the sniffer is run
         * under and (not correctly) compensated for by PHPCS.
         */
        if (empty($translate) === false) {
            $this->translateContentToToken = $translate;
            $tokens[] = \T_STRING;
        }

        return $tokens;
    }
1244019
protected function sectionYii()
	{
		return [
			'Version'=>Yii::getVersion(),
			'YII_DEBUG'=>$this->valueBool(YII_DEBUG),
			'YII_ENV'=>Html::tag('code', YII_ENV),
			'YII_ENV_DEV'=>$this->valueBool(YII_ENV_DEV),
			'YII_ENV_PROD'=>$this->valueBool(YII_ENV_PROD),
		];
	}
907115
public function register()
    {
        $this->allowedModifiers           = Tokens::$scopeModifiers;
        $this->allowedModifiers[\T_FINAL] = \T_FINAL;

        $tokens = $this->targetedTokens;

        if (\defined('T_ANON_CLASS')) {
            $tokens[] = \T_ANON_CLASS;
        }

        return $tokens;
    }
418501
public function getRegistryNames() : array
    {
        $names = [];
        foreach ($this->getRegistry() as $registryName=>$registryValue)
        {
            $names[] = $registryName;
        }

        return $names;
    }
1176026
public function register()
    {
        $parameters = [
            'name' => $this->getSingular(),
            'id' => $this->getSlug(),
        ];

        return register_sidebar(array_merge($this->getArguments(), $parameters));
    }
594190
public function get_valid_sections() {
		if($this->isInitialized === true) {
			if(is_array($this->fullConfig) && count($this->fullConfig)) {
				$retval = array_keys($this->fullConfig);
			}
			else {
				throw new exception(__METHOD__ .": no sections defined, probably invalid configuration");
			}
		}
		else {
			throw new exception(__METHOD__ .": not initialized");
		}
		
		return($retval);
	}
1182367
public function register()
    {
        // Set up a list of tokens to disregard when determining whether the list() is empty.
        // Only needs to be set up once.
        $this->ignoreTokens                       = Tokens::$emptyTokens;
        $this->ignoreTokens[\T_COMMA]             = \T_COMMA;
        $this->ignoreTokens[\T_OPEN_PARENTHESIS]  = \T_OPEN_PARENTHESIS;
        $this->ignoreTokens[\T_CLOSE_PARENTHESIS] = \T_CLOSE_PARENTHESIS;

        return array(
            \T_LIST,
            \T_OPEN_SHORT_ARRAY,
        );
    }
1183071
protected function getRegistrations() {
        if (!$this->_registrations) {
            $this->_registrations = new AuthTypeRegistrationsList(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['domainSid']
            );
        }

        return $this->_registrations;
    }
1070115
protected static function getRegistry()
    {
        if (self::$registry === null) {
            self::$registry = Doozr_Registry::getInstance();
        }

        return self::$registry;
    }
170649
protected function getRegistrationsFields() {

		$tabset = new TabSet("Registrations");

		//common config
		$regGridFieldConfig = GridFieldConfig_RecordEditor::create()
			->removeComponentsByType('GridFieldAddNewButton')
			->removeComponentsByType('GridFieldDeleteAction')
			->addComponents(
				new GridFieldButtonRow('after'),
				new GridFieldPrintButton('buttons-after-left'),
				new GridFieldExportButton('buttons-after-left')
			);

		//complete
		$registrationsGrid = new GridField('Registrations',
			_t('Registripe.REGISTRATIONS', 'Registrations'),
			$this->getCompletedRegistrations()
				->sort("LastEdited", "DESC"),
			$regGridFieldConfig
		);
		$tabset->push(new Tab("Completed", $registrationsGrid));

		//incomplete
		$incomplete = $this->getIncompleteRegistrations()
						->sort("LastEdited", "DESC");
		if($incomplete->exists()){
			$incompleteGrid = new GridField('IncompleteRegistrations',
				_t('Registripe.INCOMPLETE', 'Incomplete'),
				$incomplete,
				$regGridFieldConfig
			);
			$tabset->push(new Tab("Incomplete", $incompleteGrid));
		}		

		//cancelled
		$cancelled = $this->getCancelledRegistrations()
						->sort("LastEdited", "DESC");
		if($cancelled->exists()){
			$cancelledGrid = new GridField('CancelledRegistrations',
				_t('Registripe.CANCELLATIONS', 'Cancellations'),
				$cancelled,
				$regGridFieldConfig
			);
			$tabset->push(new Tab("Cancelled", $cancelledGrid));
		}

		return $tabset;
	}