Code Duplication    Length = 11-12 lines in 2 locations

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

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