Completed
Push — master ( b800f8...5894ab )
by Greg
05:57
created
src/BrowserMob.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         // start a new BrowserMobProxy session
40 40
         if (isset($this->config['autostart'])) {
41
-            if (true === (bool)$this->config['autostart']) {
41
+            if (true === (bool) $this->config['autostart']) {
42 42
                 $this->openProxy();
43 43
             }
44 44
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     {
49 49
         try {
50 50
             $response = Requests::get('http://'.$url.'/proxy/');
51
-        } catch(\Exception $e) {
51
+        } catch (\Exception $e) {
52 52
             throw new ModuleException(__CLASS__, $e->getMessage());
53 53
         }
54 54
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                         case 0: // fix a weird PHP behaviour: when $config === 0 then go in 'blacklist'
67 67
                             break;
68 68
                         case 'blacklist':
69
-                            $response = $this-_blacklist($data);
69
+                            $response = $this - _blacklist($data);
70 70
                             break;
71 71
                         case 'whitelist':
72 72
                             $response = $this->_whitelist($data);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                             // do nothing
91 91
                     }
92 92
                 }
93
-            } catch(\Exception $e) {
93
+            } catch (\Exception $e) {
94 94
                 throw new ModuleConfigException(__CLASS__, $e->getMessage());
95 95
             }
96 96
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 $capabilities = $this->config;
112 112
             }
113 113
             $this->__setProxyCapabilities($capabilities);
114
-        } catch(\Exception $e) {
114
+        } catch (\Exception $e) {
115 115
             throw new ModuleException(__CLASS__, $e->getMessage());
116 116
         }
117 117
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     {
121 121
         try {
122 122
             $this->bmp->close();
123
-        } catch(\Exception $e) {
123
+        } catch (\Exception $e) {
124 124
             throw new ModuleException(__CLASS__, $e->getMessage());
125 125
         }
126 126
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     {
130 130
         try {
131 131
             $response = $this->bmp->newHar();
132
-        } catch(\Exception $e) {
132
+        } catch (\Exception $e) {
133 133
             throw new ModuleException(__CLASS__, $e->getMessage());
134 134
         }
135 135
         return $response->success;
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         try {
141 141
             $response = $this->bmp->newPage();
142
-        } catch(\Exception $e) {
142
+        } catch (\Exception $e) {
143 143
             throw new ModuleException(__CLASS__, $e->getMessage());
144 144
         }
145 145
         return $response->success;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     {
150 150
         try {
151 151
             return $this->bmp->har;
152
-        } catch(\Exception $e) {
152
+        } catch (\Exception $e) {
153 153
             throw new ModuleException(__CLASS__, $e->getMessage());
154 154
         }
155 155
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         try {
160 160
             $har = $this->bmp->getLimit();
161
-        } catch(\Exception $e) {
161
+        } catch (\Exception $e) {
162 162
             throw new ModuleException(__CLASS__, $e->getMessage());
163 163
         }
164 164
     }
Please login to merge, or discard this patch.