@@ -32,14 +32,14 @@ |
||
32 | 32 | */ |
33 | 33 | protected $formats = ['pdf', 'rtf', 'xls', 'xlsx', 'docx', 'odt', 'ods', 'pptx', 'csv', 'html', 'xhtml', 'xml', 'jrprint']; |
34 | 34 | |
35 | - protected $lang; |
|
35 | + protected $lang; |
|
36 | 36 | |
37 | 37 | /** |
38 | 38 | * PHPJasper constructor |
39 | 39 | */ |
40 | 40 | public function __construct($lang = "pt_BR.UTF-8") |
41 | 41 | { |
42 | - $this->lang = $lang; |
|
42 | + $this->lang = $lang; |
|
43 | 43 | $this->executable = 'jasperstarter'; |
44 | 44 | $this->pathExecutable = __DIR__ . '/../bin/jasperstarter/bin'; |
45 | 45 | $this->windows = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? true : false; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace PHPJasper; |
6 | 6 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | private function checkServer() |
52 | 52 | { |
53 | - return $this->command = ($this->windows) ? $this->executable : 'LANG=' . $this->lang . ' ./' . $this->executable; |
|
53 | + return $this->command = ($this->windows) ? $this->executable : 'LANG=' . $this->lang . ' ./' . $this->executable; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | |
190 | 190 | $this->command = $this->checkServer(); |
191 | 191 | $this->command .= ' list_parameters '; |
192 | - $this->command .= '"'.realpath($input).'"'; |
|
192 | + $this->command .= '"' . realpath($input) . '"'; |
|
193 | 193 | |
194 | 194 | return $this; |
195 | 195 | } |