Completed
Push — develop ( a5396a...45a0ea )
by Mathias
05:23
created
module/Auth/src/Auth/Controller/Plugin/Service/SocialProfilesFactory.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
 
17 17
 class SocialProfilesFactory implements FactoryInterface
18 18
 {
19
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
20
-	{
21
-		$request = $container->get('request');
22
-		$hybridAuth = $container->get('HybridAuth');
23
-		$plugin     = new SocialProfiles($hybridAuth,$request);
19
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
20
+    {
21
+        $request = $container->get('request');
22
+        $hybridAuth = $container->get('HybridAuth');
23
+        $plugin     = new SocialProfiles($hybridAuth,$request);
24 24
 		
25
-		return $plugin;
26
-	}
25
+        return $plugin;
26
+    }
27 27
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
 
17 17
 class SocialProfilesFactory implements FactoryInterface
18 18
 {
19
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
20 20
 	{
21 21
 		$request = $container->get('request');
22 22
 		$hybridAuth = $container->get('HybridAuth');
23
-		$plugin     = new SocialProfiles($hybridAuth,$request);
23
+		$plugin     = new SocialProfiles($hybridAuth, $request);
24 24
 		
25 25
 		return $plugin;
26 26
 	}
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/Validator/UniqueGroupNameFactory.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,14 +37,14 @@
 block discarded – undo
37 37
         $this->options['allowName'] = isset($options['allowName']) ? $options['allowName'] : null;
38 38
     }
39 39
 	
40
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
41
-	{
42
-		$auth      = $container->get('AuthenticationService');
43
-		$user      = $auth->getUser();
44
-		$options   = $this->options;
45
-		$options['user'] = $user;
46
-		$validator = new UniqueGroupName($options);
40
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
41
+    {
42
+        $auth      = $container->get('AuthenticationService');
43
+        $user      = $auth->getUser();
44
+        $options   = $this->options;
45
+        $options['user'] = $user;
46
+        $validator = new UniqueGroupName($options);
47 47
 		
48
-		return $validator;
49
-	}
48
+        return $validator;
49
+    }
50 50
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $this->options['allowName'] = isset($options['allowName']) ? $options['allowName'] : null;
38 38
     }
39 39
 	
40
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
40
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
41 41
 	{
42 42
 		$auth      = $container->get('AuthenticationService');
43 43
 		$user      = $auth->getUser();
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserImageFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
     {
56 56
         /* @var $options \Applications\Options\ModuleOptions */
57 57
         $form->get($this->fileName)->setViewHelper('formImageUpload')
58
-           ->setMaxSize($options->getContactImageMaxSize())
59
-           ->setAllowedTypes($options->getContactImageMimeType())
60
-           ->setForm($form);
58
+            ->setMaxSize($options->getContactImageMaxSize())
59
+            ->setAllowedTypes($options->getContactImageMimeType())
60
+            ->setForm($form);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserPassword.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,6 @@
 block discarded – undo
56 56
         $form = new static();
57 57
         $form->forms = $forms->get('FormElementManager');
58 58
         
59
-		return $form;
59
+        return $form;
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
src/Organizations/Entity/Hydrator/OrganizationHydratorFactory.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@
 block discarded – undo
17 17
 
18 18
 class OrganizationHydratorFactory implements FactoryInterface
19 19
 {
20
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
21
-		$repositoryManager = $container->get('repositories');
22
-		$repOrganization = $repositoryManager->get('Organizations/Organization');
23
-		$repOrganizationName = $repositoryManager->get('Organizations/OrganizationName');
24
-		$repOrganizationImage = $repositoryManager->get('Organizations/OrganizationImage');
25
-		$object = new OrganizationHydrator($repOrganization, $repOrganizationName, $repOrganizationImage);
20
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
21
+        $repositoryManager = $container->get('repositories');
22
+        $repOrganization = $repositoryManager->get('Organizations/Organization');
23
+        $repOrganizationName = $repositoryManager->get('Organizations/OrganizationName');
24
+        $repOrganizationImage = $repositoryManager->get('Organizations/OrganizationImage');
25
+        $object = new OrganizationHydrator($repOrganization, $repOrganizationName, $repOrganizationImage);
26 26
 		
27
-		// injecting the strategies
28
-		$httpload = new HttploadStrategy($repOrganizationImage);
29
-		$organizationName = new OrganizationNameStrategy($repOrganizationName);
30
-		$object->addStrategy('image', $httpload);
31
-		$object->addStrategy('organizationName', $organizationName);
32
-		return $object;
33
-	}
27
+        // injecting the strategies
28
+        $httpload = new HttploadStrategy($repOrganizationImage);
29
+        $organizationName = new OrganizationNameStrategy($repOrganizationName);
30
+        $object->addStrategy('image', $httpload);
31
+        $object->addStrategy('organizationName', $organizationName);
32
+        return $object;
33
+    }
34 34
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 class OrganizationHydratorFactory implements FactoryInterface
19 19
 {
20
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null ) {
20
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
21 21
 		$repositoryManager = $container->get('repositories');
22 22
 		$repOrganization = $repositoryManager->get('Organizations/Organization');
23 23
 		$repOrganizationName = $repositoryManager->get('Organizations/OrganizationName');
Please login to merge, or discard this patch.
src/Organizations/Factory/Controller/IndexControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
         $viewHelper = $container->get('ViewHelperManager');
34 34
         $translator = $container->get('translator');
35 35
 
36
-        return new IndexController($form, $organizationRepository,$translator,$formManager,$viewHelper);
36
+        return new IndexController($form, $organizationRepository, $translator, $formManager, $viewHelper);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Organizations/Factory/Controller/Plugin/InvitationHandlerFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 {
27 27
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
28 28
     {
29
-    	// @TODO: [ZF3] Check if InvitationHandlerFactory still working properly
29
+        // @TODO: [ZF3] Check if InvitationHandlerFactory still working properly
30 30
 	    
31 31
         /* @var $container \Zend\Mvc\Controller\PluginManager */
32 32
         $validator  = $container->get('ValidatorManager')->get('EmailAddress');
Please login to merge, or discard this patch.
src/Organizations/Factory/Form/OrganizationsNameFieldsetFactory.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -22,20 +22,20 @@
 block discarded – undo
22 22
  */
23 23
 class OrganizationsNameFieldsetFactory implements FactoryInterface
24 24
 {
25
-	/**
26
-	 * @param ContainerInterface $container
27
-	 * @param string $requestedName
28
-	 * @param array|null $options
29
-	 *
30
-	 * @inheritdoc
31
-	 * @return OrganizationsNameFieldset
32
-	 */
33
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
34
-	{
35
-		$fieldset = new OrganizationsNameFieldset($requestedName,$options);
25
+    /**
26
+     * @param ContainerInterface $container
27
+     * @param string $requestedName
28
+     * @param array|null $options
29
+     *
30
+     * @inheritdoc
31
+     * @return OrganizationsNameFieldset
32
+     */
33
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
34
+    {
35
+        $fieldset = new OrganizationsNameFieldset($requestedName,$options);
36 36
 		
37
-		$fieldset->setRepositories($container->get('repositories'));
38
-		return $fieldset;
39
-	}
37
+        $fieldset->setRepositories($container->get('repositories'));
38
+        return $fieldset;
39
+    }
40 40
 	
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 	 * @inheritdoc
31 31
 	 * @return OrganizationsNameFieldset
32 32
 	 */
33
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
33
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
34 34
 	{
35
-		$fieldset = new OrganizationsNameFieldset($requestedName,$options);
35
+		$fieldset = new OrganizationsNameFieldset($requestedName, $options);
36 36
 		
37 37
 		$fieldset->setRepositories($container->get('repositories'));
38 38
 		return $fieldset;
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Form/OrganizationsNameFieldset.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -24,31 +24,31 @@
 block discarded – undo
24 24
 class OrganizationsNameFieldset extends Fieldset
25 25
 {
26 26
 	
27
-	/**
28
-	 * @var RepositoryService
29
-	 */
30
-	private $repositories;
27
+    /**
28
+     * @var RepositoryService
29
+     */
30
+    private $repositories;
31 31
 	
32
-	/**
33
-	 * @return RepositoryService
34
-	 */
35
-	public function getRepositories()
36
-	{
37
-		return $this->repositories;
38
-	}
32
+    /**
33
+     * @return RepositoryService
34
+     */
35
+    public function getRepositories()
36
+    {
37
+        return $this->repositories;
38
+    }
39 39
 	
40
-	/**
41
-	 * @param RepositoryService $repositories
42
-	 */
43
-	public function setRepositories( $repositories )
44
-	{
45
-		$this->repositories = $repositories;
46
-	}
40
+    /**
41
+     * @param RepositoryService $repositories
42
+     */
43
+    public function setRepositories( $repositories )
44
+    {
45
+        $this->repositories = $repositories;
46
+    }
47 47
 	
48
-	public function getHydrator()
48
+    public function getHydrator()
49 49
     {
50 50
         if (!$this->hydrator) {
51
-        	/* @var $formElementManager FormElementManagerV3Polyfill */
51
+            /* @var $formElementManager FormElementManagerV3Polyfill */
52 52
             $hydrator           = new EntityHydrator();
53 53
             $formFactory        = $this->getFormFactory();
54 54
             $formElementManager = $formFactory->getFormElementManager();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 	/**
41 41
 	 * @param RepositoryService $repositories
42 42
 	 */
43
-	public function setRepositories( $repositories )
43
+	public function setRepositories($repositories)
44 44
 	{
45 45
 		$this->repositories = $repositories;
46 46
 	}
Please login to merge, or discard this patch.