@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function getConfig() |
| 30 | 30 | { |
| 31 | - return include __DIR__ . '/../config/module.config.php'; |
|
| 31 | + return include __DIR__.'/../config/module.config.php'; |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function onBootstrap(MvcEvent $e) |
@@ -74,14 +74,14 @@ |
||
| 74 | 74 | $count = $options->getAttachmentsCount(); |
| 75 | 75 | |
| 76 | 76 | $form->setIsDisableCapable(false) |
| 77 | - ->setIsDisableElementsCapable(false) |
|
| 78 | - ->setIsDescriptionsEnabled(true) |
|
| 79 | - ->setDescription( |
|
| 77 | + ->setIsDisableElementsCapable(false) |
|
| 78 | + ->setIsDescriptionsEnabled(true) |
|
| 79 | + ->setDescription( |
|
| 80 | 80 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
| 81 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
| 82 | - ) |
|
| 83 | - ->setParam('return', 'file-uri') |
|
| 84 | - ->setLabel(/*@translate*/ 'Attachments'); |
|
| 81 | + [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
| 82 | + ) |
|
| 83 | + ->setParam('return', 'file-uri') |
|
| 84 | + ->setLabel(/*@translate*/ 'Attachments'); |
|
| 85 | 85 | |
| 86 | 86 | /* @var $file \Core\Form\Element\FileUpload */ |
| 87 | 87 | $file = $form->get($this->fileName); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @var string |
| 54 | 54 | */ |
| 55 | - protected $options="Cv/Options"; |
|
| 55 | + protected $options = "Cv/Options"; |
|
| 56 | 56 | |
| 57 | 57 | |
| 58 | 58 | /** |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ->setIsDescriptionsEnabled(true) |
| 78 | 78 | ->setDescription( |
| 79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
| 80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
| 80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
| 81 | 81 | ) |
| 82 | 82 | ->setParam('return', 'file-uri') |
| 83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | public function setCurrentIndicator($currentIndicator) |
| 80 | 80 | { |
| 81 | - $this->currentIndicator=$currentIndicator; |
|
| 81 | + $this->currentIndicator = $currentIndicator; |
|
| 82 | 82 | return $this; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | public function setDesiredJob($desiredJob) |
| 88 | 88 | { |
| 89 | - $this->desiredJob=$desiredJob; |
|
| 89 | + $this->desiredJob = $desiredJob; |
|
| 90 | 90 | return $this; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | */ |
| 106 | 106 | public function setDesiredLocation($desiredLocation) |
| 107 | 107 | { |
| 108 | - $this->desiredLocation=$desiredLocation; |
|
| 108 | + $this->desiredLocation = $desiredLocation; |
|
| 109 | 109 | return $this; |
| 110 | 110 | } |
| 111 | 111 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function setWillingnessToTravel($willingnessToTravel) |
| 145 | 145 | { |
| 146 | - $this->willingnessToTravel=$willingnessToTravel; |
|
| 146 | + $this->willingnessToTravel = $willingnessToTravel; |
|
| 147 | 147 | return $this; |
| 148 | 148 | } |
| 149 | 149 | |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | */ |
| 163 | 163 | public function setExpectedSalary($expectedSalary) |
| 164 | 164 | { |
| 165 | - $this->expectedSalary=$expectedSalary; |
|
| 165 | + $this->expectedSalary = $expectedSalary; |
|
| 166 | 166 | return $this; |
| 167 | 167 | } |
| 168 | 168 | |
@@ -15,9 +15,9 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | interface StatusInterface extends EntityInterface |
| 17 | 17 | { |
| 18 | - const NONPUBLIC = /*@translate*/ 'private'; |
|
| 18 | + const NONPUBLIC = /*@translate*/ 'private'; |
|
| 19 | 19 | |
| 20 | - const PUBLIC_TO_ALL = /*@translate*/ 'public to all'; |
|
| 20 | + const PUBLIC_TO_ALL = /*@translate*/ 'public to all'; |
|
| 21 | 21 | |
| 22 | 22 | public function __construct($status = self::NONPUBLIC); |
| 23 | 23 | |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | public function __construct($status = self::NONPUBLIC) |
| 48 | 48 | { |
| 49 | 49 | if (!isset(static::$orderMap[$status])) { |
| 50 | - throw new \DomainException('Unknown status: ' . $status); |
|
| 50 | + throw new \DomainException('Unknown status: '.$status); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | $this->name = $status; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function setName($name) |
| 35 | 35 | { |
| 36 | - $this->name=$name; |
|
| 36 | + $this->name = $name; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | */ |
| 52 | 52 | public function setLevel($level) |
| 53 | 53 | { |
| 54 | - $this->level=$level; |
|
| 54 | + $this->level = $level; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -10,10 +10,10 @@ |
||
| 10 | 10 | use Core\Entity\IdentifiableEntityInterface; |
| 11 | 11 | |
| 12 | 12 | interface CvInterface extends EntityInterface, |
| 13 | - IdentifiableEntityInterface, |
|
| 14 | - DraftableEntityInterface, |
|
| 15 | - PermissionsAwareInterface, |
|
| 16 | - ModificationDateAwareEntityInterface |
|
| 13 | + IdentifiableEntityInterface, |
|
| 14 | + DraftableEntityInterface, |
|
| 15 | + PermissionsAwareInterface, |
|
| 16 | + ModificationDateAwareEntityInterface |
|
| 17 | 17 | { |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -60,11 +60,11 @@ |
||
| 60 | 60 | protected $skills; |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * Skills |
|
| 64 | - * |
|
| 65 | - * @var ArrayCollection |
|
| 66 | - * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
| 67 | - */ |
|
| 63 | + * Skills |
|
| 64 | + * |
|
| 65 | + * @var ArrayCollection |
|
| 66 | + * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
| 67 | + */ |
|
| 68 | 68 | protected $languageSkills; |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @var array |
| 83 | 83 | * @ODM\Field(type="collection") |
| 84 | 84 | */ |
| 85 | - protected $nativeLanguages=[]; |
|
| 85 | + protected $nativeLanguages = []; |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | */ |
| 268 | 268 | public function setIsDraft($isDraft) |
| 269 | 269 | { |
| 270 | - $this->isDraft=$isDraft; |
|
| 270 | + $this->isDraft = $isDraft; |
|
| 271 | 271 | return $this; |
| 272 | 272 | } |
| 273 | 273 | |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | */ |
| 338 | 338 | public function setNativeLanguages($nativeLanguages) |
| 339 | 339 | { |
| 340 | - $this->nativeLanguages=$nativeLanguages; |
|
| 340 | + $this->nativeLanguages = $nativeLanguages; |
|
| 341 | 341 | return $this; |
| 342 | 342 | } |
| 343 | 343 | |