<commit_before><?php

namespace Pippin;

use Illuminate\Support\ServiceProvider;

use Pippin\IPNValidator;

final class PayPalIPNServiceProvider extends ServiceProvider {

	private function environmentFromConfig() {
		$appEnvironment = app()->environment();
		$sandboxEnvironments = config('pippin.sandbox_environments');
		if (in_array($appEnvironment, $sandboxEnvironments)) {
			return INPValidator::SANDBOX;
		}

		return INPValidator::PRODUCTION;
	}
<commit_msg>Use IPNEnvironment, since that has the constants.<commit_after><?php

namespace Pippin;

use Illuminate\Support\ServiceProvider;

use Pippin\IPNValidator;
use Pippin\IPNEnvironment;

final class PayPalIPNServiceProvider extends ServiceProvider {

	private function environmentFromConfig() {
		$appEnvironment = app()->environment();
		$sandboxEnvironments = config('pippin.sandbox_environments');
		if (in_array($appEnvironment, $sandboxEnvironments)) {
			return IPNEnvironment::SANDBOX;
		}

		return IPNEnvironment::PRODUCTION;
	}

{'fraction_non_alphanumeric': 0.0999000999000999, 'fraction_numerical': 0.0, 'mean_word_length': 6.767441860465116, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6121624', 'n_tokens_mistral': 326, 'n_tokens_neox': 295, 'n_words': 60}