@@ -54,12 +54,12 @@ discard block |
||
| 54 | 54 | $pc = get_http_var('pc'); |
| 55 | 55 | $pc = preg_replace('#[^a-z0-9]#i', '', $pc); |
| 56 | 56 | if (validate_postcode($pc)) { |
| 57 | - twfy_debug ('MP', "MP lookup by postcode"); |
|
| 57 | + twfy_debug('MP', "MP lookup by postcode"); |
|
| 58 | 58 | $constituency = strtolower(Utility\Postcode::postcodeToConstituency($pc)); |
| 59 | 59 | if ($constituency == "connection_timed_out") { |
| 60 | 60 | throw new \Exception('Sorry, we couldn’t check your postcode right now, as our postcode lookup server is under quite a lot of load.'); |
| 61 | 61 | } elseif ($constituency == "") { |
| 62 | - twfy_debug ('MP', "Can't display an MP, as submitted postcode didn't match a constituency"); |
|
| 62 | + twfy_debug('MP', "Can't display an MP, as submitted postcode didn't match a constituency"); |
|
| 63 | 63 | throw new \Exception('Sorry, ' . _htmlentities($pc) . ' isn’t a known postcode'); |
| 64 | 64 | } else { |
| 65 | 65 | // Generate the Member object |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | } else { |
| 73 | - twfy_debug ('MP', "Can't display an MP because the submitted postcode wasn't of a valid form."); |
|
| 73 | + twfy_debug('MP', "Can't display an MP because the submitted postcode wasn't of a valid form."); |
|
| 74 | 74 | throw new \Exception('Sorry, ' . _htmlentities($pc) . ' isn’t a valid postcode'); |
| 75 | 75 | } |
| 76 | 76 | } catch (Exception $e) { |