@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $app['application.mailer'] |
| 111 | 111 | ->swiftMessageInitializeAndSend(array( |
| 112 | 112 | 'subject' => $app['name'].' - '.$app['translator']->trans('Welcome'), |
| 113 | - 'to' => array( $userEntity->getEmail() ), |
|
| 113 | + 'to' => array($userEntity->getEmail()), |
|
| 114 | 114 | 'body' => 'emails/users/register-welcome.html.twig', |
| 115 | 115 | 'type' => 'user.register.welcome', |
| 116 | 116 | 'templateData' => array( |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $app['application.mailer'] |
| 144 | 144 | ->swiftMessageInitializeAndSend(array( |
| 145 | 145 | 'subject' => $app['name'].' - '.$app['translator']->trans('Registration'), |
| 146 | - 'to' => array( $userEntity->getEmail() ), |
|
| 146 | + 'to' => array($userEntity->getEmail()), |
|
| 147 | 147 | 'body' => 'emails/users/register.html.twig', |
| 148 | 148 | 'type' => 'user.register', |
| 149 | 149 | 'templateData' => array( |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | $app['application.mailer'] |
| 262 | 262 | ->swiftMessageInitializeAndSend(array( |
| 263 | 263 | 'subject' => $app['name'].' - '.$app['translator']->trans('Reset password'), |
| 264 | - 'to' => array( $userEntity->getEmail() ), |
|
| 264 | + 'to' => array($userEntity->getEmail()), |
|
| 265 | 265 | 'body' => 'emails/users/reset-password.html.twig', |
| 266 | 266 | 'type' => 'user.reset_password', |
| 267 | 267 | 'templateData' => array( |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | 'data_class' => 'Application\Entity\UserEntity', |
| 50 | 50 | 'csrf_protection' => true, |
| 51 | 51 | 'csrf_field_name' => 'csrf_token', |
| 52 | - 'validation_groups' => function (FormInterface $form) use ($self) { |
|
| 52 | + 'validation_groups' => function(FormInterface $form) use ($self) { |
|
| 53 | 53 | $action = $self->action; |
| 54 | 54 | |
| 55 | 55 | if ($action == 'reset') { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | { |
| 71 | 71 | $resolver->setDefaults(array( |
| 72 | 72 | 'data_class' => 'Application\Entity\UserEntity', |
| 73 | - 'validation_groups' => function (FormInterface $form) { |
|
| 73 | + 'validation_groups' => function(FormInterface $form) { |
|
| 74 | 74 | $user = $form->getData(); |
| 75 | 75 | $validationGroups = array(); |
| 76 | 76 | |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | */ |
| 116 | 116 | public function send($swiftMessage = false) |
| 117 | 117 | { |
| 118 | - if (! $swiftMessage) { |
|
| 118 | + if (!$swiftMessage) { |
|
| 119 | 119 | $swiftMessage = $this->getSwiftMessageInstance(); |
| 120 | 120 | } |
| 121 | 121 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | $currentPage = 1; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - if (! isset($options['searchParameter'])) { |
|
| 40 | + if (!isset($options['searchParameter'])) { |
|
| 41 | 41 | $options['searchParameter'] = 'search'; |
| 42 | 42 | } |
| 43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $user = $userByEmail; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - if (! $user && $showExceptionIfNotExistent) { |
|
| 54 | + if (!$user && $showExceptionIfNotExistent) { |
|
| 55 | 55 | throw new UsernameNotFoundException( |
| 56 | 56 | sprintf( |
| 57 | 57 | 'Username or Email "%s" does not exist.', |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | public function refreshUser(UserInterface $user) |
| 67 | 67 | { |
| 68 | - if (! $user instanceof UserEntity) { |
|
| 68 | + if (!$user instanceof UserEntity) { |
|
| 69 | 69 | throw new UnsupportedUserException( |
| 70 | 70 | sprintf( |
| 71 | 71 | 'Instances of "%s" are not supported.', |
@@ -14,11 +14,11 @@ |
||
| 14 | 14 | { |
| 15 | 15 | $root = dirname(dirname(dirname(dirname(__FILE__)))); |
| 16 | 16 | |
| 17 | - if (! file_exists($root.'/app/configs/global-local.php')) { |
|
| 17 | + if (!file_exists($root.'/app/configs/global-local.php')) { |
|
| 18 | 18 | fopen($root.'/app/configs/global-local.php', 'w'); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | - if (! file_exists($root.'/app/configs/environments/development.php')) { |
|
| 21 | + if (!file_exists($root.'/app/configs/environments/development.php')) { |
|
| 22 | 22 | fopen($root.'/app/configs/environments/development.php', 'w'); |
| 23 | 23 | } |
| 24 | 24 | } |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public static function prepareUploadsFolder($uploadsDirectory) |
| 66 | 66 | { |
| 67 | - if (! $uploadsDirectory) { |
|
| 67 | + if (!$uploadsDirectory) { |
|
| 68 | 68 | return false; |
| 69 | 69 | } |
| 70 | 70 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | $uploadsDirectory = 'web/assets/uploads'; |
| 74 | 74 | |
| 75 | - if (! $fs->exists($uploadsDirectory)) { |
|
| 75 | + if (!$fs->exists($uploadsDirectory)) { |
|
| 76 | 76 | $fs->mkdir($uploadsDirectory, 0777); |
| 77 | 77 | } |
| 78 | 78 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $sharedDirectory = $root.'/shared/'; |
| 107 | 107 | |
| 108 | 108 | // Create the shared directory first (if it does not exists) |
| 109 | - if (! $fs->exists($sharedDirectory)) { |
|
| 109 | + if (!$fs->exists($sharedDirectory)) { |
|
| 110 | 110 | $fs->mkdir($sharedDirectory, 0777); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $pathDirectory = $releaseRoot.$path; |
| 115 | 115 | $sharedPathDirectory = $sharedDirectory.$path; |
| 116 | 116 | |
| 117 | - if (! $fs->exists($sharedPathDirectory)) { |
|
| 117 | + if (!$fs->exists($sharedPathDirectory)) { |
|
| 118 | 118 | $fs->mkdir($sharedPathDirectory, 0777); |
| 119 | 119 | } |
| 120 | 120 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | if ($fileMessageStrings) { |
| 77 | 77 | foreach ($fileMessageStrings as $fileMessageString) { |
| 78 | - if (! isset($allMessages[$fileMessageString])) { |
|
| 78 | + if (!isset($allMessages[$fileMessageString])) { |
|
| 79 | 79 | $allMessages[$fileMessageString] = $fileMessageString; |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -92,13 +92,13 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | if ($allMessages) { |
| 94 | 94 | foreach ($allMessages as $singleMessageKey => $singleMessage) { |
| 95 | - if (! isset($translatedMessages[$singleMessageKey])) { |
|
| 95 | + if (!isset($translatedMessages[$singleMessageKey])) { |
|
| 96 | 96 | $untranslatedMessages[$singleMessageKey] = $singleMessage; |
| 97 | 97 | } |
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - if (! empty($untranslatedMessages)) { |
|
| 101 | + if (!empty($untranslatedMessages)) { |
|
| 102 | 102 | $dumper = new Dumper(); |
| 103 | 103 | |
| 104 | 104 | $yaml = $dumper->dump($untranslatedMessages, 1); |