@@ -111,33 +111,33 @@ |
||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | switch ($tokens[$i]['code']) { |
| 114 | - case T_DOUBLE_COLON: |
|
| 115 | - $usedName = strtolower($tokens[($i - 1)]['content']); |
|
| 116 | - if ($usedName === $systemName) { |
|
| 117 | - // The included system was used, so it is fine. |
|
| 118 | - return; |
|
| 119 | - } |
|
| 120 | - break; |
|
| 121 | - case T_EXTENDS: |
|
| 122 | - $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1)); |
|
| 123 | - $className = strtolower($tokens[$classNameToken]['content']); |
|
| 124 | - if ($className === $systemName) { |
|
| 125 | - // The included system was used, so it is fine. |
|
| 126 | - return; |
|
| 127 | - } |
|
| 128 | - break; |
|
| 129 | - case T_IMPLEMENTS: |
|
| 130 | - $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1)); |
|
| 131 | - for ($x = ($i + 1); $x < $endImplements; $x++) { |
|
| 132 | - if ($tokens[$x]['code'] === T_STRING) { |
|
| 133 | - $className = strtolower($tokens[$x]['content']); |
|
| 134 | - if ($className === $systemName) { |
|
| 135 | - // The included system was used, so it is fine. |
|
| 136 | - return; |
|
| 114 | + case T_DOUBLE_COLON: |
|
| 115 | + $usedName = strtolower($tokens[($i - 1)]['content']); |
|
| 116 | + if ($usedName === $systemName) { |
|
| 117 | + // The included system was used, so it is fine. |
|
| 118 | + return; |
|
| 119 | + } |
|
| 120 | + break; |
|
| 121 | + case T_EXTENDS: |
|
| 122 | + $classNameToken = $phpcsFile->findNext(T_STRING, ($i + 1)); |
|
| 123 | + $className = strtolower($tokens[$classNameToken]['content']); |
|
| 124 | + if ($className === $systemName) { |
|
| 125 | + // The included system was used, so it is fine. |
|
| 126 | + return; |
|
| 127 | + } |
|
| 128 | + break; |
|
| 129 | + case T_IMPLEMENTS: |
|
| 130 | + $endImplements = $phpcsFile->findNext(array(T_EXTENDS, T_OPEN_CURLY_BRACKET), ($i + 1)); |
|
| 131 | + for ($x = ($i + 1); $x < $endImplements; $x++) { |
|
| 132 | + if ($tokens[$x]['code'] === T_STRING) { |
|
| 133 | + $className = strtolower($tokens[$x]['content']); |
|
| 134 | + if ($className === $systemName) { |
|
| 135 | + // The included system was used, so it is fine. |
|
| 136 | + return; |
|
| 137 | + } |
|
| 137 | 138 | } |
| 138 | 139 | } |
| 139 | - } |
|
| 140 | - break; |
|
| 140 | + break; |
|
| 141 | 141 | }//end switch |
| 142 | 142 | }//end for |
| 143 | 143 | |
@@ -45,12 +45,12 @@ |
||
| 45 | 45 | * @var array |
| 46 | 46 | */ |
| 47 | 47 | protected $specificStylesheets = array( |
| 48 | - 'moz' => true, |
|
| 49 | - 'ie' => true, |
|
| 50 | - 'ie7' => true, |
|
| 51 | - 'ie8' => true, |
|
| 52 | - 'webkit' => true, |
|
| 53 | - ); |
|
| 48 | + 'moz' => true, |
|
| 49 | + 'ie' => true, |
|
| 50 | + 'ie7' => true, |
|
| 51 | + 'ie8' => true, |
|
| 52 | + 'webkit' => true, |
|
| 53 | + ); |
|
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | /** |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @return array<int, int> |
| 42 | 42 | */ |
| 43 | - public function getErrorList($testFile='JoinStringsUnitTest.js') |
|
| 43 | + public function getErrorList($testFile = 'JoinStringsUnitTest.js') |
|
| 44 | 44 | { |
| 45 | 45 | if ($testFile !== 'JoinStringsUnitTest.js') { |
| 46 | 46 | return array(); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | 48 => 1, |
| 58 | 58 | 70 => 1, |
| 59 | 59 | 71 => 1, |
| 60 | - ); |
|
| 60 | + ); |
|
| 61 | 61 | |
| 62 | 62 | }//end getErrorList() |
| 63 | 63 | |
@@ -57,9 +57,9 @@ |
||
| 57 | 57 | function myFunction() |
| 58 | 58 | { |
| 59 | 59 | if (Channels::systemExists('Log5') === TRUE) { |
| 60 | - Channels::includeSystem('Log5'); |
|
| 60 | + Channels::includeSystem('Log5'); |
|
| 61 | 61 | } else { |
| 62 | - return; |
|
| 62 | + return; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | Log5::addProjectLog('metadata.field.update', $msg); |
@@ -92,9 +92,9 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | if (Channels::systemExists('Log') === TRUE) { |
| 95 | - Channels::includeSystem('Log'); |
|
| 95 | + Channels::includeSystem('Log'); |
|
| 96 | 96 | } else { |
| 97 | - return; |
|
| 97 | + return; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | Log::addProjectLog('metadata.field.update', $msg); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @return array<int, int> |
| 42 | 42 | */ |
| 43 | - public function getErrorList($testFile='FirebugConsoleUnitTest.js') |
|
| 43 | + public function getErrorList($testFile = 'FirebugConsoleUnitTest.js') |
|
| 44 | 44 | { |
| 45 | 45 | if ($testFile !== 'FirebugConsoleUnitTest.js') { |
| 46 | 46 | return array(); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | 48 => 1, |
| 58 | 58 | 70 => 1, |
| 59 | 59 | 71 => 1, |
| 60 | - ); |
|
| 60 | + ); |
|
| 61 | 61 | |
| 62 | 62 | }//end getErrorList() |
| 63 | 63 | |
@@ -25,13 +25,13 @@ discard block |
||
| 25 | 25 | public static function addIssue( |
| 26 | 26 | $title, |
| 27 | 27 | $description, |
| 28 | - $reporter=NULL, |
|
| 29 | - $projectid=NULL, |
|
| 30 | - array $tags=array(), |
|
| 31 | - $status=NULL, |
|
| 32 | - $assignedTo=NULL, |
|
| 33 | - $reportedDate=NULL, |
|
| 34 | - $reportedMilestone=NULL |
|
| 28 | + $reporter = NULL, |
|
| 29 | + $projectid = NULL, |
|
| 30 | + array $tags = array(), |
|
| 31 | + $status = NULL, |
|
| 32 | + $assignedTo = NULL, |
|
| 33 | + $reportedDate = NULL, |
|
| 34 | + $reportedMilestone = NULL |
|
| 35 | 35 | ) { |
| 36 | 36 | // Get current projectid if not specified. |
| 37 | 37 | if ($projectid === NULL) { |
@@ -160,13 +160,13 @@ discard block |
||
| 160 | 160 | public static function addIssue( |
| 161 | 161 | $title, |
| 162 | 162 | $description, |
| 163 | - $reporter=NULL, |
|
| 164 | - $projectid=NULL, |
|
| 165 | - array $tags=array(), |
|
| 166 | - $status=NULL, |
|
| 167 | - $assignedTo=NULL, |
|
| 168 | - $reportedDate=NULL, |
|
| 169 | - $reportedMilestone=NULL |
|
| 163 | + $reporter = NULL, |
|
| 164 | + $projectid = NULL, |
|
| 165 | + array $tags = array(), |
|
| 166 | + $status = NULL, |
|
| 167 | + $assignedTo = NULL, |
|
| 168 | + $reportedDate = NULL, |
|
| 169 | + $reportedMilestone = NULL |
|
| 170 | 170 | ) { |
| 171 | 171 | // Get current projectid if not specified. |
| 172 | 172 | if ($projectid === NULL) { |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @return array<int, int> |
| 42 | 42 | */ |
| 43 | - public function getErrorList($testFile='AssignThisUnitTest.js') |
|
| 43 | + public function getErrorList($testFile = 'AssignThisUnitTest.js') |
|
| 44 | 44 | { |
| 45 | 45 | if ($testFile !== 'AssignThisUnitTest.js') { |
| 46 | 46 | return array(); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | 48 => 1, |
| 58 | 58 | 70 => 1, |
| 59 | 59 | 71 => 1, |
| 60 | - ); |
|
| 60 | + ); |
|
| 61 | 61 | |
| 62 | 62 | }//end getErrorList() |
| 63 | 63 | |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @return array<int, int> |
| 42 | 42 | */ |
| 43 | - public function getErrorList($testFile='CreateWidgetTypeCallbackUnitTest.js') |
|
| 43 | + public function getErrorList($testFile = 'CreateWidgetTypeCallbackUnitTest.js') |
|
| 44 | 44 | { |
| 45 | 45 | return array( |
| 46 | 46 | 18 => 1, |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | 48 => 1, |
| 58 | 58 | 70 => 1, |
| 59 | 59 | 71 => 1, |
| 60 | - ); |
|
| 60 | + ); |
|
| 61 | 61 | |
| 62 | 62 | }//end getErrorList() |
| 63 | 63 | |