@@ -47,7 +47,7 @@ |
||
| 47 | 47 | extract($params); |
| 48 | 48 | |
| 49 | 49 | if (!empty($createOrganizationName)) { |
| 50 | - $organizationName = OrganizationNameEntityProvider::createEntityWithRandomData((array)$createOrganizationName); |
|
| 50 | + $organizationName = OrganizationNameEntityProvider::createEntityWithRandomData((array) $createOrganizationName); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | return array_merge($params, compact('organizationName')); |
@@ -84,9 +84,9 @@ |
||
| 84 | 84 | array('setLabelRequirements', 'getLabelRequirements', 'test1'), |
| 85 | 85 | array('setLabelBenefits', 'getLabelBenefits', 'test2'), |
| 86 | 86 | array('setLabelQualifications', 'getLabelQualifications', 'test2'), |
| 87 | - array(null , 'getLabelRequirements', 'Requirements'), |
|
| 88 | - array(null , 'getLabelBenefits', 'Benefits'), |
|
| 89 | - array(null , 'getLabelQualifications', 'Qualifications'), |
|
| 87 | + array(null, 'getLabelRequirements', 'Requirements'), |
|
| 88 | + array(null, 'getLabelBenefits', 'Benefits'), |
|
| 89 | + array(null, 'getLabelQualifications', 'Qualifications'), |
|
| 90 | 90 | |
| 91 | 91 | ); |
| 92 | 92 | } |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | 'attributes' => [ |
| 122 | 122 | 'data-placeholder' => /*@translate*/ 'please select', |
| 123 | 123 | 'data-allowclear' => 'false', |
| 124 | - 'data-searchbox' => -1, // hide the search box |
|
| 124 | + 'data-searchbox' => -1, // hide the search box |
|
| 125 | 125 | 'required' => true, // mark label as required |
| 126 | 126 | ], |
| 127 | 127 | ) |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * Gets the Day of the date of birth |
| 31 | 31 | * |
| 32 | 32 | * @return string |
| 33 | - */ |
|
| 33 | + */ |
|
| 34 | 34 | public function getBirthDay(); |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Gets the month of the date of birth |
| 45 | 45 | * |
| 46 | 46 | * @return string |
| 47 | - */ |
|
| 47 | + */ |
|
| 48 | 48 | public function getBirthMonth(); |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * Gets the Year of the date of birth. |
| 59 | 59 | * |
| 60 | 60 | * @return string |
| 61 | - */ |
|
| 61 | + */ |
|
| 62 | 62 | public function getBirthYear(); |
| 63 | 63 | |
| 64 | 64 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * Gets the gender |
| 112 | 112 | * |
| 113 | 113 | * @return string |
| 114 | - */ |
|
| 114 | + */ |
|
| 115 | 115 | public function getGender(); |
| 116 | 116 | |
| 117 | 117 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * Gets the users street |
| 155 | 155 | * |
| 156 | 156 | * @return string |
| 157 | - */ |
|
| 157 | + */ |
|
| 158 | 158 | public function getStreet(); |
| 159 | 159 | |
| 160 | 160 | /** |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | |
| 65 | 65 | $this->add($fieldset); |
| 66 | 66 | |
| 67 | - $mode=$options->getMode(); |
|
| 67 | + $mode = $options->getMode(); |
|
| 68 | 68 | if (in_array($mode, [CaptchaOptions::RE_CAPTCHA, CaptchaOptions::IMAGE])) { |
| 69 | 69 | if ($mode == CaptchaOptions::IMAGE) { |
| 70 | 70 | $captcha = new Image($options->getImage()); |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | public function init() |
| 29 | 29 | { |
| 30 | 30 | $this->setName('data') |
| 31 | - ->setLabel('Group data') |
|
| 32 | - ->setUseAsBaseFieldset(true) |
|
| 33 | - ->setHydrator(new EntityHydrator()); |
|
| 31 | + ->setLabel('Group data') |
|
| 32 | + ->setUseAsBaseFieldset(true) |
|
| 33 | + ->setHydrator(new EntityHydrator()); |
|
| 34 | 34 | |
| 35 | 35 | $this->add( |
| 36 | 36 | array( |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'required' => true, |
| 70 | 70 | 'validators' => array( |
| 71 | 71 | array('name' => 'Auth/Form/UniqueGroupName', |
| 72 | - 'options' => array( |
|
| 72 | + 'options' => array( |
|
| 73 | 73 | 'allowName' => 'edit' == $this->getOption('mode') |
| 74 | 74 | ? $this->getObject()->getName() |
| 75 | 75 | : null |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | { |
| 21 | 21 | |
| 22 | 22 | protected $sortPropertiesMap = [ |
| 23 | - 'name' => [ 'info.lastName', 'info.firstName', 'info.email' ], |
|
| 23 | + 'name' => ['info.lastName', 'info.firstName', 'info.email'], |
|
| 24 | 24 | ]; |
| 25 | 25 | |
| 26 | 26 | /** |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | public function getUri() |
| 31 | 31 | { |
| 32 | - return '/file/Auth.UserImage/' . $this->id; |
|
| 32 | + return '/file/Auth.UserImage/'.$this->id; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | public function filter($value) |
| 11 | 11 | { |
| 12 | - $weird = sha1(md5($value) . md5(strrev($value))); |
|
| 12 | + $weird = sha1(md5($value).md5(strrev($value))); |
|
| 13 | 13 | return $weird; |
| 14 | 14 | } |
| 15 | 15 | } |