Passed
Push — master ( b1243d...a1f3e0 )
by Simon
02:11
created
Service/ReportBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Symball\ReportBundle\Service;
13 13
 
14
-use Symball\ReportBundle\Service\ReportPattern;
15 14
 use Symball\ReportBundle\Service\ReportStyle;
16 15
 use Symball\ReportBundle\Service\Meta;
17 16
 use Symball\ReportBundle\Interfaces\NavInterface;
Please login to merge, or discard this patch.
Tests/Unit/MetaTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 /* The base PHPUnit test class */
12 12
 use PHPUnit\Framework\TestCase;
13
-
14 13
 use Symball\ReportBundle\Service\Meta;
15 14
 
16 15
 /* Extend the default PHPUnit test case */
Please login to merge, or discard this patch.
Tests/Unit/ReportPatternTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 /* The base PHPUnit test class */
12 12
 use PHPUnit\Framework\TestCase;
13
-
14 13
 use Symball\ReportBundle\Service\ReportPattern;
15 14
 use Symball\ReportBundle\Service\ReportBuilder;
16 15
 use Symball\ReportBundle\Interfaces\PatternInterface;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $mockPattern->method('run')->willReturn(true);
44 44
         $reportPattern->addPattern($mockPattern, 'an_alias');
45 45
 
46
-        $mockReportBuilder= $this->createMock(ReportBuilder::class);
46
+        $mockReportBuilder = $this->createMock(ReportBuilder::class);
47 47
 
48 48
         $result = $reportPattern->run('an_alias', $mockReportBuilder);
49 49
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $reportPattern = new ReportPattern();
55 55
 
56 56
         try {
57
-            $mockReportBuilder= $this->createMock(ReportBuilder::class);
57
+            $mockReportBuilder = $this->createMock(ReportBuilder::class);
58 58
             $result = $reportPattern->run('an_alias', $mockReportBuilder);
59 59
         } catch (\Exception $ex) {
60 60
             // General exception
Please login to merge, or discard this patch.
Tests/Unit/ReportStyleTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 /* The base PHPUnit test class */
12 12
 use PHPUnit\Framework\TestCase;
13
-
14 13
 use Symball\ReportBundle\Service\Meta;
15 14
 use Symball\ReportBundle\Service\ReportStyle;
16 15
 use Symball\ReportBundle\Service\ReportBuilder;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $mockMeta = $this->createMock(Meta::class);
48 48
         $mockMeta->method('getOptions')->willReturn([]);
49 49
 
50
-        $mockReportBuilder= $this->createMock(ReportBuilder::class);
50
+        $mockReportBuilder = $this->createMock(ReportBuilder::class);
51 51
         $mockReportBuilder->method('meta')->will($this->returnValue($mockMeta));
52 52
 
53 53
         $result = $reportStyle->run('an_alias', $mockReportBuilder, 'A1');
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $mockMeta = $this->createMock(Meta::class);
62 62
         $mockMeta->method('getOptions')->willReturn([]);
63 63
 
64
-        $mockReportBuilder= $this->createMock(ReportBuilder::class);
64
+        $mockReportBuilder = $this->createMock(ReportBuilder::class);
65 65
         $mockReportBuilder->method('meta')->will($this->returnValue($mockMeta));
66 66
 
67 67
         try {
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
30 30
 
31 31
         $rootNode
32 32
             ->children()
33
-              ->scalarNode('excel_factory_namespace')
33
+                ->scalarNode('excel_factory_namespace')
34 34
                 ->defaultValue('\PHPExcel_IOFactory')
35
-              ->end()
36
-              ->scalarNode('layout_style')
35
+                ->end()
36
+                ->scalarNode('layout_style')
37 37
                 ->defaultValue('horizontal')
38
-              ->end()
39
-              ->scalarNode('output_format')
38
+                ->end()
39
+                ->scalarNode('output_format')
40 40
                 ->defaultValue('Excel2007')
41
-              ->end()
42
-              ->scalarNode('default_report_path')
41
+                ->end()
42
+                ->scalarNode('default_report_path')
43 43
                 ->isRequired()
44
-              ->end()
44
+                ->end()
45 45
             ->end()
46 46
         ;
47 47
 
Please login to merge, or discard this patch.
Styles/Width.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
         switch ($options['type']) {
29 29
         case 'auto':
30 30
           $context->sheet()
31
-          ->getColumnDimension($coordString)
32
-          ->setAutoSize(true);
33
-          break;
31
+            ->getColumnDimension($coordString)
32
+            ->setAutoSize(true);
33
+            break;
34 34
 
35 35
         default:
36 36
           throw new \Exception('Unrecognised style width option: '.$options['type']);
37
-          break;
38
-      }
37
+            break;
38
+        }
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,15 +26,15 @@
 block discarded – undo
26 26
     public function run(ReportBuilder &$context, $coordString, $options) {
27 27
         
28 28
         switch ($options['type']) {
29
-        case 'auto':
30
-          $context->sheet()
31
-          ->getColumnDimension($coordString)
32
-          ->setAutoSize(true);
33
-          break;
29
+            case 'auto':
30
+              $context->sheet()
31
+              ->getColumnDimension($coordString)
32
+              ->setAutoSize(true);
33
+              break;
34 34
 
35
-        default:
36
-          throw new \Exception('Unrecognised style width option: '.$options['type']);
37
-          break;
35
+            default:
36
+              throw new \Exception('Unrecognised style width option: '.$options['type']);
37
+              break;
38 38
       }
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
           break;
34 34
 
35 35
         default:
36
-          throw new \Exception('Unrecognised style width option: '.$options['type']);
36
+          throw new \Exception('Unrecognised style width option: ' . $options['type']);
37 37
           break;
38 38
       }
39 39
     }
Please login to merge, or discard this patch.
Service/ReportQuery.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,6 @@
 block discarded – undo
40 40
      * A front-end for running pattern operations that are loaded on to the stack
41 41
      *
42 42
      * @param string        $alias
43
-     * @param ReportBuilder $context
44 43
      * @return boolean Success condition
45 44
      * @throws \Exception when pattern not available
46 45
      */
Please login to merge, or discard this patch.
Tests/Unit/ReportQueryTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 
11 11
 /* The base PHPUnit test class */
12 12
 use PHPUnit\Framework\TestCase;
13
-
14 13
 use Symball\ReportBundle\Service\ReportQuery;
15 14
 use Symball\ReportBundle\Interfaces\QueryInterface;
16 15
 
Please login to merge, or discard this patch.
Tests/Extension/ConfigurationTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     use ConfigurationTestCaseTrait;
28 28
     
29 29
     protected function getContainerExtension() {
30
-       return new SymballReportExtension();
30
+        return new SymballReportExtension();
31 31
     }
32 32
     
33 33
     protected function getConfiguration()
Please login to merge, or discard this patch.