Passed
Push — master ( 9280cd...76fe10 )
by Simon
02:08
created
Interfaces/StyleInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,5 +22,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Interfaces/PatternInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,5 +20,5 @@
 block discarded – undo
20 20
      *
21 21
      * @param ReportBuilder $context
22 22
      */
23
-    public function run(ReportBuilder &$context);
23
+    public function run(ReportBuilder&$context);
24 24
 }
Please login to merge, or discard this patch.
Tests/Unit/ReportStyleTest.php 1 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.
Tests/Unit/ReportPatternTest.php 1 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.
Service/ReportStyle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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])) {
Please login to merge, or discard this patch.
Service/ReportPattern.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Styles/Align.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 class Align implements StyleInterface
23 23
 {
24 24
 
25
-    public function run(ReportBuilder &$context, $coordString, $options)
25
+    public function run(ReportBuilder&$context, $coordString, $options)
26 26
     {
27 27
 
28 28
         $context->sheet()
Please login to merge, or discard this patch.
Styles/Width.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 class Width implements StyleInterface
24 24
 {
25 25
     
26
-    public function run(ReportBuilder &$context, $coordString, $options) {
26
+    public function run(ReportBuilder&$context, $coordString, $options) {
27 27
         
28 28
         switch ($options['type']) {
29 29
         case 'auto':
@@ -33,7 +33,7 @@  discard block
 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.
Styles/Bg.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 class Bg implements StyleInterface
24 24
 {
25 25
 
26
-    public function run(ReportBuilder &$context, $coordString, $options)
26
+    public function run(ReportBuilder&$context, $coordString, $options)
27 27
     {
28 28
         if (!isset($options['color'])) {
29 29
             $options['color'] = $options['default_bg_color'];
@@ -33,6 +33,6 @@  discard block
 block discarded – undo
33 33
         ->getStyle($coordString)
34 34
         ->applyFromArray(['fill' => array(
35 35
             'type' => \PHPExcel_Style_Fill::FILL_SOLID,
36
-        'color' => array('rgb' => $options['color']), )]);
36
+        'color' => array('rgb' => $options['color']),)]);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.