@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | public function generateFileReport( |
61 | 61 | $report, |
62 | 62 | PHP_CodeSniffer_File $phpcsFile, |
63 | - $showSources=false, |
|
64 | - $width=80 |
|
63 | + $showSources = false, |
|
64 | + $width = 80 |
|
65 | 65 | ) { |
66 | 66 | $metrics = $phpcsFile->getMetrics(); |
67 | 67 | foreach ($metrics as $metric => $data) { |
@@ -107,9 +107,9 @@ discard block |
||
107 | 107 | $totalErrors, |
108 | 108 | $totalWarnings, |
109 | 109 | $totalFixable, |
110 | - $showSources=false, |
|
111 | - $width=80, |
|
112 | - $toScreen=true |
|
110 | + $showSources = false, |
|
111 | + $width = 80, |
|
112 | + $toScreen = true |
|
113 | 113 | ) { |
114 | 114 | if (empty($this->_metricCache) === true) { |
115 | 115 | // Nothing to show. |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | public function generateFileReport( |
51 | 51 | $report, |
52 | 52 | PHP_CodeSniffer_File $phpcsFile, |
53 | - $showSources=false, |
|
54 | - $width=80 |
|
53 | + $showSources = false, |
|
54 | + $width = 80 |
|
55 | 55 | ) { |
56 | 56 | $out = new XMLWriter; |
57 | 57 | $out->openMemory(); |
@@ -117,9 +117,9 @@ discard block |
||
117 | 117 | $totalErrors, |
118 | 118 | $totalWarnings, |
119 | 119 | $totalFixable, |
120 | - $showSources=false, |
|
121 | - $width=80, |
|
122 | - $toScreen=true |
|
120 | + $showSources = false, |
|
121 | + $width = 80, |
|
122 | + $toScreen = true |
|
123 | 123 | ) { |
124 | 124 | echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL; |
125 | 125 | echo '<phpcs version="'.PHP_CodeSniffer::VERSION.'">'.PHP_EOL; |
@@ -55,8 +55,8 @@ discard block |
||
55 | 55 | public function generateFileReport( |
56 | 56 | $report, |
57 | 57 | PHP_CodeSniffer_File $phpcsFile, |
58 | - $showSources=false, |
|
59 | - $width=80 |
|
58 | + $showSources = false, |
|
59 | + $width = 80 |
|
60 | 60 | ) { |
61 | 61 | if (count($report['messages']) === 0) { |
62 | 62 | $this->_tests++; |
@@ -133,9 +133,9 @@ discard block |
||
133 | 133 | $totalErrors, |
134 | 134 | $totalWarnings, |
135 | 135 | $totalFixable, |
136 | - $showSources=false, |
|
137 | - $width=80, |
|
138 | - $toScreen=true |
|
136 | + $showSources = false, |
|
137 | + $width = 80, |
|
138 | + $toScreen = true |
|
139 | 139 | ) { |
140 | 140 | $failures = ($totalErrors + $totalWarnings); |
141 | 141 | echo '<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL; |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->_praiseCache[$author] = array( |
96 | 96 | 'good' => 0, |
97 | 97 | 'bad' => 0, |
98 | - ); |
|
98 | + ); |
|
99 | 99 | } |
100 | 100 | |
101 | 101 | $this->_praiseCache[$author]['bad']++; |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $this->_praiseCache[$author] = array( |
137 | 137 | 'good' => 0, |
138 | 138 | 'bad' => 0, |
139 | - ); |
|
139 | + ); |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | $this->_praiseCache[$author]['good']++; |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | public function generateFileReport( |
77 | 77 | $report, |
78 | 78 | PHP_CodeSniffer_File $phpcsFile, |
79 | - $showSources=false, |
|
80 | - $width=80 |
|
79 | + $showSources = false, |
|
80 | + $width = 80 |
|
81 | 81 | ) { |
82 | 82 | $blames = $this->getBlameContent($report['filename']); |
83 | 83 | |
@@ -168,9 +168,9 @@ discard block |
||
168 | 168 | $totalErrors, |
169 | 169 | $totalWarnings, |
170 | 170 | $totalFixable, |
171 | - $showSources=false, |
|
172 | - $width=80, |
|
173 | - $toScreen=true |
|
171 | + $showSources = false, |
|
172 | + $width = 80, |
|
173 | + $toScreen = true |
|
174 | 174 | ) { |
175 | 175 | $errorsShown = ($totalErrors + $totalWarnings); |
176 | 176 | if ($errorsShown === 0) { |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | public function generateFileReport( |
51 | 51 | $report, |
52 | 52 | PHP_CodeSniffer_File $phpcsFile, |
53 | - $showSources=false, |
|
54 | - $width=80 |
|
53 | + $showSources = false, |
|
54 | + $width = 80 |
|
55 | 55 | ) { |
56 | 56 | if ($report['errors'] === 0 && $report['warnings'] === 0) { |
57 | 57 | // Nothing to print. |
@@ -98,9 +98,9 @@ discard block |
||
98 | 98 | $totalErrors, |
99 | 99 | $totalWarnings, |
100 | 100 | $totalFixable, |
101 | - $showSources=false, |
|
102 | - $width=80, |
|
103 | - $toScreen=true |
|
101 | + $showSources = false, |
|
102 | + $width = 80, |
|
103 | + $toScreen = true |
|
104 | 104 | ) { |
105 | 105 | echo 'File,Line,Column,Type,Message,Source,Severity,Fixable'.PHP_EOL; |
106 | 106 | echo $cachedData; |