@@ -29,8 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string |
| 31 | 31 | { |
| 32 | - return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : |
|
| 33 | - 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}'; |
|
| 32 | + return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}'; |
|
| 34 | 33 | } |
| 35 | 34 | |
| 36 | 35 | /** |
@@ -59,6 +59,6 @@ |
||
| 59 | 59 | */ |
| 60 | 60 | public function getValue() |
| 61 | 61 | { |
| 62 | - return "'" . $this->sField . "'" ; // The field id is surrounded with simple quotes. |
|
| 62 | + return "'" . $this->sField . "'"; // The field id is surrounded with simple quotes. |
|
| 63 | 63 | } |
| 64 | 64 | } |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | $this->xManager->registry['upload'] = UploadAnnotation::class; |
| 45 | 45 | $this->xManager->registry['databag'] = DataBagAnnotation::class; |
| 46 | 46 | $this->xManager->registry['exclude'] = ExcludeAnnotation::class; |
| 47 | - $this->xManager->registry['before'] = BeforeAnnotation::class;; |
|
| 48 | - $this->xManager->registry['after'] = AfterAnnotation::class;; |
|
| 47 | + $this->xManager->registry['before'] = BeforeAnnotation::class; ; |
|
| 48 | + $this->xManager->registry['after'] = AfterAnnotation::class; ; |
|
| 49 | 49 | // Missing standard annotations. |
| 50 | 50 | // We need to define this, otherwise they throw an exception, and make the whole processing fail. |
| 51 | 51 | $this->xManager->registry['const'] = false; |