Code Duplication    Length = 15-15 lines in 2 locations

src/Authentication/DI/AuthenticationExtension.php 1 location

@@ 31-45 (lines=15) @@
28
	/**
29
	 * {@inheritDoc}
30
	 */
31
	public function startup(): void
32
	{
33
		parent::startup();
34
35
		if (!$this->config->enabled) {
36
			$this->stopPropagation();
37
		}
38
39
		if (!is_subclass_of($this->sharedData[CommonExtension::SHARED_DATA_USER_CLASS_NAME], UserInterface::class, TRUE)) {
40
			throw new ConfigurationException(sprintf(
41
				'Your User entity must implement interface %s',
42
				UserInterface::class
43
			));
44
		}
45
	}
46
47
	/**
48
	 * {@inheritDoc}

src/ForgotPassword/DI/ForgotPasswordExtension.php 1 location

@@ 50-64 (lines=15) @@
47
	/**
48
	 * {@inheritDoc}
49
	 */
50
	public function startup(): void
51
	{
52
		parent::startup();
53
54
		if (!$this->config->enabled) {
55
			$this->stopPropagation();
56
		}
57
58
		if (!is_subclass_of($this->sharedData[CommonExtension::SHARED_DATA_USER_CLASS_NAME], UserInterface::class, TRUE)) {
59
			throw new ConfigurationException(sprintf(
60
				'Your User entity must implement interface %s',
61
				UserInterface::class
62
			));
63
		}
64
	}
65
66
	/**
67
	 * {@inheritDoc}