Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/BrowserMob.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function _initialize()

// start a new BrowserMobProxy session
if (isset($this->config['autostart'])) {
if (true === (bool)$this->config['autostart']) {
if (true === (bool) $this->config['autostart']) {
$this->openProxy();
}
}
Expand All @@ -49,7 +49,7 @@ protected static function __pingProxy($url)
{
try {
$response = Requests::get('http://'.$url.'/proxy/');
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleException(__CLASS__, $e->getMessage());
}

Expand Down Expand Up @@ -91,7 +91,7 @@ protected function __setProxyCapabilities($capabilities)
// do nothing
}
}
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleConfigException(__CLASS__, $e->getMessage());
}

Expand All @@ -112,7 +112,7 @@ public function openProxy($capabilities = null)
$capabilities = $this->config;
}
$this->__setProxyCapabilities($capabilities);
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleException(__CLASS__, $e->getMessage());
}
}
Expand All @@ -121,7 +121,7 @@ public function closeProxy()
{
try {
$this->bmp->close();
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleException(__CLASS__, $e->getMessage());
}
}
Expand All @@ -130,7 +130,7 @@ public function startHar()
{
try {
$response = $this->bmp->newHar();
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleException(__CLASS__, $e->getMessage());
}
return $response->success;
Expand All @@ -140,7 +140,7 @@ public function startPage()
{
try {
$response = $this->bmp->newPage();
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleException(__CLASS__, $e->getMessage());
}
return $response->success;
Expand All @@ -150,7 +150,7 @@ public function getHar()
{
try {
return $this->bmp->har;
} catch(\Exception $e) {
} catch (\Exception $e) {
throw new ModuleException(__CLASS__, $e->getMessage());
}
}
Expand Down