Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 94622e9

Browse files
committed
Rename Webview to WebView
1 parent b043c93 commit 94622e9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Browser.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class Browser
7474
/**
7575
* @var bool
7676
*/
77-
private $isFacebookWebview = false;
77+
private $isFacebookWebView = false;
7878

7979
/**
8080
* @var bool
@@ -236,13 +236,13 @@ public function isChromeFrame()
236236
}
237237

238238
/**
239-
* @param bool $isFacebookWebview
239+
* @param bool $isFacebookWebView
240240
*
241241
* @return $this
242242
*/
243-
public function setIsFacebookWebview($isFacebookWebview)
243+
public function setIsFacebookWebView($isFacebookWebView)
244244
{
245-
$this->isFacebookWebview = (bool) $isFacebookWebview;
245+
$this->isFacebookWebView = (bool) $isFacebookWebView;
246246

247247
return $this;
248248
}
@@ -252,21 +252,21 @@ public function setIsFacebookWebview($isFacebookWebview)
252252
*
253253
* @return bool
254254
*/
255-
public function getIsFacebookWebview()
255+
public function getIsFacebookWebView()
256256
{
257257
if (!isset($this->name)) {
258258
BrowserDetector::detect($this, $this->getUserAgent());
259259
}
260260

261-
return $this->isFacebookWebview;
261+
return $this->isFacebookWebView;
262262
}
263263

264264
/**
265265
* @return bool
266266
*/
267-
public function isFacebookWebview()
267+
public function isFacebookWebView()
268268
{
269-
return $this->getIsFacebookWebview();
269+
return $this->getIsFacebookWebView();
270270
}
271271

272272
/**

src/BrowserDetector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function detect(Browser $browser, UserAgent $userAgent = null)
8787
self::$browser->setVersion(Browser::VERSION_UNKNOWN);
8888

8989
self::checkChromeFrame();
90-
self::checkFacebookWebview();
90+
self::checkFacebookWebView();
9191

9292
foreach (self::$browsersList as $browserName) {
9393
$funcName = self::FUNC_PREFIX . $browserName;
@@ -121,10 +121,10 @@ public static function checkChromeFrame()
121121
*
122122
* @return bool
123123
*/
124-
public static function checkFacebookWebview()
124+
public static function checkFacebookWebView()
125125
{
126126
if (strpos(self::$userAgentString, 'FBAV') !== false) {
127-
self::$browser->setIsFacebookWebview(true);
127+
self::$browser->setIsFacebookWebView(true);
128128

129129
return true;
130130
}

0 commit comments

Comments
 (0)