@@ -653,7 +653,7 @@ |
||
| 653 | 653 | |
| 654 | 654 | public function isCheckuser() |
| 655 | 655 | { |
| 656 | - if($this->isCheckuserCache === null) { |
|
| 656 | + if ($this->isCheckuserCache === null) { |
|
| 657 | 657 | $this->isCheckuserCache = $this->checkuser == 1 || $this->oauthCanCheckUser(); |
| 658 | 658 | } |
| 659 | 659 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | 'bgpview' => 'https://bgpview.io/ip/%DATA%' |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | -if(!isset($_GET['tool']) |
|
| 16 | +if (!isset($_GET['tool']) |
|
| 17 | 17 | || !isset($toolList[$_GET['tool']]) |
| 18 | 18 | || !isset($_GET['data']) |
| 19 | 19 | ) |
@@ -70,12 +70,12 @@ |
||
| 70 | 70 | $database->commit(); |
| 71 | 71 | echo ". Committed txn.\n"; |
| 72 | 72 | } catch (Exception $ex) { |
| 73 | - echo ". Encountered exception: " . $ex->getMessage(). "\n"; |
|
| 73 | + echo ". Encountered exception: " . $ex->getMessage() . "\n"; |
|
| 74 | 74 | $database->rollBack(); |
| 75 | 75 | echo ". Rolled back txn\n"; |
| 76 | 76 | throw $ex; |
| 77 | 77 | } finally { |
| 78 | - if($database->hasActiveTransaction()){ |
|
| 78 | + if ($database->hasActiveTransaction()) { |
|
| 79 | 79 | $database->rollBack(); |
| 80 | 80 | echo ". Rolled back txn\n"; |
| 81 | 81 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $this->e = null; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function testFormatAsUsername() { |
|
| 22 | + public function testFormatAsUsername() { |
|
| 23 | 23 | // Happy path |
| 24 | 24 | $this->assertEquals($this->e->formatAsUsername("this"), "This"); |
| 25 | 25 | $this->assertEquals($this->e->formatAsUsername("1this"), "1this"); |