Completed
Push — develop ( cc6530...59407f )
by Mathias
08:03
created
module/Cv/src/Cv/Factory/Controller/ViewControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 use Cv\Controller\ViewController;
14 14
 use Interop\Container\ContainerInterface;
15
-use Zend\ServiceManager\Factory\FactoryInterface;;
15
+use Zend\ServiceManager\Factory\FactoryInterface; ;
16 16
 
17 17
 /**
18 18
  * ${CARET}
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/EmploymentFieldset.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function init()
26 26
     {
27 27
         $this->setName('employment')
28
-             ->setHydrator(new EntityHydrator())
29
-             ->setObject(new EmploymentEntity());
28
+                ->setHydrator(new EntityHydrator())
29
+                ->setObject(new EmploymentEntity());
30 30
         
31 31
         $this->add(
32 32
             array(
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         return [
90 90
             //'type' => 'Cv/Employment'
91
-	        'type' => Employment::class
91
+            'type' => Employment::class
92 92
         ];
93 93
     }
94 94
     
Please login to merge, or discard this patch.
module/Settings/config/module.config.php 2 patches
Indentation   +116 added lines, -116 removed lines patch added patch discarded remove patch
@@ -14,133 +14,133 @@
 block discarded – undo
14 14
 
15 15
 return [
16 16
 	
17
-	'doctrine' => [
18
-		'driver' => [
19
-			'odm_default' => [
20
-				'drivers' => [
21
-					'Settings\Entity' => 'annotation',
22
-				],
23
-			],
24
-		],
25
-		'eventmanager' => [
26
-			'odm_default' => [
27
-				'subscribers' => [
28
-					'Settings/InjectEntityResolverListener',
29
-				],
30
-			],
31
-		],
32
-	],
17
+    'doctrine' => [
18
+        'driver' => [
19
+            'odm_default' => [
20
+                'drivers' => [
21
+                    'Settings\Entity' => 'annotation',
22
+                ],
23
+            ],
24
+        ],
25
+        'eventmanager' => [
26
+            'odm_default' => [
27
+                'subscribers' => [
28
+                    'Settings/InjectEntityResolverListener',
29
+                ],
30
+            ],
31
+        ],
32
+    ],
33 33
 	
34 34
 	
35
-	// Translations
36
-	'translator' => [
37
-		'translation_file_patterns' => [
38
-			[
39
-				'type' => 'gettext',
40
-				'base_dir' => __DIR__ . '/../language',
41
-				'pattern' => '%s.mo',
42
-			],
43
-		],
44
-	],
45
-	// Routes
46
-	'router' => [
47
-		'routes' => [
48
-			'lang' => [
49
-				'child_routes' => [
50
-					'settings' => [
51
-						'type' => 'Segment',
52
-						'options' => [
53
-							'route' => '/settings[/:module]',
54
-							'defaults' => [
55
-								'controller' => 'Settings\Controller\Index',
56
-								'action' => 'index',
57
-								'module' => 'Core',
58
-							],
59
-						],
60
-						'may_terminate' => true,
61
-					],
62
-				],
63
-			],
64
-		],
65
-	],
35
+    // Translations
36
+    'translator' => [
37
+        'translation_file_patterns' => [
38
+            [
39
+                'type' => 'gettext',
40
+                'base_dir' => __DIR__ . '/../language',
41
+                'pattern' => '%s.mo',
42
+            ],
43
+        ],
44
+    ],
45
+    // Routes
46
+    'router' => [
47
+        'routes' => [
48
+            'lang' => [
49
+                'child_routes' => [
50
+                    'settings' => [
51
+                        'type' => 'Segment',
52
+                        'options' => [
53
+                            'route' => '/settings[/:module]',
54
+                            'defaults' => [
55
+                                'controller' => 'Settings\Controller\Index',
56
+                                'action' => 'index',
57
+                                'module' => 'Core',
58
+                            ],
59
+                        ],
60
+                        'may_terminate' => true,
61
+                    ],
62
+                ],
63
+            ],
64
+        ],
65
+    ],
66 66
 	
67
-	'acl' => ['rules' => [
68
-		'user' => [
69
-			'allow' => [
70
-				'route/lang/settings',
71
-				'Settings\Controller\Index',
72
-			],
73
-		],
74
-	]],
75
-	'navigation' => [
76
-		'default' => [
77
-			'settings' => [
78
-				'label'    => /*@translate*/ 'Settings',
79
-				'route'    => 'lang/settings',
80
-				'resource' => 'route/lang/settings',
81
-				'order'    => 100,
82
-				'params'   => ['module' => null],
83
-			],
84
-		],
85
-	],
67
+    'acl' => ['rules' => [
68
+        'user' => [
69
+            'allow' => [
70
+                'route/lang/settings',
71
+                'Settings\Controller\Index',
72
+            ],
73
+        ],
74
+    ]],
75
+    'navigation' => [
76
+        'default' => [
77
+            'settings' => [
78
+                'label'    => /*@translate*/ 'Settings',
79
+                'route'    => 'lang/settings',
80
+                'resource' => 'route/lang/settings',
81
+                'order'    => 100,
82
+                'params'   => ['module' => null],
83
+            ],
84
+        ],
85
+    ],
86 86
 	
87
-	// Configuration of the controller service manager (Which loads controllers)
88
-	'controllers' => [
89
-		'factories' => [
90
-			'Settings\Controller\Index' => [\Settings\Controller\IndexController::class,'factory']
91
-		],
92
-	],
87
+    // Configuration of the controller service manager (Which loads controllers)
88
+    'controllers' => [
89
+        'factories' => [
90
+            'Settings\Controller\Index' => [\Settings\Controller\IndexController::class,'factory']
91
+        ],
92
+    ],
93 93
 	
94
-	// Configure the view service manager
95
-	'view_manager' => [
96
-		// Map template to files. Speeds up the lookup through the template stack.
97
-		'template_map' => [
98
-		],
94
+    // Configure the view service manager
95
+    'view_manager' => [
96
+        // Map template to files. Speeds up the lookup through the template stack.
97
+        'template_map' => [
98
+        ],
99 99
 		
100
-		// Where to look for view templates not mapped above
101
-		'template_path_stack' => [
102
-			__DIR__ . '/../view',
103
-		],
104
-	],
100
+        // Where to look for view templates not mapped above
101
+        'template_path_stack' => [
102
+            __DIR__ . '/../view',
103
+        ],
104
+    ],
105 105
 	
106
-	'view_helpers' => [
107
-		'invokables' => [
108
-			'Settings/FormDisableElementsCapableFormSettings' => 'Settings\Form\View\Helper\FormDisableElementsCapableFormSettings',
109
-		],
110
-		'factories' => [
111
-		],
112
-	],
106
+    'view_helpers' => [
107
+        'invokables' => [
108
+            'Settings/FormDisableElementsCapableFormSettings' => 'Settings\Form\View\Helper\FormDisableElementsCapableFormSettings',
109
+        ],
110
+        'factories' => [
111
+        ],
112
+    ],
113 113
 	
114
-	'service_manager' => [
115
-		'factories' => [
116
-			'Settings' => '\Settings\Settings\SettingsFactory',
117
-			'Settings/EntityResolver' => '\Settings\Repository\SettingsEntityResolverFactory',
118
-			'Settings/InjectEntityResolverListener' => [\Settings\Repository\Event\InjectSettingsEntityResolverListener::class,'factory'],
119
-		],
120
-		'initializers' => [],
121
-		'shared' => [],
122
-		'aliases' => [],
123
-	],
114
+    'service_manager' => [
115
+        'factories' => [
116
+            'Settings' => '\Settings\Settings\SettingsFactory',
117
+            'Settings/EntityResolver' => '\Settings\Repository\SettingsEntityResolverFactory',
118
+            'Settings/InjectEntityResolverListener' => [\Settings\Repository\Event\InjectSettingsEntityResolverListener::class,'factory'],
119
+        ],
120
+        'initializers' => [],
121
+        'shared' => [],
122
+        'aliases' => [],
123
+    ],
124 124
 	
125
-	'controller_plugins' => [
126
-		'factories' => ['settings' => '\Settings\Controller\Plugin\SettingsFactory'],
127
-	],
125
+    'controller_plugins' => [
126
+        'factories' => ['settings' => '\Settings\Controller\Plugin\SettingsFactory'],
127
+    ],
128 128
 	
129
-	'form_elements' => [
130
-		'factories' => [
131
-			'Settings/Form' => [\Settings\Form\AbstractSettingsForm::class,'factory'],
132
-			'Settings/DisableElementsCapableFormSettingsFieldset' => [\Settings\Form\DisableElementsCapableFormSettingsFieldset::class,'factory'],
133
-			'Settings/Fieldset' => \Settings\Form\Factory\SettingsFieldsetFactory::class,
134
-		],
135
-		'aliases' => [
136
-		],
137
-	],
129
+    'form_elements' => [
130
+        'factories' => [
131
+            'Settings/Form' => [\Settings\Form\AbstractSettingsForm::class,'factory'],
132
+            'Settings/DisableElementsCapableFormSettingsFieldset' => [\Settings\Form\DisableElementsCapableFormSettingsFieldset::class,'factory'],
133
+            'Settings/Fieldset' => \Settings\Form\Factory\SettingsFieldsetFactory::class,
134
+        ],
135
+        'aliases' => [
136
+        ],
137
+    ],
138 138
 	
139
-	'filters' => [
140
-		'invokables' => [
141
-			'Settings/Filter/DisableElementsCapableFormSettings' => \Settings\Form\Filter\DisableElementsCapableFormSettings::class,
142
-		]
143
-	]
139
+    'filters' => [
140
+        'invokables' => [
141
+            'Settings/Filter/DisableElementsCapableFormSettings' => \Settings\Form\Filter\DisableElementsCapableFormSettings::class,
142
+        ]
143
+    ]
144 144
 
145 145
 
146 146
 ];
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 		'translation_file_patterns' => [
38 38
 			[
39 39
 				'type' => 'gettext',
40
-				'base_dir' => __DIR__ . '/../language',
40
+				'base_dir' => __DIR__.'/../language',
41 41
 				'pattern' => '%s.mo',
42 42
 			],
43 43
 		],
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	// Configuration of the controller service manager (Which loads controllers)
88 88
 	'controllers' => [
89 89
 		'factories' => [
90
-			'Settings\Controller\Index' => [\Settings\Controller\IndexController::class,'factory']
90
+			'Settings\Controller\Index' => [\Settings\Controller\IndexController::class, 'factory']
91 91
 		],
92 92
 	],
93 93
 	
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 		
100 100
 		// Where to look for view templates not mapped above
101 101
 		'template_path_stack' => [
102
-			__DIR__ . '/../view',
102
+			__DIR__.'/../view',
103 103
 		],
104 104
 	],
105 105
 	
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		'factories' => [
116 116
 			'Settings' => '\Settings\Settings\SettingsFactory',
117 117
 			'Settings/EntityResolver' => '\Settings\Repository\SettingsEntityResolverFactory',
118
-			'Settings/InjectEntityResolverListener' => [\Settings\Repository\Event\InjectSettingsEntityResolverListener::class,'factory'],
118
+			'Settings/InjectEntityResolverListener' => [\Settings\Repository\Event\InjectSettingsEntityResolverListener::class, 'factory'],
119 119
 		],
120 120
 		'initializers' => [],
121 121
 		'shared' => [],
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 	
129 129
 	'form_elements' => [
130 130
 		'factories' => [
131
-			'Settings/Form' => [\Settings\Form\AbstractSettingsForm::class,'factory'],
132
-			'Settings/DisableElementsCapableFormSettingsFieldset' => [\Settings\Form\DisableElementsCapableFormSettingsFieldset::class,'factory'],
131
+			'Settings/Form' => [\Settings\Form\AbstractSettingsForm::class, 'factory'],
132
+			'Settings/DisableElementsCapableFormSettingsFieldset' => [\Settings\Form\DisableElementsCapableFormSettingsFieldset::class, 'factory'],
133 133
 			'Settings/Fieldset' => \Settings\Form\Factory\SettingsFieldsetFactory::class,
134 134
 		],
135 135
 		'aliases' => [
Please login to merge, or discard this patch.
module/Settings/src/Settings/Repository/SettingsEntityResolverFactory.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -19,23 +19,23 @@
 block discarded – undo
19 19
 
20 20
 class SettingsEntityResolverFactory implements FactoryInterface
21 21
 {
22
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
23
-	{
24
-		$moduleManager = $container->get('ModuleManager');
25
-		$config        = $container->get('Config');
22
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
23
+    {
24
+        $moduleManager = $container->get('ModuleManager');
25
+        $config        = $container->get('Config');
26 26
 		
27
-		$map = array();
28
-		foreach (array_keys($moduleManager->getLoadedModules()) as $module) {
29
-			$map[$module] = isset($config[$module]['settings']['entity'])
30
-				? $config[$module]['settings']['entity']
31
-				: '\Settings\Entity\ModuleSettingsContainer';
32
-		}
27
+        $map = array();
28
+        foreach (array_keys($moduleManager->getLoadedModules()) as $module) {
29
+            $map[$module] = isset($config[$module]['settings']['entity'])
30
+                ? $config[$module]['settings']['entity']
31
+                : '\Settings\Entity\ModuleSettingsContainer';
32
+        }
33 33
 		
34
-		$resolver = new SettingsEntityResolver($map);
35
-		return $resolver;
36
-	}
34
+        $resolver = new SettingsEntityResolver($map);
35
+        return $resolver;
36
+    }
37 37
 	
38
-	public function createService(ServiceLocatorInterface $serviceLocator)
38
+    public function createService(ServiceLocatorInterface $serviceLocator)
39 39
     {
40 40
     
41 41
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 class SettingsEntityResolverFactory implements FactoryInterface
21 21
 {
22
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
22
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
23 23
 	{
24 24
 		$moduleManager = $container->get('ModuleManager');
25 25
 		$config        = $container->get('Config');
Please login to merge, or discard this patch.
module/Settings/src/Settings/Repository/Service/SettingsFactory.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@
 block discarded – undo
11 11
 
12 12
 class SettingsFactory implements FactoryInterface
13 13
 {
14
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
15
-	{
16
-		$settings = new Settings();
17
-		$settings->setServiceLocator($container);
18
-		$settings->setUserRepository($container->get('RepositoryManager')->get('User'));
19
-		$config = $container->get('Config');
14
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
15
+    {
16
+        $settings = new Settings();
17
+        $settings->setServiceLocator($container);
18
+        $settings->setUserRepository($container->get('RepositoryManager')->get('User'));
19
+        $config = $container->get('Config');
20 20
 		
21
-		// put on the Listener for saving the entity
22
-		$application = $container->get('Application');
23
-		$events = $application->getEventManager();
24
-		$events->attach('postDispatch', array($settings, 'onPostDispatch'));
25
-		return $settings;
26
-	}
21
+        // put on the Listener for saving the entity
22
+        $application = $container->get('Application');
23
+        $events = $application->getEventManager();
24
+        $events->attach('postDispatch', array($settings, 'onPostDispatch'));
25
+        return $settings;
26
+    }
27 27
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 class SettingsFactory implements FactoryInterface
13 13
 {
14
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
14
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
15 15
 	{
16 16
 		$settings = new Settings();
17 17
 		$settings->setServiceLocator($container);
Please login to merge, or discard this patch.
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.