Completed
Push — develop ( a5396a...45a0ea )
by Mathias
05:23
created
module/Settings/src/Settings/Controller/Plugin/SettingsFactory.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
 class SettingsFactory implements FactoryInterface
17 17
 {
18
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
-	{
20
-		$auth     = $container->get('AuthenticationService');
21
-		$user     = $auth->getUser();
22
-		$plugin   = new Settings($user);
18
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
+    {
20
+        $auth     = $container->get('AuthenticationService');
21
+        $user     = $auth->getUser();
22
+        $plugin   = new Settings($user);
23 23
 		
24
-		return $plugin;
25
-	}
24
+        return $plugin;
25
+    }
26 26
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
 class SettingsFactory implements FactoryInterface
17 17
 {
18
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
18
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
19 19
 	{
20 20
 		$auth     = $container->get('AuthenticationService');
21 21
 		$user     = $auth->getUser();
Please login to merge, or discard this patch.
module/Settings/src/Settings/Controller/IndexController.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -28,38 +28,38 @@  discard block
 block discarded – undo
28 28
  */
29 29
 class IndexController extends AbstractActionController
30 30
 {
31
-	/**
32
-	 * @var TranslatorInterface
33
-	 */
34
-	private $translator;
31
+    /**
32
+     * @var TranslatorInterface
33
+     */
34
+    private $translator;
35 35
 	
36
-	/**
37
-	 * @var FormElementManager
38
-	 */
39
-	private $formManager;
36
+    /**
37
+     * @var FormElementManager
38
+     */
39
+    private $formManager;
40 40
 	
41
-	private $viewHelper;
41
+    private $viewHelper;
42 42
 	
43
-	public function __construct(
44
-		TranslatorInterface $translator,
45
-		FormElementManager $formManager,
46
-		$viewHelper
47
-	)
48
-	{
49
-		$this->translator = $translator;
50
-		$this->formManager = $formManager;
51
-		$this->viewHelper = $viewHelper;
52
-	}
43
+    public function __construct(
44
+        TranslatorInterface $translator,
45
+        FormElementManager $formManager,
46
+        $viewHelper
47
+    )
48
+    {
49
+        $this->translator = $translator;
50
+        $this->formManager = $formManager;
51
+        $this->viewHelper = $viewHelper;
52
+    }
53 53
 	
54
-	static public function factory(ContainerInterface $container)
55
-	{
56
-		$translator = $container->get('translator');
57
-		return new self(
58
-			$translator,
59
-			$container->get('FormElementManager'),
60
-			$container->get('ViewHelperManager')
61
-		);
62
-	}
54
+    static public function factory(ContainerInterface $container)
55
+    {
56
+        $translator = $container->get('translator');
57
+        return new self(
58
+            $translator,
59
+            $container->get('FormElementManager'),
60
+            $container->get('ViewHelperManager')
61
+        );
62
+    }
63 63
 	
64 64
     public function indexAction()
65 65
     {
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
         
100 100
         $form = $formManager->get($formName);
101 101
         
102
-	    $vars = array();
103
-	    $vars['form'] = $form;
102
+        $vars = array();
103
+        $vars['form'] = $form;
104 104
         // Binding the Entity to the Formular
105 105
         $form->bind($settings);
106 106
         $data = $this->getRequest()->getPost();
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                     array('settings' => $settings)
121 121
                 );
122 122
                 $this->getEventManager()->trigger($event->getName(),$event);
123
-	            $vars['valid'] = true;
123
+                $vars['valid'] = true;
124 124
             } else {
125 125
                 $vars['error'] = $form->getMessages();
126 126
             }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $mvcEvent->setParam('__settings_active_module', $moduleName);
87 87
         
88 88
         $formManager = $this->formManager;
89
-        $formName = $moduleName . '/SettingsForm';
89
+        $formName = $moduleName.'/SettingsForm';
90 90
         if (!$formManager->has($formName)) {
91 91
             $formName = "Settings/Form";
92 92
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             $valid   = $form->isValid();
110 110
             $partial = $this->viewHelper->get('partial');
111 111
             $text    = $valid
112
-                     ?  /*@translate*/'Changes successfully saved'
112
+                     ? /*@translate*/'Changes successfully saved'
113 113
                      :  /*@translate*/'Changes could not be saved';
114 114
             $this->notification()->success($translator->translate($text));
115 115
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                     $this,
120 120
                     array('settings' => $settings)
121 121
                 );
122
-                $this->getEventManager()->trigger($event->getName(),$event);
122
+                $this->getEventManager()->trigger($event->getName(), $event);
123 123
 	            $vars['valid'] = true;
124 124
             } else {
125 125
                 $vars['error'] = $form->getMessages();
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/AbstractSettingsForm.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -26,25 +26,25 @@  discard block
 block discarded – undo
26 26
      */
27 27
     protected $isBuild = false;
28 28
 	
29
-	/**
30
-	 * @var FormElementManager
31
-	 */
29
+    /**
30
+     * @var FormElementManager
31
+     */
32 32
     protected $formManager;
33 33
 	
34
-	/**
35
-	 * @var array|HelperPluginManager
36
-	 */
34
+    /**
35
+     * @var array|HelperPluginManager
36
+     */
37 37
     protected $viewHelper;
38 38
 	
39
-	/**
40
-	 * AbstractSettingsForm constructor.
41
-	 *
42
-	 * @param FormElementManager $formManager
43
-	 * @param HelperPluginManager $viewHelper
44
-	 */
39
+    /**
40
+     * AbstractSettingsForm constructor.
41
+     *
42
+     * @param FormElementManager $formManager
43
+     * @param HelperPluginManager $viewHelper
44
+     */
45 45
     public function __construct(
46
-    	FormElementManager $formManager,
47
-	    HelperPluginManager $viewHelper
46
+        FormElementManager $formManager,
47
+        HelperPluginManager $viewHelper
48 48
     )
49 49
     {
50 50
         parent::__construct();
@@ -81,13 +81,13 @@  discard block
 block discarded – undo
81 81
         }
82 82
         
83 83
         $fieldset->setUseAsBaseFieldset(true)
84
-                 ->setName('base');
84
+                    ->setName('base');
85 85
         
86 86
         $fieldset->setObject($object);
87 87
         $this->add($fieldset);
88 88
         
89 89
         $this->add([
90
-        	'type' => 'DefaultButtonsFieldset'
90
+            'type' => 'DefaultButtonsFieldset'
91 91
         ]);
92 92
         $this->isBuild=true;
93 93
     }
@@ -132,16 +132,16 @@  discard block
 block discarded – undo
132 132
         return strtolower($moduleName);
133 133
     }
134 134
 	
135
-	/**
136
-	 * @param ContainerInterface $container
137
-	 *
138
-	 * @return AbstractSettingsForm
139
-	 */
135
+    /**
136
+     * @param ContainerInterface $container
137
+     *
138
+     * @return AbstractSettingsForm
139
+     */
140 140
     public static function factory(ContainerInterface $container)
141 141
     {
142 142
         return new static(
143
-        	$container->get('FormElementManager'),
144
-	        $container->get('ViewHelperManager')
143
+            $container->get('FormElementManager'),
144
+            $container->get('ViewHelperManager')
145 145
         );
146 146
     }
147 147
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
         $this->setAttribute('method', 'post');
73 73
         $object = $this->getObject();
74
-        $fieldsetName = $object->getModuleName() . '/SettingsFieldset';
74
+        $fieldsetName = $object->getModuleName().'/SettingsFieldset';
75 75
         
76 76
         if ($this->formManager->has($fieldsetName)) {
77 77
             $fieldset = $this->formManager->get($fieldsetName);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $this->add([
90 90
         	'type' => 'DefaultButtonsFieldset'
91 91
         ]);
92
-        $this->isBuild=true;
92
+        $this->isBuild = true;
93 93
     }
94 94
         
95 95
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     
108 108
     public function setName($name)
109 109
     {
110
-        parent::setName(strtolower($name) . '-settings');
110
+        parent::setName(strtolower($name).'-settings');
111 111
         $urlHelper = $this->viewHelper->get('url');
112 112
         
113 113
         $url = $urlHelper('lang/settings', array('module' => $name), true);
Please login to merge, or discard this patch.
Settings/src/Settings/Form/DisableElementsCapableFormSettingsFieldset.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,11 +109,11 @@
 block discarded – undo
109 109
         $this->isBuild = true;
110 110
     }
111 111
 	
112
-	/**
113
-	 * @param ContainerInterface $container
114
-	 *
115
-	 * @return DisableElementsCapableFormSettingsFieldset
116
-	 */
112
+    /**
113
+     * @param ContainerInterface $container
114
+     *
115
+     * @return DisableElementsCapableFormSettingsFieldset
116
+     */
117 117
     public static function factory(ContainerInterface $container)
118 118
     {
119 119
         return new static($container->get('FormElementManager'));
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/Factory/SettingsFieldsetFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     {
28 28
         /* @var SettingsFieldset $ob */
29 29
         $class = class_exists($requestedName) ? $requestedName : SettingsFieldset::class;
30
-    	$ob = new $class($container->get('FormElementManager'));
31
-    	$ob->setName($requestedName);
30
+        $ob = new $class($container->get('FormElementManager'));
31
+        $ob->setName($requestedName);
32 32
         return $ob;
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
module/Pdf/config/module.config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@
 block discarded – undo
3 3
 return array(
4 4
     'service_manager' => array(
5 5
         'factories' => array(
6
-            'Html2PdfConverter' => [Pdf\Module::class,'factory'], //'Pdf\Module::factory',
6
+            'Html2PdfConverter' => [Pdf\Module::class, 'factory'], //'Pdf\Module::factory',
7 7
         )
8 8
     ),
9 9
     'view_manager' => array(
10 10
         'template_map' => array(
11
-            'pdf/application/details/button' => __DIR__ . '/../view/applicationDetailsButton.phtml',
11
+            'pdf/application/details/button' => __DIR__.'/../view/applicationDetailsButton.phtml',
12 12
         )
13 13
     ),
14 14
 );
Please login to merge, or discard this patch.
module/Auth/config/module.config.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         'aliases' => [
81 81
             'assertions' => 'Acl\AssertionManager',
82 82
             'Auth/UserTokenGenerator' => 'Auth\Service\UserUniqueTokenGenerator',
83
-	        'acl' => 'Acl'
83
+            'acl' => 'Acl'
84 84
         ]
85 85
     ],
86 86
 
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             'Auth/SocialProfiles' => 'Auth\Controller\SocialProfilesController',
92 92
         ],
93 93
         'factories' => [
94
-	        'Auth\Controller\Manage' => [ManageController::class,'factory'],
95
-	        'Auth/ManageGroups' => [ManageGroupsController::class,'factory'],
94
+            'Auth\Controller\Manage' => [ManageController::class,'factory'],
95
+            'Auth/ManageGroups' => [ManageGroupsController::class,'factory'],
96 96
             'Auth\Controller\ForgotPassword' => 'Auth\Factory\Controller\ForgotPasswordControllerFactory',
97 97
             'Auth\Controller\GotoResetPassword' => 'Auth\Factory\Controller\GotoResetPasswordControllerFactory',
98 98
             'Auth\Controller\Register' => 'Auth\Factory\Controller\RegisterControllerFactory',
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
         'shared' => [
117 117
             'OAuth' => false,
118 118
         ],
119
-	    'aliases' => [
120
-	    	'acl' => 'Acl',
121
-		    'auth' => 'Auth'
122
-	    ]
119
+        'aliases' => [
120
+            'acl' => 'Acl',
121
+            'auth' => 'Auth'
122
+        ]
123 123
     ],
124 124
     'hybridauth' => [
125 125
         "Facebook" => [
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                     'Auth/Users' => 'switch',
225 225
                 ],
226 226
                 'deny' => [
227
-                   // 'route/lang/auth',
227
+                    // 'route/lang/auth',
228 228
                     'route/auth-provider',
229 229
                     'route/auth-extern',
230 230
                     'route/lang/forgot-password',
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
         'factories' => [
312 312
             'auth' => '\Auth\Factory\View\Helper\AuthFactory',
313 313
             'acl'  => '\Acl\Factory\View\Helper\AclFactory',
314
-         ],
314
+            ],
315 315
     ],
316 316
     
317 317
     'form_elements' => [
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                  * for multiple paths.
42 42
                  * example https://github.com/doctrine/DoctrineORMModule
43 43
                  */
44
-                'paths' => [ __DIR__ . '/../src/Auth/Entity'],
44
+                'paths' => [__DIR__.'/../src/Auth/Entity'],
45 45
             ],
46 46
         ],
47 47
     ],
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
             'Auth/SocialProfiles' => 'Auth\Controller\SocialProfilesController',
92 92
         ],
93 93
         'factories' => [
94
-	        'Auth\Controller\Manage' => [ManageController::class,'factory'],
95
-	        'Auth/ManageGroups' => [ManageGroupsController::class,'factory'],
94
+	        'Auth\Controller\Manage' => [ManageController::class, 'factory'],
95
+	        'Auth/ManageGroups' => [ManageGroupsController::class, 'factory'],
96 96
             'Auth\Controller\ForgotPassword' => 'Auth\Factory\Controller\ForgotPasswordControllerFactory',
97 97
             'Auth\Controller\GotoResetPassword' => 'Auth\Factory\Controller\GotoResetPasswordControllerFactory',
98 98
             'Auth\Controller\Register' => 'Auth\Factory\Controller\RegisterControllerFactory',
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
             'Auth/SocialProfiles' => 'Auth\Controller\Plugin\Service\SocialProfilesFactory',
110 110
             'Acl' => '\Acl\Controller\Plugin\AclFactory',
111 111
             'Auth/LoginFilter' => 'Auth\Controller\Plugin\LoginFilter::factory',
112
-            'OAuth' => [\Auth\Controller\Plugin\OAuth::class,'factory'],
113
-            'Auth' => [Auth::class,'factory'],
112
+            'OAuth' => [\Auth\Controller\Plugin\OAuth::class, 'factory'],
113
+            'Auth' => [Auth::class, 'factory'],
114 114
             'Auth/User/Switcher' => 'Auth\Factory\Controller\Plugin\UserSwitcherFactory',
115 115
         ],
116 116
         'shared' => [
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
     'hybridauth' => [
125 125
         "Facebook" => [
126 126
             "enabled" => true,
127
-            "keys"    => [ "id" => "", "secret" => "" ],
127
+            "keys"    => ["id" => "", "secret" => ""],
128 128
             "scope"      => 'email, user_about_me, user_birthday, user_hometown, user_website',
129 129
             "display" => 'popup',
130 130
         ],
131 131
         "LinkedIn" => [
132 132
             "enabled" => true,
133
-            "keys"    => [ "key" => "", "secret" => "" ],
133
+            "keys"    => ["key" => "", "secret" => ""],
134 134
         ],
135 135
         "XING" => [
136 136
             "enabled" => true,
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 'class' => 'Hybrid_Providers_XING',
141 141
                 'path' => __FILE__,
142 142
             ],
143
-            "keys"    => [ "key" => "", "secret" => "" ],
143
+            "keys"    => ["key" => "", "secret" => ""],
144 144
         ],
145 145
         "Github" => [
146 146
             "enabled" => true,
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 'class' => 'Hybrid_Providers_Github',
151 151
                 'path' => __FILE__,
152 152
             ],
153
-            "keys"    => [ "key" => "", "secret" => "" ],
153
+            "keys"    => ["key" => "", "secret" => ""],
154 154
         ],
155 155
 
156 156
     ],
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         'translation_file_patterns' => [
254 254
             [
255 255
                 'type'     => 'gettext',
256
-                'base_dir' => __DIR__ . '/../language',
256
+                'base_dir' => __DIR__.'/../language',
257 257
                 'pattern'  => '%s.mo',
258 258
             ],
259 259
         ],
@@ -262,30 +262,30 @@  discard block
 block discarded – undo
262 262
     // Configure the view service manager
263 263
     'view_manager' => [
264 264
         'template_map' => [
265
-            'form/auth/contact.form' => __DIR__ . '/../view/form/contact.form.phtml',
266
-            'form/auth/contact.view' => __DIR__ . '/../view/form/contact.view.phtml',
267
-            'form/auth/status.form' => __DIR__ . '/../view/form/status.form.phtml',
268
-            'form/auth/status.view' => __DIR__ . '/../view/form/status.view.phtml',
269
-            'auth/error/social-profiles-unconfigured' => __DIR__ . '/../view/error/social-profiles-unconfigured.phtml',
270
-            'auth/form/user-info-container' => __DIR__ . '/../view/form/user-info-container.phtml',
271
-            'auth/form/user-status-container' => __DIR__ . '/../view/form/user-status-container.phtml',
272
-            'auth/form/userselect' => __DIR__ . '/../view/form/userselect.phtml',
273
-            'auth/form/social-profiles-fieldset' => __DIR__ . '/../view/form/social-profiles-fieldset.phtml',
274
-            'auth/form/social-profiles-button' => __DIR__ . '/../view/form/social-profiles-button.phtml',
275
-            'auth/sidebar/groups-menu' => __DIR__ . '/../view/sidebar/groups-menu.phtml',
276
-            'mail/first-external-login' => __DIR__ . '/../view/mail/first-external-login.phtml',
277
-            'mail/first-socialmedia-login' => __DIR__ . '/../view/mail/first-socialmedia-login.phtml',
278
-            'mail/forgotPassword' =>  __DIR__ . '/../view/mail/forgot-password.phtml',
279
-            'mail/forgotPassword.en' =>  __DIR__ . '/../view/mail/forgot-password.en.phtml',
280
-            'mail/register' =>  __DIR__ . '/../view/mail/register.phtml',
281
-            'auth/mail/new-registration' => __DIR__ . '/../view/mail/new-registration.phtml',
282
-            'auth/mail/new-registration.de' => __DIR__ . '/../view/mail/new-registration.de.phtml',
283
-            'auth/mail/user-confirmed' => __DIR__ . '/../view/mail/user-confirmed.phtml',
284
-            'auth/mail/user-confirmed.de' => __DIR__ . '/../view/mail/user-confirmed.de.phtml',
265
+            'form/auth/contact.form' => __DIR__.'/../view/form/contact.form.phtml',
266
+            'form/auth/contact.view' => __DIR__.'/../view/form/contact.view.phtml',
267
+            'form/auth/status.form' => __DIR__.'/../view/form/status.form.phtml',
268
+            'form/auth/status.view' => __DIR__.'/../view/form/status.view.phtml',
269
+            'auth/error/social-profiles-unconfigured' => __DIR__.'/../view/error/social-profiles-unconfigured.phtml',
270
+            'auth/form/user-info-container' => __DIR__.'/../view/form/user-info-container.phtml',
271
+            'auth/form/user-status-container' => __DIR__.'/../view/form/user-status-container.phtml',
272
+            'auth/form/userselect' => __DIR__.'/../view/form/userselect.phtml',
273
+            'auth/form/social-profiles-fieldset' => __DIR__.'/../view/form/social-profiles-fieldset.phtml',
274
+            'auth/form/social-profiles-button' => __DIR__.'/../view/form/social-profiles-button.phtml',
275
+            'auth/sidebar/groups-menu' => __DIR__.'/../view/sidebar/groups-menu.phtml',
276
+            'mail/first-external-login' => __DIR__.'/../view/mail/first-external-login.phtml',
277
+            'mail/first-socialmedia-login' => __DIR__.'/../view/mail/first-socialmedia-login.phtml',
278
+            'mail/forgotPassword' =>  __DIR__.'/../view/mail/forgot-password.phtml',
279
+            'mail/forgotPassword.en' =>  __DIR__.'/../view/mail/forgot-password.en.phtml',
280
+            'mail/register' =>  __DIR__.'/../view/mail/register.phtml',
281
+            'auth/mail/new-registration' => __DIR__.'/../view/mail/new-registration.phtml',
282
+            'auth/mail/new-registration.de' => __DIR__.'/../view/mail/new-registration.de.phtml',
283
+            'auth/mail/user-confirmed' => __DIR__.'/../view/mail/user-confirmed.phtml',
284
+            'auth/mail/user-confirmed.de' => __DIR__.'/../view/mail/user-confirmed.de.phtml',
285 285
         ],
286 286
     
287 287
         'template_path_stack' => [
288
-            'Auth' => __DIR__ . '/../view',
288
+            'Auth' => __DIR__.'/../view',
289 289
         ],
290 290
     ],
291 291
     
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             'Auth/UserImage' => 'Auth\Form\UserImageFactory',
342 342
             'Auth\Form\Login' => 'Auth\Factory\Form\LoginFactory',
343 343
             'Auth\Form\Register' => 'Auth\Factory\Form\RegisterFactory',
344
-            'user-password' => [\Auth\Form\UserPassword::class,'factory'],
344
+            'user-password' => [\Auth\Form\UserPassword::class, 'factory'],
345 345
         ]
346 346
     ],
347 347
 
@@ -350,9 +350,9 @@  discard block
 block discarded – undo
350 350
             'service' => 'Core/EventManager',
351 351
             'event' => AuthEvent::class,
352 352
             'listeners' => [
353
-                Listener\MailForgotPassword::class => [ AuthEvent::EVENT_AUTH_NEWPASSWORD, 10, true ],
353
+                Listener\MailForgotPassword::class => [AuthEvent::EVENT_AUTH_NEWPASSWORD, 10, true],
354 354
                 Listener\SendRegistrationNotifications::class => [
355
-                    [ AuthEvent::EVENT_USER_REGISTERED, AuthEvent::EVENT_USER_CONFIRMED ],
355
+                    [AuthEvent::EVENT_USER_REGISTERED, AuthEvent::EVENT_USER_CONFIRMED],
356 356
                     true
357 357
                 ],
358 358
             ],
Please login to merge, or discard this patch.
module/Auth/src/Acl/Listener/CheckPermissionsListener.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      *
59 59
      * @param  EventManagerInterface $events
60 60
      * @param  integer $priority
61
-    */
61
+     */
62 62
     public function attach(EventManagerInterface $events, $priority=1)
63 63
     {
64 64
         $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -10);
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
         }
81 81
     }
82 82
 	
83
-	/**
84
-	 * @param MvcEvent $event
85
-	 *
86
-	 * @return array|\ArrayAccess|mixed|object
87
-	 */
83
+    /**
84
+     * @param MvcEvent $event
85
+     *
86
+     * @return array|\ArrayAccess|mixed|object
87
+     */
88 88
     public function onRoute(MvcEvent $event)
89 89
     {
90 90
         if ($event->isError()) {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 
117 117
         if ($resourceId && !$acl->isAllowed($role, $resourceId, $privilege)) {
118
-           /*
118
+            /*
119 119
             * Exceptions are only catched within the dispatch listener, so
120 120
             * we have to set the exception manually in the event
121 121
             * and trigger the DISPATCH_ERROR event.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @param  EventManagerInterface $events
60 60
      * @param  integer $priority
61 61
     */
62
-    public function attach(EventManagerInterface $events, $priority=1)
62
+    public function attach(EventManagerInterface $events, $priority = 1)
63 63
     {
64 64
         $this->listeners[] = $events->attach(MvcEvent::EVENT_ROUTE, array($this, 'onRoute'), -10);
65 65
         $this->listeners[] = $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'onDispatch'), 10);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             $eventManager->setEventPrototype($event);
128 128
             $results = $eventManager->trigger(MvcEvent::EVENT_DISPATCH_ERROR);
129 129
             if (count($results)) {
130
-                $return  = $results->last();
130
+                $return = $results->last();
131 131
             } else {
132 132
                 $return = $event->getParams();
133 133
             }
Please login to merge, or discard this patch.
module/Auth/src/Acl/Assertion/AbstractEventManagerAwareAssertion.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -96,18 +96,18 @@
 block discarded – undo
96 96
 
97 97
         $event = new AssertionEvent(null, $this);
98 98
         $event->setAcl($acl)
99
-              ->setRole($role)
100
-              ->setResource($resource)
101
-              ->setPrivilege($privilege);
99
+                ->setRole($role)
100
+                ->setResource($resource)
101
+                ->setPrivilege($privilege);
102 102
         
103 103
         $events = $this->getEventManager();
104 104
 
105 105
         $callback = function ($r) {
106
-	        return false === $r;
106
+            return false === $r;
107 107
         };
108 108
         
109 109
         $results = $events->triggerUntil(
110
-        	$callback,
110
+            $callback,
111 111
             $event->getName(),
112 112
             $event
113 113
         );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         
103 103
         $events = $this->getEventManager();
104 104
 
105
-        $callback = function ($r) {
105
+        $callback = function($r) {
106 106
 	        return false === $r;
107 107
         };
108 108
         
Please login to merge, or discard this patch.