@@ -23,15 +23,15 @@ |
||
23 | 23 | class ApplicationsController extends BaseActionController |
24 | 24 | { |
25 | 25 | |
26 | - /** |
|
27 | - * @var array|\Admin\Model\ClientsTable |
|
28 | - */ |
|
29 | - protected $clientsTable; |
|
26 | + /** |
|
27 | + * @var array|\Admin\Model\ClientsTable |
|
28 | + */ |
|
29 | + protected $clientsTable; |
|
30 | 30 | |
31 | - /** |
|
32 | - * @var array|\Admin\Model\ApplicationsTable |
|
33 | - */ |
|
34 | - protected $applicationsTable; |
|
31 | + /** |
|
32 | + * @var array|\Admin\Model\ApplicationsTable |
|
33 | + */ |
|
34 | + protected $applicationsTable; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * initialize titles and toolbar items |
@@ -83,12 +83,12 @@ discard block |
||
83 | 83 | $dataObj = array(); |
84 | 84 | foreach ($aApplicationslist as $row) { |
85 | 85 | $data[] = $row; |
86 | - $dataObj[] = (object)$row; |
|
86 | + $dataObj[] = (object) $row; |
|
87 | 87 | } |
88 | - if ( $this->isXHR() ) { |
|
88 | + if ($this->isXHR()) { |
|
89 | 89 | $datatablesData = array('data' => $data); |
90 | 90 | $datatablesData['data'] = array_map( |
91 | - function ($row) use ($oController) { |
|
91 | + function($row) use ($oController) { |
|
92 | 92 | $actions = '<div class="button-group tiny btn-group btn-group-xs">'. |
93 | 93 | '<a class="button btn btn-default tiny btn-xs btn-clean btn-cta-xhr cta-xhr-modal" href="'.$oController->url()->fromRoute( |
94 | 94 | 'admin/applicationsedit', |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $applications->exchangeArray($form->getData()); |
144 | 144 | $this->getApplicationsTable()->saveApplication($applications); |
145 | 145 | $this->flashMessenger()->addSuccessMessage($this->translate('application has been saved')); |
146 | - if ( $this->isXHR() ) { |
|
146 | + if ($this->isXHR()) { |
|
147 | 147 | $tmplVars["showForm"] = false; |
148 | 148 | } else { |
149 | 149 | return $this->redirect()->toRoute('admin/applicationsedit', array('action' => 'index')); |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | return $this->redirect()->toRoute('admin/applicationsedit'); |
184 | 184 | } |
185 | 185 | |
186 | - $form = new ApplicationsForm(); |
|
186 | + $form = new ApplicationsForm(); |
|
187 | 187 | $form->bind($applications); |
188 | 188 | |
189 | 189 | $clients = $this->getClientsTable()->fetchAll()->toArray(); |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | if ($form->isValid()) { |
202 | 202 | $this->getApplicationsTable()->saveApplication($applications); |
203 | 203 | $this->flashMessenger()->addSuccessMessage($this->translate("application has been saved")); |
204 | - if ( $this->isXHR() ) { |
|
204 | + if ($this->isXHR()) { |
|
205 | 205 | $tmplVars["showForm"] = false; |
206 | 206 | } else { |
207 | 207 | return $this->redirect()->toRoute('admin/applicationsedit', array('action' => 'index')); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $id = (int) $request->getPost('id'); |
250 | 250 | $this->getApplicationsTable()->deleteApplication($id); |
251 | 251 | $this->flashMessenger()->addSuccessMessage($this->translate("application has been deleted")); |
252 | - if ( $this->isXHR() ) { |
|
252 | + if ($this->isXHR()) { |
|
253 | 253 | $tmplVars["showForm"] = false; |
254 | 254 | } else { |
255 | 255 | return $this->redirect()->toRoute('admin/applicationsedit', array('action' => 'index')); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * redirect to acl section |
25 | 25 | * @return mixed|\Zend\Http\Response|\Zend\View\Model\ViewModel |
26 | 26 | */ |
27 | - public function indexAction() |
|
27 | + public function indexAction() |
|
28 | 28 | { |
29 | 29 | return $this->redirect()->toRoute('admin/acledit', array()); |
30 | 30 | } |
@@ -46,9 +46,9 @@ discard block |
||
46 | 46 | */ |
47 | 47 | class ZfcuserController extends UserController |
48 | 48 | { |
49 | - use ControllerTranslatorTrait; |
|
50 | - use ControllerActiontitlesTrait; |
|
51 | - use ControllerToolbarTrait; |
|
49 | + use ControllerTranslatorTrait; |
|
50 | + use ControllerActiontitlesTrait; |
|
51 | + use ControllerToolbarTrait; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | // ...redirect to the login redirect route |
211 | 211 | return $this->redirect()->toRoute('zfcuser/login'); //$this->getOptions()->getLoginRedirectRoute()); |
212 | 212 | } |
213 | - $oIdentity = $this->zfcUserAuthentication()->getIdentity(); |
|
213 | + $oIdentity = $this->zfcUserAuthentication()->getIdentity(); |
|
214 | 214 | $oProfile = new \Admin\Model\UserProfile(); |
215 | 215 | $oProfile->load($oIdentity->getId()); |
216 | 216 | |
@@ -766,7 +766,7 @@ discard block |
||
766 | 766 | $sm = $this->getServiceLocator(); |
767 | 767 | $this->userTable = $sm->get('Admin\Model\UserTable'); |
768 | 768 | if (!$this->userTable instanceof \Admin\Model\UserTable) { |
769 | - throw new \Exception("invalid user table object: ".gettype($this->userTable)); |
|
769 | + throw new \Exception("invalid user table object: ".gettype($this->userTable)); |
|
770 | 770 | } |
771 | 771 | } |
772 | 772 | return $this->userTable; |
@@ -784,7 +784,7 @@ discard block |
||
784 | 784 | $sm = $this->getServiceLocator(); |
785 | 785 | $this->aclroleTable = $sm->get('Admin\Model\AclroleTable'); |
786 | 786 | if (!$this->aclroleTable instanceof \Admin\Model\AclroleTable) { |
787 | - throw new \Exception("invalid ACL role table object: ".gettype($this->aclroleTable)); |
|
787 | + throw new \Exception("invalid ACL role table object: ".gettype($this->aclroleTable)); |
|
788 | 788 | } |
789 | 789 | } |
790 | 790 | return $this->aclroleTable; |
@@ -798,7 +798,7 @@ discard block |
||
798 | 798 | */ |
799 | 799 | public function getOptions() |
800 | 800 | { |
801 | - return \Application\Module::getService('zfcuser_module_options'); |
|
801 | + return \Application\Module::getService('zfcuser_module_options'); |
|
802 | 802 | } |
803 | 803 | |
804 | 804 | } |
@@ -377,8 +377,8 @@ discard block |
||
377 | 377 | $request = $this->getRequest(); |
378 | 378 | //$service = $this->getUserService(); |
379 | 379 | $service = \Application\Module::getService('zfcuser_user_service'); |
380 | - $form = new RequestPasswordResetForm(null, $options); |
|
381 | - $translator = $this->getTranslator(); |
|
380 | + $form = new RequestPasswordResetForm(null, $options); |
|
381 | + $translator = $this->getTranslator(); |
|
382 | 382 | |
383 | 383 | // if password reset is disabled |
384 | 384 | if (!$config['zfcuser']['enable_passwordreset']) { |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | $redirect = false; |
392 | 392 | } |
393 | 393 | |
394 | - $redirectUrl = $this->url()->fromRoute('userrequestpasswordreset') . ($redirect ? '?redirect=' . rawurlencode($redirect) : ''); |
|
394 | + $redirectUrl = $this->url()->fromRoute('userrequestpasswordreset').($redirect ? '?redirect='.rawurlencode($redirect) : ''); |
|
395 | 395 | |
396 | 396 | if (!$request->isPost()) { |
397 | 397 | return array( |
@@ -439,7 +439,7 @@ discard block |
||
439 | 439 | sprintf($translator->translate("password reset email has been sent to user '%s'"), $identity) |
440 | 440 | ); |
441 | 441 | |
442 | - return $this->redirect()->toUrl($this->url()->fromRoute($config["zfcuser_registration_redirect_route"]) . ($redirect ? '?redirect='. rawurlencode($redirect) : '')); |
|
442 | + return $this->redirect()->toUrl($this->url()->fromRoute($config["zfcuser_registration_redirect_route"]).($redirect ? '?redirect='.rawurlencode($redirect) : '')); |
|
443 | 443 | |
444 | 444 | } |
445 | 445 | |
@@ -465,8 +465,8 @@ discard block |
||
465 | 465 | $request = $this->getRequest(); |
466 | 466 | //$service = $this->getUserService(); |
467 | 467 | $service = \Application\Module::getService('zfcuser_user_service'); |
468 | - $form = new ResetPasswordForm(null, $options); |
|
469 | - $translator = $this->getTranslator(); |
|
468 | + $form = new ResetPasswordForm(null, $options); |
|
469 | + $translator = $this->getTranslator(); |
|
470 | 470 | |
471 | 471 | // if password reset is disabled |
472 | 472 | if (!$config['zfcuser']['enable_passwordreset']) { |
@@ -479,9 +479,9 @@ discard block |
||
479 | 479 | $redirect = false; |
480 | 480 | } |
481 | 481 | |
482 | - $redirectUrl = $this->url()->fromRoute(static::ROUTE_LOGIN) . ($redirect ? '?redirect=' . rawurlencode($redirect) : ''); |
|
482 | + $redirectUrl = $this->url()->fromRoute(static::ROUTE_LOGIN).($redirect ? '?redirect='.rawurlencode($redirect) : ''); |
|
483 | 483 | |
484 | - if (!$request->isPost() ) { |
|
484 | + if (!$request->isPost()) { |
|
485 | 485 | |
486 | 486 | $user = false; |
487 | 487 | $userId = (int) $this->params()->fromRoute('user_id'); |
@@ -490,14 +490,14 @@ discard block |
||
490 | 490 | $userTable = \Application\Module::getService('zfcuser_user_mapper'); |
491 | 491 | $user = $userTable->findById($userId); |
492 | 492 | |
493 | - if (!$user ) { |
|
493 | + if (!$user) { |
|
494 | 494 | $this->flashMessenger()->addWarningMessage( |
495 | 495 | sprintf($translator->translate("invalid request"), '') |
496 | 496 | ); |
497 | 497 | return $this->redirect()->toUrl($redirectUrl); |
498 | 498 | } |
499 | 499 | |
500 | - if (empty($resetToken) || ($resetToken != $user->getToken()) ) { |
|
500 | + if (empty($resetToken) || ($resetToken != $user->getToken())) { |
|
501 | 501 | $this->flashMessenger()->addWarningMessage( |
502 | 502 | sprintf($translator->translate("invalid request"), '') |
503 | 503 | ); |
@@ -526,23 +526,23 @@ discard block |
||
526 | 526 | $userTable = \Application\Module::getService('zfcuser_user_mapper'); |
527 | 527 | $user = $userTable->findByEmail($userId); |
528 | 528 | |
529 | - if (!$user ) { |
|
529 | + if (!$user) { |
|
530 | 530 | $this->flashMessenger()->addWarningMessage( |
531 | 531 | sprintf($translator->translate("invalid request"), $userId) |
532 | 532 | ); |
533 | 533 | return $this->redirect()->toUrl($redirectUrl); |
534 | 534 | } |
535 | 535 | |
536 | - if (empty($resetToken) || ($resetToken != $user->getToken()) ) { |
|
536 | + if (empty($resetToken) || ($resetToken != $user->getToken())) { |
|
537 | 537 | $this->flashMessenger()->addWarningMessage( |
538 | 538 | sprintf($translator->translate("invalid request"), $resetToken) |
539 | 539 | ); |
540 | 540 | return $this->redirect()->toUrl($redirectUrl); |
541 | 541 | } |
542 | 542 | |
543 | - $form->setData((array)$this->params()->fromPost()); |
|
543 | + $form->setData((array) $this->params()->fromPost()); |
|
544 | 544 | |
545 | - if (!$form->isValid() ) { |
|
545 | + if (!$form->isValid()) { |
|
546 | 546 | |
547 | 547 | return array( |
548 | 548 | 'user' => $user, |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | ); |
569 | 569 | return $this->redirect()->toUrl( |
570 | 570 | $this->url()->fromRoute($config["zfcuser_registration_redirect_route"]) |
571 | - . ($redirect ? '?redirect='. rawurlencode($redirect) : '') |
|
571 | + . ($redirect ? '?redirect='.rawurlencode($redirect) : '') |
|
572 | 572 | ); |
573 | 573 | |
574 | 574 | } |
@@ -603,11 +603,11 @@ discard block |
||
603 | 603 | return $this->redirect()->toRoute($this->getOptions()->getLoginRedirectRoute()); |
604 | 604 | } |
605 | 605 | |
606 | - $form = new UserDataForm(); |
|
607 | - $translator = $this->getTranslator(); |
|
606 | + $form = new UserDataForm(); |
|
607 | + $translator = $this->getTranslator(); |
|
608 | 608 | |
609 | 609 | /** @var \Admin\Entity\User $oIdentity */ |
610 | - $oIdentity = $this->zfcUserAuthentication()->getIdentity(); |
|
610 | + $oIdentity = $this->zfcUserAuthentication()->getIdentity(); |
|
611 | 611 | /** @var \Admin\Model\UserData $oUser */ |
612 | 612 | $oUser = new \Admin\Model\UserData(); |
613 | 613 | |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | |
617 | 617 | $form->bind($oUser); |
618 | 618 | |
619 | - if (!$this->getRequest()->isPost() ) { |
|
619 | + if (!$this->getRequest()->isPost()) { |
|
620 | 620 | |
621 | 621 | return new ViewModel( |
622 | 622 | array( |
@@ -629,10 +629,10 @@ discard block |
||
629 | 629 | |
630 | 630 | } |
631 | 631 | |
632 | - $data = (array)$this->params()->fromPost(); |
|
632 | + $data = (array) $this->params()->fromPost(); |
|
633 | 633 | $form->setData($data); |
634 | 634 | |
635 | - if (!$form->isValid() ) { |
|
635 | + if (!$form->isValid()) { |
|
636 | 636 | |
637 | 637 | $this->flashMessenger()->addWarningMessage( |
638 | 638 | $translator->translate("user data could not be changed") |
@@ -658,7 +658,7 @@ discard block |
||
658 | 658 | $translator->translate("user data has been changed") |
659 | 659 | ); |
660 | 660 | |
661 | - if ($this->getRequest()->isXmlHttpRequest() ) { |
|
661 | + if ($this->getRequest()->isXmlHttpRequest()) { |
|
662 | 662 | return new ViewModel( |
663 | 663 | array( |
664 | 664 | 'showForm' => false, |
@@ -688,19 +688,19 @@ discard block |
||
688 | 688 | return $this->redirect()->toRoute($this->getOptions()->getLoginRedirectRoute()); |
689 | 689 | } |
690 | 690 | |
691 | - $form = new UserProfileForm(); |
|
692 | - $translator = $this->getTranslator(); |
|
691 | + $form = new UserProfileForm(); |
|
692 | + $translator = $this->getTranslator(); |
|
693 | 693 | /** |
694 | 694 | * @var \Zend\Http\PhpEnvironment\Request|\Zend\Http\Request $request |
695 | 695 | */ |
696 | 696 | $request = $this->getRequest(); |
697 | - $user = $this->zfcUserAuthentication()->getIdentity(); |
|
698 | - $userId = (int) $user->getId(); |
|
697 | + $user = $this->zfcUserAuthentication()->getIdentity(); |
|
698 | + $userId = (int) $user->getId(); |
|
699 | 699 | $profile = new UserProfile; |
700 | 700 | $profile->load($userId); |
701 | 701 | $form->bind($profile); |
702 | 702 | |
703 | - if (!$this->getRequest()->isPost() ) { |
|
703 | + if (!$this->getRequest()->isPost()) { |
|
704 | 704 | |
705 | 705 | return array( |
706 | 706 | 'showForm' => true, |
@@ -711,10 +711,10 @@ discard block |
||
711 | 711 | |
712 | 712 | } |
713 | 713 | |
714 | - $data = (array)$this->params()->fromPost(); |
|
714 | + $data = (array) $this->params()->fromPost(); |
|
715 | 715 | $form->setData($data); |
716 | 716 | |
717 | - if (!$form->isValid() ) { |
|
717 | + if (!$form->isValid()) { |
|
718 | 718 | |
719 | 719 | $this->flashMessenger()->addWarningMessage( |
720 | 720 | $translator->translate("user profile data could not be changed") |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | $translator->translate("user profile data has been changed") |
736 | 736 | ); |
737 | 737 | |
738 | - if ($request->isXmlHttpRequest() ) { |
|
738 | + if ($request->isXmlHttpRequest()) { |
|
739 | 739 | $response = array( |
740 | 740 | 'showForm' => false, |
741 | 741 | 'user' => $user, |
@@ -23,10 +23,10 @@ |
||
23 | 23 | class ClientsController extends BaseActionController |
24 | 24 | { |
25 | 25 | |
26 | - /** |
|
27 | - * @var array|\Admin\Model\ClientsTable |
|
28 | - */ |
|
29 | - protected $clientsTable; |
|
26 | + /** |
|
27 | + * @var array|\Admin\Model\ClientsTable |
|
28 | + */ |
|
29 | + protected $clientsTable; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * initialize titles and toolbar items |
@@ -69,11 +69,11 @@ discard block |
||
69 | 69 | { |
70 | 70 | $tmplVars = $this->getTemplateVars(); |
71 | 71 | $aClientslist = $this->getClientsTable()->fetchAll(); |
72 | - if ( $this->isXHR() ) { |
|
72 | + if ($this->isXHR()) { |
|
73 | 73 | $datatablesData = array('data' => $aClientslist->toArray()); |
74 | 74 | $oController = $this; |
75 | 75 | $datatablesData['data'] = array_map( |
76 | - function ($row) use ($oController) { |
|
76 | + function($row) use ($oController) { |
|
77 | 77 | $actions = '<div class="button-group tiny btn-group btn-group-xs">'. |
78 | 78 | '<a class="button btn btn-default tiny btn-xs btn-clean btn-cta-xhr cta-xhr-modal" href="'.$oController->url()->fromRoute( |
79 | 79 | 'admin/clientsedit', |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $clients->exchangeArray($form->getData()); |
122 | 122 | $this->getClientsTable()->saveClients($clients); |
123 | 123 | $this->flashMessenger()->addSuccessMessage($this->translate('client has been saved')); |
124 | - if ( $this->isXHR() ) { |
|
124 | + if ($this->isXHR()) { |
|
125 | 125 | $tmplVars["showForm"] = false; |
126 | 126 | } else { |
127 | 127 | return $this->redirect()->toRoute('admin/clientsedit', array('action' => 'index')); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | return $this->redirect()->toRoute('admin/clientsedit'); |
162 | 162 | } |
163 | 163 | |
164 | - $form = new ClientsForm(); |
|
164 | + $form = new ClientsForm(); |
|
165 | 165 | $form->bind($clients); |
166 | 166 | |
167 | 167 | $request = $this->getRequest(); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | if ($form->isValid()) { |
173 | 173 | $this->getClientsTable()->saveClients($clients); |
174 | 174 | $this->flashMessenger()->addSuccessMessage($this->translate("client has been saved")); |
175 | - if ( $this->isXHR() ) { |
|
175 | + if ($this->isXHR()) { |
|
176 | 176 | $tmplVars["showForm"] = false; |
177 | 177 | } else { |
178 | 178 | return $this->redirect()->toRoute('admin/clientsedit', array('action' => 'index')); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $id = (int) $request->getPost('id'); |
222 | 222 | $this->getClientsTable()->deleteClients($id); |
223 | 223 | $this->flashMessenger()->addSuccessMessage($this->translate("client has been deleted")); |
224 | - if ( $this->isXHR() ) { |
|
224 | + if ($this->isXHR()) { |
|
225 | 225 | $tmplVars["showForm"] = false; |
226 | 226 | } else { |
227 | 227 | return $this->redirect()->toRoute('admin/clientsedit', array('action' => 'index')); |
@@ -23,9 +23,9 @@ |
||
23 | 23 | class SettingsController extends BaseActionController |
24 | 24 | { |
25 | 25 | |
26 | - /** |
|
27 | - * @var array|\Admin\Model\SettingsTable |
|
28 | - */ |
|
26 | + /** |
|
27 | + * @var array|\Admin\Model\SettingsTable |
|
28 | + */ |
|
29 | 29 | protected $settingsTable; |
30 | 30 | |
31 | 31 | /** |
@@ -69,11 +69,11 @@ discard block |
||
69 | 69 | { |
70 | 70 | $tmplVars = $this->getTemplateVars(); |
71 | 71 | $aSettingslist = $this->getSettingsTable()->fetchAll(); |
72 | - if ( $this->isXHR() ) { |
|
72 | + if ($this->isXHR()) { |
|
73 | 73 | $datatablesData = array('data' => $aSettingslist->toArray()); |
74 | 74 | $oController = $this; |
75 | 75 | $datatablesData['data'] = array_map( |
76 | - function ($row) use ($oController) { |
|
76 | + function($row) use ($oController) { |
|
77 | 77 | $actions = '<div class="button-group tiny btn-group btn-group-xs">'. |
78 | 78 | '<a class="button btn btn-default tiny btn-xs btn-clean btn-cta-xhr cta-xhr-modal" href="'.$oController->url()->fromRoute( |
79 | 79 | 'admin/settingsedit', |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $settings->exchangeArray($form->getData()); |
122 | 122 | $this->getSettingsTable()->saveSettings($settings); |
123 | 123 | $this->flashMessenger()->addSuccessMessage($this->translate('setting has been saved')); |
124 | - if ( $this->isXHR() ) { |
|
124 | + if ($this->isXHR()) { |
|
125 | 125 | $tmplVars["showForm"] = false; |
126 | 126 | } else { |
127 | 127 | return $this->redirect()->toRoute('admin/settingsedit', array('action' => 'index')); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | return $this->redirect()->toRoute('admin/settingsedit'); |
162 | 162 | } |
163 | 163 | |
164 | - $form = new SettingsForm(); |
|
164 | + $form = new SettingsForm(); |
|
165 | 165 | $form->bind($settings); |
166 | 166 | |
167 | 167 | $request = $this->getRequest(); |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | if ($form->isValid()) { |
173 | 173 | $this->getSettingsTable()->saveSettings($settings); |
174 | 174 | $this->flashMessenger()->addSuccessMessage($this->translate("setting has been saved")); |
175 | - if ( $this->isXHR() ) { |
|
175 | + if ($this->isXHR()) { |
|
176 | 176 | $tmplVars["showForm"] = false; |
177 | 177 | } else { |
178 | 178 | return $this->redirect()->toRoute('admin/settingsedit', array('action' => 'index')); |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | $id = (int) $request->getPost('id'); |
222 | 222 | $this->getSettingsTable()->deleteSettings($id); |
223 | 223 | $this->flashMessenger()->addSuccessMessage($this->translate("setting has been deleted")); |
224 | - if ( $this->isXHR() ) { |
|
224 | + if ($this->isXHR()) { |
|
225 | 225 | $tmplVars["showForm"] = false; |
226 | 226 | } else { |
227 | 227 | return $this->redirect()->toRoute('admin/settingsedit', array('action' => 'index')); |
@@ -82,11 +82,11 @@ |
||
82 | 82 | array( |
83 | 83 | 'name' => 'facebook', |
84 | 84 | 'attributes' => array( |
85 | - 'type' => 'url', |
|
86 | - ), |
|
87 | - 'options' => array( |
|
88 | - 'label' => 'Facebook', |
|
89 | - ), |
|
85 | + 'type' => 'url', |
|
86 | + ), |
|
87 | + 'options' => array( |
|
88 | + 'label' => 'Facebook', |
|
89 | + ), |
|
90 | 90 | ) |
91 | 91 | ); |
92 | 92 | $this->add( |
@@ -76,10 +76,10 @@ |
||
76 | 76 | array( |
77 | 77 | 'name' => 'reset', |
78 | 78 | 'attributes' => array( |
79 | - 'type' => 'reset', |
|
80 | - 'value' => 'reset', |
|
81 | - 'id' => 'resetbutton', |
|
82 | - ), |
|
79 | + 'type' => 'reset', |
|
80 | + 'value' => 'reset', |
|
81 | + 'id' => 'resetbutton', |
|
82 | + ), |
|
83 | 83 | 'options' => array( |
84 | 84 | 'label' => 'reset', |
85 | 85 | ), |
@@ -29,7 +29,7 @@ |
||
29 | 29 | array( |
30 | 30 | 'name' => 'aclroles_id', |
31 | 31 | 'attributes' => array( |
32 | - 'type' => 'hidden' , |
|
32 | + 'type' => 'hidden', |
|
33 | 33 | ), |
34 | 34 | ) |
35 | 35 | ); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $label = $emailElement->getLabel('label'); |
43 | 43 | // @TODO: make translation-friendly |
44 | 44 | foreach ($this->getAuthenticationOptions()->getAuthIdentityFields() as $mode) { |
45 | - $label = (!empty($label) ? $label . ' or ' : '') . ucfirst($mode); |
|
45 | + $label = (!empty($label) ? $label.' or ' : '').ucfirst($mode); |
|
46 | 46 | } |
47 | 47 | $emailElement->setLabel($label); |
48 | 48 |
@@ -39,11 +39,11 @@ |
||
39 | 39 | */ |
40 | 40 | public function createService(ServiceLocatorInterface $serviceLocator) |
41 | 41 | { |
42 | - $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
43 | - $resultSetPrototype = new ResultSet(); |
|
42 | + $dbAdapter = $serviceLocator->get('Zend\Db\Adapter\Adapter'); |
|
43 | + $resultSetPrototype = new ResultSet(); |
|
44 | 44 | $resultSetPrototype->setArrayObjectPrototype(new User()); |
45 | - $tableGateway = new TableGateway('user', $dbAdapter, null, $resultSetPrototype); |
|
46 | - $table = new UserTable($tableGateway); |
|
45 | + $tableGateway = new TableGateway('user', $dbAdapter, null, $resultSetPrototype); |
|
46 | + $table = new UserTable($tableGateway); |
|
47 | 47 | return $table; |
48 | 48 | } |
49 | 49 | } |
50 | 50 | \ No newline at end of file |