Completed
Push — develop ( dfed7e...55193b )
by Carsten
14:53 queued 07:54
created
module/Organizations/src/Organizations/Repository/Organization.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -129,10 +129,10 @@  discard block
 block discarded – undo
129 129
 //           )
130 130
 //        );
131 131
         $qb->addAnd($qb->expr()->field('user')->equals($userId))
132
-           ->addAnd(
133
-               $qb->expr()->addOr($qb->expr()->field('parent')->exists(false))
134
-                               ->addOr($qb->expr()->field('parent')->equals(null))
135
-           );
132
+            ->addAnd(
133
+                $qb->expr()->addOr($qb->expr()->field('parent')->exists(false))
134
+                                ->addOr($qb->expr()->field('parent')->equals(null))
135
+            );
136 136
 
137 137
         $q      = $qb->getQuery();
138 138
         $entity = $q->getSingleResult();
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
         return $c;
193 193
     }
194 194
 	
195
-	/**
196
-	 * @param array|null $data
197
-	 *
198
-	 * @return \Organizations\Entity\Organization
199
-	 */
195
+    /**
196
+     * @param array|null $data
197
+     *
198
+     * @return \Organizations\Entity\Organization
199
+     */
200 200
     public function create(array $data = null)
201 201
     {
202 202
         $entity = parent::create($data);
Please login to merge, or discard this patch.
src/Organizations/Entity/Hydrator/OrganizationHydratorFactory.php 1 patch
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.
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 1 patch
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.
module/Organizations/src/Organizations/Controller/IndexController.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -56,33 +56,33 @@
 block discarded – undo
56 56
      */
57 57
     private $repository;
58 58
 	
59
-	/**
60
-	 * @var FormElementManagerV3Polyfill
61
-	 */
59
+    /**
60
+     * @var FormElementManagerV3Polyfill
61
+     */
62 62
     private $formManager;
63 63
     
64 64
     private $viewHelper;
65 65
 	
66
-	/**
67
-	 * @var TranslatorInterface
68
-	 */
66
+    /**
67
+     * @var TranslatorInterface
68
+     */
69 69
     private $translator;
70 70
 	
71
-	/**
72
-	 * Create new controller instance
73
-	 *
74
-	 * @param Form\Organizations $form
75
-	 * @param Repository\Organization $repository
76
-	 * @param TranslatorInterface $translator
77
-	 * @param $formManager
78
-	 * @param $viewHelper
79
-	 */
71
+    /**
72
+     * Create new controller instance
73
+     *
74
+     * @param Form\Organizations $form
75
+     * @param Repository\Organization $repository
76
+     * @param TranslatorInterface $translator
77
+     * @param $formManager
78
+     * @param $viewHelper
79
+     */
80 80
     public function __construct(
81
-    	Form\Organizations $form,
82
-	    Repository\Organization $repository,
83
-		TranslatorInterface $translator,
84
-		$formManager,
85
-		$viewHelper
81
+        Form\Organizations $form,
82
+        Repository\Organization $repository,
83
+        TranslatorInterface $translator,
84
+        $formManager,
85
+        $viewHelper
86 86
     )
87 87
     {
88 88
         $this->repository = $repository;
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Form/OrganizationsNameFieldset.php 1 patch
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.
module/Organizations/src/Organizations/Mail/EmployeeInvitationFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         /* @var $serviceLocator \Core\Mail\MailService */
49 49
         /* @var $owner \Auth\Entity\UserInterface */
50 50
         /* @var $user \Auth\Entity\UserInterface */
51
-		$this->setCreationOptions($options);
51
+        $this->setCreationOptions($options);
52 52
         $auth     = $container->get('AuthenticationService');
53 53
         $router   = $container->get('Router');
54 54
 
Please login to merge, or discard this patch.
module/Geo/src/Geo/Service/AbstractClient.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
 
63 63
     public function query($term, array $params = [])
64 64
     {
65
-    	/* @TODO: [ZF3] overriding $term value because it always returns null */
66
-    	if(is_null($term)){
67
-		    $term = $_REQUEST['q'];
68
-	    }
65
+        /* @TODO: [ZF3] overriding $term value because it always returns null */
66
+        if(is_null($term)){
67
+            $term = $_REQUEST['q'];
68
+        }
69 69
         $cacheId = md5($term);
70 70
 
71 71
         if ($this->cache && ($result = $this->cache->getItem($cacheId))) {
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/SnapshotRepository.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -188,12 +188,12 @@
 block discarded – undo
188 188
     public function findLatest($sourceId, $isDraft = false)
189 189
     {
190 190
         return $this->createQueryBuilder()
191
-          ->field('snapshotEntity')->equals(new \MongoId($sourceId))
192
-          ->field('snapshotMeta.isDraft')->equals($isDraft)
193
-          ->sort('snapshotMeta.dateCreated.date', 'desc')
194
-          ->limit(1)
195
-          ->getQuery()
196
-          ->getSingleResult();
191
+            ->field('snapshotEntity')->equals(new \MongoId($sourceId))
192
+            ->field('snapshotMeta.isDraft')->equals($isDraft)
193
+            ->sort('snapshotMeta.dateCreated.date', 'desc')
194
+            ->limit(1)
195
+            ->getQuery()
196
+            ->getSingleResult();
197 197
 
198 198
     }
199 199
 
Please login to merge, or discard this patch.