Code Duplication    Length = 11-12 lines in 2 locations

lib/private/AppFramework/Http/Request.php 2 locations

@@ 537-548 (lines=12) @@
534
	 * @return bool
535
	 * @since 9.1.0
536
	 */
537
	public function passesStrictCookieCheck() {
538
		if(!$this->cookieCheckRequired()) {
539
			return true;
540
		}
541
542
		$cookieName = $this->getProtectedCookieName('nc_sameSiteCookiestrict');
543
		if($this->getCookie($cookieName) === 'true'
544
			&& $this->passesLaxCookieCheck()) {
545
			return true;
546
		}
547
		return false;
548
	}
549
550
	/**
551
	 * Checks if the lax cookie has been sent with the request if the request
@@ 557-567 (lines=11) @@
554
	 * @return bool
555
	 * @since 9.1.0
556
	 */
557
	public function passesLaxCookieCheck() {
558
		if(!$this->cookieCheckRequired()) {
559
			return true;
560
		}
561
562
		$cookieName = $this->getProtectedCookieName('nc_sameSiteCookielax');
563
		if($this->getCookie($cookieName) === 'true') {
564
			return true;
565
		}
566
		return false;
567
	}
568
569
570
	/**