Completed
Pull Request — master (#7)
by Tomáš
06:57
created
src/Reports/Notifysend.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/Json.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/Cbf.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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
      * its data should be counted in the grand totals.
28 28
      *
29 29
      * @param array                 $report      Prepared report data.
30
-     * @param \Symplify\PHP7_CodeSniffer\File $phpcsFile   The file being reported on.
30
+     * @param File $phpcsFile   The file being reported on.
31 31
      * @param bool                  $showSources Show sources?
32 32
      * @param int                   $width       Maximum allowed line width.
33 33
      *
34
-     * @return bool
34
+     * @return null|boolean
35 35
      */
36 36
     public function generateFileReport($report, File $phpcsFile, $showSources=false, $width=80)
37 37
     {
Please login to merge, or discard this patch.
src/Reports/Info.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/Full.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/Generators/Generator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 
15 15
 use Symplify\PHP7_CodeSniffer\Ruleset;
16 16
 use Symplify\PHP7_CodeSniffer\Autoload;
17
-use Symplify\PHP7_CodeSniffer\Util\Common;
18 17
 
19 18
 abstract class Generator
20 19
 {
Please login to merge, or discard this patch.