` ou, na falta dela, `LOGGED_IN_`. * * @param string $type `KEY` ou `SALT`. */ private static function secret( string $type ): string { foreach ( array( 'RESGATA_ENCRYPTION_' . $type, 'LOGGED_IN_' . $type ) as $name ) { $value = defined( $name ) ? constant( $name ) : ''; if ( is_string( $value ) && '' !== $value && self::PLACEHOLDER !== $value ) { return $value; } } return ''; } }