Summary: For consistency, a single space should separate `catch` and the following parenthetical expression.
Test Plan: Added test case.
Reviewers: epriestley, #blessed_reviewers
Reviewed By: epriestley, #blessed_reviewers
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D13389
do {
echo 1;
} while(true);
+
+try {} catch(Exception $ex) {}
~~~~~~~~~~
warning:2:1
warning:2:10
warning:13:3
warning:14:3
warning:24:3
+warning:26:8
~~~~~~~~~~
<?php
if ($x) {} else {}
do {
echo 1;
} while (true);
+
+try {} catch (Exception $ex) {}
case 'T_WHILE':
case 'T_DO':
case 'T_SWITCH':
+ case 'T_CATCH':
$after = $token->getNonsemanticTokensAfter();
if (empty($after)) {
$this->raiseLintAtToken(