src/Composer/ModuleFinder.php
private function validateGeneralConfigurationSectionInExtra(array $extra)
    {
        if (!isset($extra['phplist/core'])) {
            return;
        }
        $this->validatePhpListSectionInExtra($extra);

        if (!isset($extra['phplist/core']['configuration'])) {
            return;
        }
        if (!is_array($extra['phplist/core']['configuration'])) {
            throw new \InvalidArgumentException(
                'The extras.phplist/core.configuration section in the composer.json must be an array.',
                1508165934
            );
        }
    }
private function validateGeneralConfigurationSectionInExtra(array $extra)
    {
        if (!isset($extra['phplist/core'])) {
            return;
        }
        $this->validatePhpListSectionInExtra($extra);

        if (!isset($extra['phplist/core']['configuration'])) {
            return;
        }
        if (!is_array($extra['phplist/core']['configuration'])) {
            throw new \InvalidArgumentException(
                'The extras.phplist/core.configuration section in the composer.json must be an array.',
                1508165934
            );
        }
    }
private function validateGeneralConfigurationSectionInExtra ( array $ extra ) { if ( ! isset ( $ extra [ 'phplist/core' ] ) ) { return ; } $ this -> validatePhpListSectionInExtra ( $ extra ) ; if ( ! isset ( $ extra [ 'phplist/core' ] [ 'configuration' ] ) ) { return ; } if ( ! is_array ( $ extra [ 'phplist/core' ] [ 'configuration' ] ) ) { throw new \ InvalidArgumentException ( 'The extras.phplist/core.configuration section in the composer.json must be an array.' , 1508165934 ) ; } }
Validates the configuration in the "extra" section of the composer.json of a module.

@param array $extra

@return void

@throws \InvalidArgumentException if $extra has an invalid routes configuration
Validates the configuration in the extra section of the composer . json of a module .