Completed
Push — 1.7 ( ce7091...0d97cf )
by Greg
14:14 queued 07:41
created
app/Report/ReportHtmlPageheader.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@
 block discarded – undo
18 18
 /**
19 19
  * Class ReportHtmlPageheader
20 20
  */
21
-class ReportHtmlPageheader extends ReportBasePageheader {
21
+class ReportHtmlPageheader extends ReportBasePageheader
22
+{
22 23
 	/**
23 24
 	 * Render elements.
24 25
 	 *
25 26
 	 * @param ReportHtml $renderer
26 27
 	 */
27
-	public function render($renderer) {
28
+	public function render($renderer)
29
+	{
28 30
 		$renderer->clearPageHeader();
29 31
 		foreach ($this->elements as $element) {
30 32
 			$renderer->addPageHeader($element);
Please login to merge, or discard this patch.
app/Report/ReportHtmlImage.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Class ReportHtmlImage
20 20
  */
21
-class ReportHtmlImage extends ReportBaseImage {
21
+class ReportHtmlImage extends ReportBaseImage
22
+{
22 23
 	/**
23 24
 	 * Image renderer
24 25
 	 *
25 26
 	 * @param ReportHtml $renderer
26 27
 	 */
27
-	public function render($renderer) {
28
+	public function render($renderer)
29
+	{
28 30
 		global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright;
29 31
 
30 32
 		// Get the current positions
@@ -80,7 +82,8 @@  discard block
 block discarded – undo
80 82
 	 *
81 83
 	 * @return float
82 84
 	 */
83
-	public function getHeight($html) {
85
+	public function getHeight($html)
86
+	{
84 87
 		return $this->height + ($html->cPadding * 2);
85 88
 	}
86 89
 
Please login to merge, or discard this patch.
app/Report/ReportParserBase.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Class ReportParserBase
20 20
  */
21
-class ReportParserBase {
21
+class ReportParserBase
22
+{
22 23
 	/** @var resource The XML parser */
23 24
 	protected $xml_parser;
24 25
 
@@ -32,7 +33,8 @@  discard block
 block discarded – undo
32 33
 	 * @param ReportBase $report_root
33 34
 	 * @param string[][] $vars
34 35
 	 */
35
-	public function __construct($report, ReportBase $report_root = null, $vars = array()) {
36
+	public function __construct($report, ReportBase $report_root = null, $vars = array())
37
+	{
36 38
 		$this->xml_parser = xml_parser_create();
37 39
 		xml_parser_set_option($this->xml_parser, XML_OPTION_CASE_FOLDING, false);
38 40
 		xml_set_element_handler($this->xml_parser, array($this, 'startElement'), array($this, 'endElement'));
@@ -59,7 +61,8 @@  discard block
 block discarded – undo
59 61
 	 * @param string   $name   The name of the xml element parsed
60 62
 	 * @param string[] $attrs  An array of key value pairs for the attributes
61 63
 	 */
62
-	protected function startElement($parser, $name, $attrs) {
64
+	protected function startElement($parser, $name, $attrs)
65
+	{
63 66
 		$method = $name . 'StartHandler';
64 67
 		if (method_exists($this, $method)) {
65 68
 			$this->$method($attrs);
@@ -72,7 +75,8 @@  discard block
 block discarded – undo
72 75
 	 * @param resource $parser the resource handler for the xml parser
73 76
 	 * @param string $name the name of the xml element parsed
74 77
 	 */
75
-	protected function endElement($parser, $name) {
78
+	protected function endElement($parser, $name)
79
+	{
76 80
 		$method = $name . 'EndHandler';
77 81
 		if (method_exists($this, $method)) {
78 82
 			$this->$method();
@@ -85,7 +89,8 @@  discard block
 block discarded – undo
85 89
 	 * @param resource $parser The resource handler for the xml parser
86 90
 	 * @param string   $data   The name of the xml element parsed
87 91
 	 */
88
-	protected function characterData($parser, $data) {
92
+	protected function characterData($parser, $data)
93
+	{
89 94
 		$this->text .= $data;
90 95
 	}
91 96
 }
Please login to merge, or discard this patch.
app/Report/ReportHtml.php 1 patch
Braces   +76 added lines, -38 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
 /**
24 24
  * Class ReportHtml
25 25
  */
26
-class ReportHtml extends ReportBase {
26
+class ReportHtml extends ReportBase
27
+{
27 28
 	/**
28 29
 	 * Cell padding
29 30
 	 *
@@ -134,7 +135,8 @@  discard block
 block discarded – undo
134 135
 	/**
135 136
 	 * HTML Setup - ReportHtml
136 137
 	 */
137
-	public function setup() {
138
+	public function setup()
139
+	{
138 140
 		parent::setup();
139 141
 
140 142
 		// Setting up the correct dimensions if Portrait (default) or Landscape
@@ -167,7 +169,8 @@  discard block
 block discarded – undo
167 169
 	 *
168 170
 	 * @param $element
169 171
 	 */
170
-	public function addElement($element) {
172
+	public function addElement($element)
173
+	{
171 174
 		if ($this->processing == "B") {
172 175
 			$this->bodyElements[] = $element;
173 176
 		} elseif ($this->processing == "H") {
@@ -180,7 +183,8 @@  discard block
 block discarded – undo
180 183
 	/**
181 184
 	 * Generate the page header
182 185
 	 */
183
-	public function runPageHeader() {
186
+	public function runPageHeader()
187
+	{
184 188
 		foreach ($this->pageHeaderElements as $element) {
185 189
 			if (is_object($element)) {
186 190
 				$element->render($this);
@@ -195,7 +199,8 @@  discard block
 block discarded – undo
195 199
 	/**
196 200
 	 * Generate footnotes
197 201
 	 */
198
-	public function footnotes() {
202
+	public function footnotes()
203
+	{
199 204
 		$this->currentStyle = "";
200 205
 		if (!empty($this->printedfootnotes)) {
201 206
 			foreach ($this->printedfootnotes as $element) {
@@ -207,7 +212,8 @@  discard block
 block discarded – undo
207 212
 	/**
208 213
 	 * Run the report.
209 214
 	 */
210
-	public function run() {
215
+	public function run()
216
+	{
211 217
 		$controller = new SimpleController;
212 218
 		$controller
213 219
 			->setPageTitle($this->title)
@@ -310,7 +316,8 @@  discard block
 block discarded – undo
310 316
 	 *
311 317
 	 * @return object ReportHtmlCell
312 318
 	 */
313
-	public function createCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth) {
319
+	public function createCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth)
320
+	{
314 321
 		return new ReportHtmlCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth);
315 322
 	}
316 323
 
@@ -332,7 +339,8 @@  discard block
 block discarded – undo
332 339
 	 *
333 340
 	 * @return ReportHtmlTextbox
334 341
 	 */
335
-	public function createTextBox($width, $height, $border, $bgcolor, $newline, $left, $top, $pagecheck, $style, $fill, $padding, $reseth) {
342
+	public function createTextBox($width, $height, $border, $bgcolor, $newline, $left, $top, $pagecheck, $style, $fill, $padding, $reseth)
343
+	{
336 344
 		return new ReportHtmlTextbox($width, $height, $border, $bgcolor, $newline, $left, $top, $pagecheck, $style, $fill, $padding, $reseth);
337 345
 	}
338 346
 
@@ -344,7 +352,8 @@  discard block
 block discarded – undo
344 352
 	 *
345 353
 	 * @return ReportHtmlText
346 354
 	 */
347
-	public function createText($style, $color) {
355
+	public function createText($style, $color)
356
+	{
348 357
 		return new ReportHtmlText($style, $color);
349 358
 	}
350 359
 
@@ -355,7 +364,8 @@  discard block
 block discarded – undo
355 364
 	 *
356 365
 	 * @return ReportHtmlFootnote
357 366
 	 */
358
-	public function createFootnote($style = "") {
367
+	public function createFootnote($style = "")
368
+	{
359 369
 		return new ReportHtmlFootnote($style);
360 370
 	}
361 371
 
@@ -364,7 +374,8 @@  discard block
 block discarded – undo
364 374
 	 *
365 375
 	 * @return ReportHtmlPageheader
366 376
 	 */
367
-	public function createPageHeader() {
377
+	public function createPageHeader()
378
+	{
368 379
 		return new ReportHtmlPageheader;
369 380
 	}
370 381
 
@@ -381,7 +392,8 @@  discard block
 block discarded – undo
381 392
 	 *
382 393
 	 * @return ReportHtmlImage
383 394
 	 */
384
-	public function createImage($file, $x, $y, $w, $h, $align, $ln) {
395
+	public function createImage($file, $x, $y, $w, $h, $align, $ln)
396
+	{
385 397
 		return new ReportHtmlImage($file, $x, $y, $w, $h, $align, $ln);
386 398
 	}
387 399
 
@@ -398,7 +410,8 @@  discard block
 block discarded – undo
398 410
 	 *
399 411
 	 * @return ReportHtmlImage
400 412
 	 */
401
-	public function createImageFromObject(Media $mediaobject, $x, $y, $w, $h, $align, $ln) {
413
+	public function createImageFromObject(Media $mediaobject, $x, $y, $w, $h, $align, $ln)
414
+	{
402 415
 		return new ReportHtmlImage($mediaobject->getHtmlUrlDirect('thumb'), $x, $y, $w, $h, $align, $ln);
403 416
 	}
404 417
 
@@ -412,7 +425,8 @@  discard block
 block discarded – undo
412 425
 	 *
413 426
 	 * @return ReportHtmlLine
414 427
 	 */
415
-	public function createLine($x1, $y1, $x2, $y2) {
428
+	public function createLine($x1, $y1, $x2, $y2)
429
+	{
416 430
 		return new ReportHtmlLine($x1, $y1, $x2, $y2);
417 431
 	}
418 432
 
@@ -424,21 +438,24 @@  discard block
 block discarded – undo
424 438
 	 *
425 439
 	 * @return ReportHtmlHtml
426 440
 	 */
427
-	public function createHTML($tag, $attrs) {
441
+	public function createHTML($tag, $attrs)
442
+	{
428 443
 		return new ReportHtmlHtml($tag, $attrs);
429 444
 	}
430 445
 
431 446
 	/**
432 447
 	 * Clear the Header - ReportHtml
433 448
 	 */
434
-	public function clearHeader() {
449
+	public function clearHeader()
450
+	{
435 451
 		$this->headerElements = array();
436 452
 	}
437 453
 
438 454
 	/**
439 455
 	 * Update the Page Number and set a new Y if max Y is larger - ReportHtml
440 456
 	 */
441
-	public function addPage() {
457
+	public function addPage()
458
+	{
442 459
 		$this->pageN++;
443 460
 		// Add a little margin to max Y "between pages"
444 461
 		$this->maxY += 10;
@@ -457,7 +474,8 @@  discard block
 block discarded – undo
457 474
 	 *
458 475
 	 * @param float $y
459 476
 	 */
460
-	public function addMaxY($y) {
477
+	public function addMaxY($y)
478
+	{
461 479
 		if ($this->maxY < $y) {
462 480
 			$this->maxY = $y;
463 481
 		}
@@ -470,7 +488,8 @@  discard block
 block discarded – undo
470 488
 	 *
471 489
 	 * @return int
472 490
 	 */
473
-	public function addPageHeader($element) {
491
+	public function addPageHeader($element)
492
+	{
474 493
 		$this->pageHeaderElements[] = $element;
475 494
 
476 495
 		return count($this->headerElements) - 1;
@@ -483,7 +502,8 @@  discard block
 block discarded – undo
483 502
 	 *
484 503
 	 * @return bool false if not numbered before | object if already numbered
485 504
 	 */
486
-	public function checkFootnote($footnote) {
505
+	public function checkFootnote($footnote)
506
+	{
487 507
 		$ct  = count($this->printedfootnotes);
488 508
 		$i   = 0;
489 509
 		$val = $footnote->getValue();
@@ -508,7 +528,8 @@  discard block
 block discarded – undo
508 528
 	/**
509 529
 	 * Clear the Page Header - ReportHtml
510 530
 	 */
511
-	public function clearPageHeader() {
531
+	public function clearPageHeader()
532
+	{
512 533
 		$this->pageHeaderElements = array();
513 534
 	}
514 535
 
@@ -519,7 +540,8 @@  discard block
 block discarded – undo
519 540
 	 *
520 541
 	 * @return int Number of lines. 0 if empty line
521 542
 	 */
522
-	public function countLines($str) {
543
+	public function countLines($str)
544
+	{
523 545
 		if ($str == "") {
524 546
 			return 0;
525 547
 		}
@@ -532,7 +554,8 @@  discard block
 block discarded – undo
532 554
 	 *
533 555
 	 * @return string
534 556
 	 */
535
-	public function getCurrentStyle() {
557
+	public function getCurrentStyle()
558
+	{
536 559
 		return $this->currentStyle;
537 560
 	}
538 561
 
@@ -541,7 +564,8 @@  discard block
 block discarded – undo
541 564
 	 *
542 565
 	 * @return int
543 566
 	 */
544
-	public function getCurrentStyleHeight() {
567
+	public function getCurrentStyleHeight()
568
+	{
545 569
 		if (empty($this->currentStyle)) {
546 570
 			return $this->defaultFontSize;
547 571
 		}
@@ -557,7 +581,8 @@  discard block
 block discarded – undo
557 581
 	 *
558 582
 	 * @return int
559 583
 	 */
560
-	public function getFootnotesHeight($cellWidth) {
584
+	public function getFootnotesHeight($cellWidth)
585
+	{
561 586
 		$h = 0;
562 587
 		foreach ($this->printedfootnotes as $element) {
563 588
 			$h += $element->getFootnoteHeight($this, $cellWidth);
@@ -571,7 +596,8 @@  discard block
 block discarded – undo
571 596
 	 *
572 597
 	 * @return float
573 598
 	 */
574
-	public function getRemainingWidth() {
599
+	public function getRemainingWidth()
600
+	{
575 601
 		return $this->noMarginWidth - $this->X;
576 602
 	}
577 603
 
@@ -580,7 +606,8 @@  discard block
 block discarded – undo
580 606
 	 *
581 607
 	 * @return float
582 608
 	 */
583
-	public function getPageHeight() {
609
+	public function getPageHeight()
610
+	{
584 611
 		return $this->pageh - $this->topmargin;
585 612
 	}
586 613
 
@@ -591,7 +618,8 @@  discard block
 block discarded – undo
591 618
 	 *
592 619
 	 * @return int
593 620
 	 */
594
-	public function getStringWidth($text) {
621
+	public function getStringWidth($text)
622
+	{
595 623
 		$style = $this->getStyle($this->currentStyle);
596 624
 
597 625
 		return mb_strlen($text) * ($style['size'] / 2);
@@ -604,7 +632,8 @@  discard block
 block discarded – undo
604 632
 	 *
605 633
 	 * @return int
606 634
 	 */
607
-	public function getTextCellHeight($str) {
635
+	public function getTextCellHeight($str)
636
+	{
608 637
 		// Count the number of lines to calculate the height
609 638
 		$nl = $this->countLines($str);
610 639
 		// Calculate the cell height
@@ -616,7 +645,8 @@  discard block
 block discarded – undo
616 645
 	 *
617 646
 	 * @return float
618 647
 	 */
619
-	public function getX() {
648
+	public function getX()
649
+	{
620 650
 		return $this->X;
621 651
 	}
622 652
 
@@ -625,7 +655,8 @@  discard block
 block discarded – undo
625 655
 	 *
626 656
 	 * @return float
627 657
 	 */
628
-	public function getY() {
658
+	public function getY()
659
+	{
629 660
 		return $this->Y;
630 661
 	}
631 662
 
@@ -634,7 +665,8 @@  discard block
 block discarded – undo
634 665
 	 *
635 666
 	 * @return int
636 667
 	 */
637
-	public function pageNo() {
668
+	public function pageNo()
669
+	{
638 670
 		return $this->pageN;
639 671
 	}
640 672
 
@@ -643,7 +675,8 @@  discard block
 block discarded – undo
643 675
 	 *
644 676
 	 * @param $s
645 677
 	 */
646
-	public function setCurrentStyle($s) {
678
+	public function setCurrentStyle($s)
679
+	{
647 680
 		$this->currentStyle = $s;
648 681
 	}
649 682
 
@@ -652,7 +685,8 @@  discard block
 block discarded – undo
652 685
 	 *
653 686
 	 * @param float $x
654 687
 	 */
655
-	public function setX($x) {
688
+	public function setX($x)
689
+	{
656 690
 		$this->X = $x;
657 691
 	}
658 692
 
@@ -663,7 +697,8 @@  discard block
 block discarded – undo
663 697
 	 *
664 698
 	 * @param float $y
665 699
 	 */
666
-	public function setY($y) {
700
+	public function setY($y)
701
+	{
667 702
 		$this->Y = $y;
668 703
 		if ($this->maxY < $y) {
669 704
 			$this->maxY = $y;
@@ -678,7 +713,8 @@  discard block
 block discarded – undo
678 713
 	 * @param float $x
679 714
 	 * @param float $y
680 715
 	 */
681
-	public function setXy($x, $y) {
716
+	public function setXy($x, $y)
717
+	{
682 718
 		$this->setX($x);
683 719
 		$this->setY($y);
684 720
 	}
@@ -691,7 +727,8 @@  discard block
 block discarded – undo
691 727
 	 *
692 728
 	 * @return string
693 729
 	 */
694
-	public function textWrap($str, $width) {
730
+	public function textWrap($str, $width)
731
+	{
695 732
 		// Calculate the line width
696 733
 		$lw = (int) ($width / ($this->getCurrentStyleHeight() / 2));
697 734
 		// Wordwrap each line
@@ -719,7 +756,8 @@  discard block
 block discarded – undo
719 756
 	 * @param string $color HTML RGB color code (Ex: #001122)
720 757
 	 * @param bool   $useclass
721 758
 	 */
722
-	public function write($text, $color = '', $useclass = true) {
759
+	public function write($text, $color = '', $useclass = true)
760
+	{
723 761
 		$style    = $this->getStyle($this->getCurrentStyle());
724 762
 		$htmlcode = '<span dir="' . I18N::direction() . '"';
725 763
 		if ($useclass) {
Please login to merge, or discard this patch.
app/Report/ReportPdfImage.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Class ReportPdfImage
20 20
  */
21
-class ReportPdfImage extends ReportBaseImage {
21
+class ReportPdfImage extends ReportBaseImage
22
+{
22 23
 	/**
23 24
 	 * PDF image renderer
24 25
 	 *
25 26
 	 * @param ReportTcpdf $renderer
26 27
 	 */
27
-	public function render($renderer) {
28
+	public function render($renderer)
29
+	{
28 30
 		global $lastpicbottom, $lastpicpage, $lastpicleft, $lastpicright;
29 31
 
30 32
 		// Check for a pagebreak first
@@ -100,7 +102,8 @@  discard block
 block discarded – undo
100 102
 	 *
101 103
 	 * @return float
102 104
 	 */
103
-	public function getHeight($pdf) {
105
+	public function getHeight($pdf)
106
+	{
104 107
 		return $this->height;
105 108
 	}
106 109
 
@@ -111,7 +114,8 @@  discard block
 block discarded – undo
111 114
 	 *
112 115
 	 * @return float
113 116
 	 */
114
-	public function getWidth($pdf) {
117
+	public function getWidth($pdf)
118
+	{
115 119
 		return $this->width;
116 120
 	}
117 121
 }
Please login to merge, or discard this patch.
app/Report/ReportHtmlHtml.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Class ReportHtmlHtml
20 20
  */
21
-class ReportHtmlHtml extends ReportBaseHtml {
21
+class ReportHtmlHtml extends ReportBaseHtml
22
+{
22 23
 	/**
23 24
 	 * Render the elements.
24 25
 	 *
@@ -28,7 +29,8 @@  discard block
 block discarded – undo
28 29
 	 *
29 30
 	 * @return string
30 31
 	 */
31
-	public function render($renderer, $sub = false, $inat = true) {
32
+	public function render($renderer, $sub = false, $inat = true)
33
+	{
32 34
 		if (!empty($this->attrs["wt_style"])) {
33 35
 			$renderer->setCurrentStyle($this->attrs["wt_style"]);
34 36
 		}
Please login to merge, or discard this patch.
app/Report/ReportHtmlCell.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@
 block discarded – undo
18 18
 /**
19 19
  * Class ReportHtmlCell
20 20
  */
21
-class ReportHtmlCell extends ReportBaseCell {
21
+class ReportHtmlCell extends ReportBaseCell
22
+{
22 23
 	/**
23 24
 	 * HTML Cell renderer
24 25
 	 *
25 26
 	 * @param ReportHtml $renderer
26 27
 	 */
27
-	public function render($renderer) {
28
+	public function render($renderer)
29
+	{
28 30
 		if (strpos($this->text, "{{:ptp:}}") !== false) {
29 31
 			return;
30 32
 		}
Please login to merge, or discard this patch.
app/Report/ReportPdfLine.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@
 block discarded – undo
18 18
 /**
19 19
  * Class ReportPdfLine
20 20
  */
21
-class ReportPdfLine extends ReportBaseLine {
21
+class ReportPdfLine extends ReportBaseLine
22
+{
22 23
 	/**
23 24
 	 * PDF line renderer
24 25
 	 *
25 26
 	 * @param ReportTcpdf $renderer
26 27
 	 */
27
-	public function render($renderer) {
28
+	public function render($renderer)
29
+	{
28 30
 		if ($this->x1 == ".") {
29 31
 			$this->x1 = $renderer->GetX();
30 32
 		}
Please login to merge, or discard this patch.
app/Report/ReportBase.php 1 patch
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * Class ReportBase
22 22
  */
23
-class ReportBase {
23
+class ReportBase
24
+{
24 25
 	/** User measure unit. */
25 26
 	const UNITS = 'pt';
26 27
 
@@ -96,7 +97,8 @@  discard block
 block discarded – undo
96 97
 	 * Setting up document wide defaults that will be inherited of the report modules
97 98
 	 * As DEFAULT A4 and Portrait will be used if not set
98 99
 	 */
99
-	public function setup() {
100
+	public function setup()
101
+	{
100 102
 		// Set RTL direction
101 103
 		if (I18N::direction() === 'rtl') {
102 104
 			$this->rtl = true;
@@ -413,7 +415,8 @@  discard block
 block discarded – undo
413 415
 	 *
414 416
 	 * @return int
415 417
 	 */
416
-	public function setProcessing($p) {
418
+	public function setProcessing($p)
419
+	{
417 420
 		$this->processing = $p;
418 421
 
419 422
 		return 0;
@@ -426,7 +429,8 @@  discard block
 block discarded – undo
426 429
 	 *
427 430
 	 * @return int
428 431
 	 */
429
-	public function addTitle($data) {
432
+	public function addTitle($data)
433
+	{
430 434
 		$this->title .= $data;
431 435
 
432 436
 		return 0;
@@ -439,7 +443,8 @@  discard block
 block discarded – undo
439 443
 	 *
440 444
 	 * @return int
441 445
 	 */
442
-	public function addDescription($data) {
446
+	public function addDescription($data)
447
+	{
443 448
 		$this->rsubject .= $data;
444 449
 
445 450
 		return 0;
@@ -452,7 +457,8 @@  discard block
 block discarded – undo
452 457
 	 *
453 458
 	 * @return int
454 459
 	 */
455
-	public function addStyle($style) {
460
+	public function addStyle($style)
461
+	{
456 462
 		$this->Styles[$style['name']] = $style;
457 463
 
458 464
 		return 0;
@@ -465,7 +471,8 @@  discard block
 block discarded – undo
465 471
 	 *
466 472
 	 * @return array
467 473
 	 */
468
-	public function getStyle($s) {
474
+	public function getStyle($s)
475
+	{
469 476
 		if (!isset($this->Styles[$s])) {
470 477
 			return current($this->Styles);
471 478
 		}
Please login to merge, or discard this patch.