@@ -331,15 +331,15 @@ discard block |
||
331 | 331 | public function toArray(): array |
332 | 332 | { |
333 | 333 | $aCall = parent::toArray(); |
334 | - if(($this->aConfirm)) |
|
334 | + if (($this->aConfirm)) |
|
335 | 335 | { |
336 | 336 | $aCall['confirm'] = $this->aConfirm; |
337 | 337 | } |
338 | - if(($this->aCondition)) |
|
338 | + if (($this->aCondition)) |
|
339 | 339 | { |
340 | 340 | $aCall['condition'] = $this->aCondition; |
341 | 341 | } |
342 | - if(($this->aMessage)) |
|
342 | + if (($this->aMessage)) |
|
343 | 343 | { |
344 | 344 | $aCall['else'] = $this->aMessage; |
345 | 345 | } |
@@ -353,9 +353,9 @@ discard block |
||
353 | 353 | */ |
354 | 354 | private function findPageNumber(): ?ParameterInterface |
355 | 355 | { |
356 | - foreach($this->aParameters as $xParameter) |
|
356 | + foreach ($this->aParameters as $xParameter) |
|
357 | 357 | { |
358 | - if($xParameter->getType() === Parameter::PAGE_NUMBER) |
|
358 | + if ($xParameter->getType() === Parameter::PAGE_NUMBER) |
|
359 | 359 | { |
360 | 360 | return $xParameter; |
361 | 361 | } |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | { |
385 | 385 | /** @var Parameter */ |
386 | 386 | $xParameter = $this->findPageNumber(); |
387 | - if($xParameter !== null) |
|
387 | + if ($xParameter !== null) |
|
388 | 388 | { |
389 | 389 | $xParameter->setValue($nPageNumber); |
390 | 390 | } |
@@ -44,8 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string |
46 | 46 | { |
47 | - return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : |
|
48 | - 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}'; |
|
47 | + return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}'; |
|
49 | 48 | } |
50 | 49 | |
51 | 50 | /** |
@@ -53,7 +52,7 @@ discard block |
||
53 | 52 | */ |
54 | 53 | protected function alert(string $sMessage, string $sTitle, string $sType) |
55 | 54 | { |
56 | - if(!empty($sTitle)) |
|
55 | + if (!empty($sTitle)) |
|
57 | 56 | { |
58 | 57 | $sMessage = '<b>' . $sTitle . '</b><br/>' . $sMessage; |
59 | 58 | } |