@@ -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 | /** |
@@ -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 |
@@ -93,8 +93,8 @@ |
||
| 93 | 93 | // Create a file with the class/file map. |
| 94 | 94 | // Stupid syntax highlighters make separating < from PHP declaration necessary |
| 95 | 95 | $content = '<' . "?php\n" |
| 96 | - . "\n" |
|
| 97 | - . 'return ' . var_export($config, true) . ';'; |
|
| 96 | + . "\n" |
|
| 97 | + . 'return ' . var_export($config, true) . ';'; |
|
| 98 | 98 | |
| 99 | 99 | // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op |
| 100 | 100 | $content = str_replace("\\'", "'", $content); |
@@ -211,14 +211,14 @@ |
||
| 211 | 211 | { |
| 212 | 212 | return $this->repository; |
| 213 | 213 | } |
| 214 | - /** |
|
| 215 | - * @param SocialProfilePlugin |
|
| 216 | - * @return HybridAuth |
|
| 217 | - */ |
|
| 218 | - public function setSocialProfilePlugin(SocialProfilePlugin $socialProfilePlugin) |
|
| 219 | - { |
|
| 220 | - $this->socialProfilePlugin = $socialProfilePlugin; |
|
| 214 | + /** |
|
| 215 | + * @param SocialProfilePlugin |
|
| 216 | + * @return HybridAuth |
|
| 217 | + */ |
|
| 218 | + public function setSocialProfilePlugin(SocialProfilePlugin $socialProfilePlugin) |
|
| 219 | + { |
|
| 220 | + $this->socialProfilePlugin = $socialProfilePlugin; |
|
| 221 | 221 | |
| 222 | - return $this; |
|
| 223 | - } |
|
| 222 | + return $this; |
|
| 223 | + } |
|
| 224 | 224 | } |
@@ -61,14 +61,14 @@ |
||
| 61 | 61 | return $this->useDefaultValidation ? \Zend\Form\Form::isValid() : parent::isValid(); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - /** |
|
| 65 | - * @param bool $bool |
|
| 66 | - * @return SocialProfiles |
|
| 67 | - */ |
|
| 68 | - public function setUseDefaultValidation($bool) |
|
| 69 | - { |
|
| 70 | - $this->useDefaultValidation = (bool)$bool; |
|
| 64 | + /** |
|
| 65 | + * @param bool $bool |
|
| 66 | + * @return SocialProfiles |
|
| 67 | + */ |
|
| 68 | + public function setUseDefaultValidation($bool) |
|
| 69 | + { |
|
| 70 | + $this->useDefaultValidation = (bool)$bool; |
|
| 71 | 71 | |
| 72 | - return $this; |
|
| 73 | - } |
|
| 72 | + return $this; |
|
| 73 | + } |
|
| 74 | 74 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | ]; |
| 34 | 34 | |
| 35 | 35 | // do nothing for allowed routes |
| 36 | - if (in_array($routeName, $allowedRoutes)) |
|
| 36 | + if (in_array($routeName, $allowedRoutes)) |
|
| 37 | 37 | { |
| 38 | 38 | return; |
| 39 | 39 | } |
@@ -84,9 +84,9 @@ |
||
| 84 | 84 | $imageStrategy = $infoContainer->getForm('info.image') |
| 85 | 85 | ->getHydrator() |
| 86 | 86 | ->getStrategy('image'); |
| 87 | - $fileEntity = $imageStrategy->getFileEntity(); |
|
| 88 | - $fileEntity->setUser($user); |
|
| 89 | - $imageStrategy->setFileEntity($fileEntity); |
|
| 87 | + $fileEntity = $imageStrategy->getFileEntity(); |
|
| 88 | + $fileEntity->setUser($user); |
|
| 89 | + $imageStrategy->setFileEntity($fileEntity); |
|
| 90 | 90 | |
| 91 | 91 | if ($this->request->isPost()) { |
| 92 | 92 | $formName = $params->fromQuery('form'); |
@@ -57,9 +57,9 @@ discard block |
||
| 57 | 57 | if ($exception instanceof UnauthorizedImageAccessException) { |
| 58 | 58 | $image = __DIR__ . '/../../../../../public/images/unauthorized-access.png'; |
| 59 | 59 | $response->setStatusCode(Response::STATUS_CODE_403) |
| 60 | - ->setContent(file_get_contents($image)) |
|
| 61 | - ->getHeaders() |
|
| 62 | - ->addHeaderLine('Content-Type', 'image/png'); |
|
| 60 | + ->setContent(file_get_contents($image)) |
|
| 61 | + ->getHeaders() |
|
| 62 | + ->addHeaderLine('Content-Type', 'image/png'); |
|
| 63 | 63 | $e->stopPropagation(); |
| 64 | 64 | $response->sendHeaders(); |
| 65 | 65 | //echo file_get_contents($image); |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | $application = $e->getApplication(); |
| 73 | - $auth = $application->getServiceManager()->get('AuthenticationService'); |
|
| 73 | + $auth = $application->getServiceManager()->get('AuthenticationService'); |
|
| 74 | 74 | |
| 75 | 75 | if (!$auth->hasIdentity()) { |
| 76 | 76 | $routeMatch = $e->getRouteMatch(); |
@@ -102,9 +102,9 @@ discard block |
||
| 102 | 102 | $model->setTemplate($this->getExceptionTemplate()); |
| 103 | 103 | $e->setResult($model); |
| 104 | 104 | |
| 105 | - // $statusCode = $response->getStatusCode(); |
|
| 106 | - // if ($statusCode === 200) { |
|
| 105 | + // $statusCode = $response->getStatusCode(); |
|
| 106 | + // if ($statusCode === 200) { |
|
| 107 | 107 | $response->setStatusCode(Response::STATUS_CODE_403); |
| 108 | - // } |
|
| 108 | + // } |
|
| 109 | 109 | } |
| 110 | 110 | } |
@@ -98,9 +98,9 @@ |
||
| 98 | 98 | ); |
| 99 | 99 | |
| 100 | 100 | $this->setCount(0) |
| 101 | - ->setAllowRemove(true) |
|
| 102 | - ->setAllowAdd(true) |
|
| 103 | - ->setShouldCreateTemplate(true); |
|
| 101 | + ->setAllowRemove(true) |
|
| 102 | + ->setAllowAdd(true) |
|
| 103 | + ->setShouldCreateTemplate(true); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |