@@ -11,7 +11,6 @@ |
||
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; |
@@ -10,7 +10,6 @@ |
||
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 */ |
@@ -10,7 +10,6 @@ |
||
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; |
@@ -43,7 +43,7 @@ discard block |
||
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 |
||
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 |
@@ -10,7 +10,6 @@ |
||
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; |
@@ -47,7 +47,7 @@ discard block |
||
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 |
||
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 { |
@@ -22,5 +22,5 @@ |
||
22 | 22 | * @param string $coordString |
23 | 23 | * @param array $options |
24 | 24 | */ |
25 | - public function run(ReportBuilder &$context, $coordString, $options); |
|
25 | + public function run(ReportBuilder&$context, $coordString, $options); |
|
26 | 26 | } |
@@ -20,5 +20,5 @@ |
||
20 | 20 | * |
21 | 21 | * @param ReportBuilder $context |
22 | 22 | */ |
23 | - public function run(ReportBuilder &$context); |
|
23 | + public function run(ReportBuilder&$context); |
|
24 | 24 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * @return boolean Success condition |
46 | 46 | * @throws \Exception when style function not available |
47 | 47 | */ |
48 | - public function run($alias, ReportBuilder &$context, $coordString, $options = array()) |
|
48 | + public function run($alias, ReportBuilder&$context, $coordString, $options = array()) |
|
49 | 49 | { |
50 | 50 | |
51 | 51 | if (isset($this->styles[$alias])) { |
@@ -45,7 +45,7 @@ |
||
45 | 45 | * @return boolean Success condition |
46 | 46 | * @throws \Exception when pattern not available |
47 | 47 | */ |
48 | - public function run($alias, ReportBuilder &$context) |
|
48 | + public function run($alias, ReportBuilder&$context) |
|
49 | 49 | { |
50 | 50 | if (isset($this->patterns[$alias])) { |
51 | 51 | $this->patterns[$alias]->run($context); |
@@ -30,18 +30,18 @@ |
||
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 |