@@ -119,8 +119,7 @@ |
||
119 | 119 | if ('file-uri' === $params->fromPost('return')) { |
120 | 120 | $content = $viewHelperManager->get('basepath') |
121 | 121 | ->__invoke($form->getHydrator()->getLastUploadedFile()->getUri()); |
122 | - } |
|
123 | - else { |
|
122 | + } else { |
|
124 | 123 | if ($form instanceof SummaryFormInterface) { |
125 | 124 | $form->setRenderMode(SummaryFormInterface::RENDER_SUMMARY); |
126 | 125 | $viewHelper = 'summaryForm'; |
@@ -54,16 +54,15 @@ |
||
54 | 54 | |
55 | 55 | try { |
56 | 56 | $parameter_instances[] = $parentLocator->get($cn); |
57 | - } |
|
58 | - catch (\Exception $x) { |
|
57 | + } catch (\Exception $x) { |
|
59 | 58 | echo __CLASS__ |
60 | 59 | . " couldn't create an instance of $cn to satisfy the constructor for $requestedName."; |
61 | 60 | exit; |
62 | 61 | } |
63 | - } |
|
64 | - else{ |
|
65 | - if( $p->isArray() && $p->getName() == 'config' ) |
|
66 | - $parameter_instances[] = $parentLocator->get('config'); |
|
62 | + } else{ |
|
63 | + if( $p->isArray() && $p->getName() == 'config' ) { |
|
64 | + $parameter_instances[] = $parentLocator->get('config'); |
|
65 | + } |
|
67 | 66 | } |
68 | 67 | |
69 | 68 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | $method = 'iSave'.$type; |
73 | 73 | if(method_exists($this,$method)){ |
74 | 74 | call_user_func([$this,$method]); |
75 | - }else{ |
|
75 | + } else{ |
|
76 | 76 | $locator = $this->elementMap[$type].'-buttons-submit'; |
77 | 77 | $this->coreContext->scrollIntoView($locator); |
78 | 78 | $element = $this->minkContext->getSession()->getPage()->find('css',$locator); |
@@ -65,11 +65,11 @@ |
||
65 | 65 | $type = $mailServiceOptions->getTransportClass(); |
66 | 66 | if (MailService::TRANSPORT_SMTP == $type) { |
67 | 67 | return new Smtp($mailServiceOptions); |
68 | - }elseif(MailService::TRANSPORT_FILE == $type){ |
|
68 | + } elseif(MailService::TRANSPORT_FILE == $type){ |
|
69 | 69 | $fileOptions = new FileOptions(); |
70 | 70 | $fileOptions->setPath($mailServiceOptions->getPath()); |
71 | 71 | return new FileTransport($fileOptions); |
72 | - }elseif(MailService::TRANSPORT_SENDMAIL == $type){ |
|
72 | + } elseif(MailService::TRANSPORT_SENDMAIL == $type){ |
|
73 | 73 | return new Sendmail(); |
74 | 74 | } |
75 | 75 |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | JobContext::removeJobByUser($user); |
94 | 94 | $repo->remove($user,true); |
95 | 95 | $repo->getDocumentManager()->refresh($user); |
96 | - }catch (\Exception $e){ |
|
96 | + } catch (\Exception $e){ |
|
97 | 97 | |
98 | 98 | } |
99 | 99 | } |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | $organization->setOrganizationName($organizationName); |
281 | 281 | $permissions = $organization->getPermissions(); |
282 | 282 | $permissions->grant($user,Permissions::PERMISSION_ALL); |
283 | - }else { |
|
283 | + } else { |
|
284 | 284 | $organization->getPermissions()->grant($user,Permissions::PERMISSION_ALL); |
285 | 285 | } |
286 | 286 | $organization->setUser($user); |