Completed
Pull Request — master (#7)
by Tomáš
07:02 queued 36s
created
src/Reports/Source.php 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
                 foreach ($colErrors as $error) {
45 45
                     if (isset($sources[$error['source']]) === false) {
46 46
                         $sources[$error['source']] = array(
47
-                                                      'fixable' => (int) $error['fixable'],
48
-                                                      'count'   => 1,
49
-                                                     );
47
+                                                        'fixable' => (int) $error['fixable'],
48
+                                                        'count'   => 1,
49
+                                                        );
50 50
                     } else {
51 51
                         $sources[$error['source']]['count']++;
52 52
                     }
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
                 $maxLength = max($maxLength, $sniff);
134 134
 
135 135
                 $sources[$source] = array(
136
-                                     'count'   => 1,
137
-                                     'fixable' => $fixable,
138
-                                     'parts'   => $parts,
136
+                                        'count'   => 1,
137
+                                        'fixable' => $fixable,
138
+                                        'parts'   => $parts,
139 139
                                     );
140 140
             } else {
141 141
                 $sources[$source]['count']++;
@@ -143,10 +143,10 @@  discard block
 block discarded – undo
143 143
 
144 144
             $fileLen = strlen($parts[0]);
145 145
             $reportFiles[$parts[0]] = array(
146
-                                       'errors'   => $parts[1],
147
-                                       'warnings' => $parts[2],
148
-                                       'strlen'   => $fileLen,
149
-                                      );
146
+                                        'errors'   => $parts[1],
147
+                                        'warnings' => $parts[2],
148
+                                        'strlen'   => $fileLen,
149
+                                        );
150 150
         }//end foreach
151 151
 
152 152
         if ($showSources === true) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * its data should be counted in the grand totals.
25 25
      *
26 26
      * @param array                 $report      Prepared report data.
27
-     * @param \Symplify\PHP7_CodeSniffer\File $phpcsFile   The file being reported on.
27
+     * @param File $phpcsFile   The file being reported on.
28 28
      * @param bool                  $showSources Show sources?
29 29
      * @param int                   $width       Maximum allowed line width.
30 30
      *
Please login to merge, or discard this patch.
src/Reports/Summary.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,10 +87,10 @@
 block discarded – undo
87 87
             $parts   = explode('>>', $line);
88 88
             $fileLen = strlen($parts[0]);
89 89
             $reportFiles[$parts[0]] = array(
90
-                                       'errors'   => $parts[1],
91
-                                       'warnings' => $parts[2],
92
-                                       'strlen'   => $fileLen,
93
-                                      );
90
+                                        'errors'   => $parts[1],
91
+                                        'warnings' => $parts[2],
92
+                                        'strlen'   => $fileLen,
93
+                                        );
94 94
 
95 95
             $maxLength = max($maxLength, $fileLen);
96 96
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
src/Reports/Report.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return bool
31 31
      */
32
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80);
32
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80);
33 33
 
34 34
 
35 35
     /**
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
         $totalErrors,
55 55
         $totalWarnings,
56 56
         $totalFixable,
57
-        $showSources=false,
58
-        $width=80,
59
-        $interactive=false,
60
-        $toScreen=true
57
+        $showSources = false,
58
+        $width = 80,
59
+        $interactive = false,
60
+        $toScreen = true
61 61
     );
62 62
 
63 63
 
Please login to merge, or discard this patch.
src/Reports/Code.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,9 +79,9 @@
 block discarded – undo
79 79
 
80 80
                 $lastLine++;
81 81
                 $lineTokens[$lastLine] = array(
82
-                                          'start' => $stackPtr,
83
-                                          'end'   => null,
84
-                                         );
82
+                                            'start' => $stackPtr,
83
+                                            'end'   => null,
84
+                                            );
85 85
             }
86 86
         }
87 87
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * its data should be counted in the grand totals.
25 25
      *
26 26
      * @param array                 $report      Prepared report data.
27
-     * @param \Symplify\PHP7_CodeSniffer\File $phpcsFile   The file being reported on.
27
+     * @param File $phpcsFile   The file being reported on.
28 28
      * @param bool                  $showSources Show sources?
29 29
      * @param int                   $width       Maximum allowed line width.
30 30
      *
Please login to merge, or discard this patch.
src/Reports/Diff.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace Symplify\PHP7_CodeSniffer\Reports;
11 11
 
12 12
 use Symplify\PHP7_CodeSniffer\Files\File;
13
-use Symplify\PHP7_CodeSniffer\Util;
14 13
 
15 14
 class Diff implements Report
16 15
 {
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * its data should be counted in the grand totals.
25 25
      *
26 26
      * @param array                 $report      Prepared report data.
27
-     * @param \Symplify\PHP7_CodeSniffer\File $phpcsFile   The file being reported on.
27
+     * @param File $phpcsFile   The file being reported on.
28 28
      * @param bool                  $showSources Show sources?
29 29
      * @param int                   $width       Maximum allowed line width.
30 30
      *
Please login to merge, or discard this patch.
src/Reports/Csv.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
src/Reports/Xml.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * its data should be counted in the grand totals.
25 25
      *
26 26
      * @param array                 $report      Prepared report data.
27
-     * @param \Symplify\PHP7_CodeSniffer\File $phpcsFile   The file being reported on.
27
+     * @param File $phpcsFile   The file being reported on.
28 28
      * @param bool                  $showSources Show sources?
29 29
      * @param int                   $width       Maximum allowed line width.
30 30
      *
Please login to merge, or discard this patch.
src/Reports/Emacs.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
src/Reports/Junit.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return bool
32 32
      */
33
-    public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
33
+    public function generateFileReport($report, File $phpcsFile, $showSources = false, $width = 80)
34 34
     {
35 35
         if ($report['errors'] === 0 && $report['warnings'] === 0) {
36 36
             // Nothing to print.
@@ -333,10 +333,10 @@  discard block
 block discarded – undo
333 333
         $totalErrors,
334 334
         $totalWarnings,
335 335
         $totalFixable,
336
-        $showSources=false,
337
-        $width=80,
338
-        $interactive=false,
339
-        $toScreen=true
336
+        $showSources = false,
337
+        $width = 80,
338
+        $interactive = false,
339
+        $toScreen = true
340 340
     ) {
341 341
         if ($cachedData === '') {
342 342
             return;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * its data should be counted in the grand totals.
25 25
      *
26 26
      * @param array                 $report      Prepared report data.
27
-     * @param \Symplify\PHP7_CodeSniffer\File $phpcsFile   The file being reported on.
27
+     * @param File $phpcsFile   The file being reported on.
28 28
      * @param bool                  $showSources Show sources?
29 29
      * @param int                   $width       Maximum allowed line width.
30 30
      *
Please login to merge, or discard this patch.