Completed
Push — develop ( 60c2a6...7c4b2f )
by Carsten
61:42 queued 47:32
created
module/Organizations/config/module.config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         'template_map' => array(
66 66
              'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
67 67
              'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
68
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
68
+             'organizations/form/employee-fieldset' => __DIR__ . '/../view/form/employee-fieldset.phtml',
69 69
              'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
70 70
              'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
71 71
              'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
             'organizations' => array(
152 152
                 'label' => 'Organizations',
153 153
                 'route' => 'lang/organizations',
154
-                'order' => 65,                             // allows to order the menu items
155
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
154
+                'order' => 65, // allows to order the menu items
155
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
156 156
 
157 157
                 'pages' => array(
158 158
                     'list' => array(
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Controller/IndexController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,11 +124,11 @@  discard block
 block discarded – undo
124 124
         $params          = $this->params();
125 125
         $formIdentifier  = $params->fromQuery('form');
126 126
         try {
127
-            $org             = $this->getOrganization(true);
127
+            $org = $this->getOrganization(true);
128 128
         } catch (\RuntimeException $e) {
129 129
             return $this->getErrorViewModel('no-parent');
130 130
         }
131
-        $container       = $this->getFormular($org);
131
+        $container = $this->getFormular($org);
132 132
 
133 133
         if (isset($formIdentifier) && $request->isPost()) {
134 134
             /* @var $form \Zend\Form\FormInterface */
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         $user = $this->auth()->getUser(); /* @var $user \Auth\Entity\UserInterface */
262 262
 
263 263
         /* @var $organizationId string */
264
-        $organizationId = empty($id_fromRoute)?$id_fromSubForm:$id_fromRoute;
264
+        $organizationId = empty($id_fromRoute) ? $id_fromSubForm : $id_fromRoute;
265 265
         $editOwnOrganization = '__my__' === $organizationId;
266 266
         if ($editOwnOrganization) {
267 267
             /* @var $userOrg \Organizations\Entity\OrganizationReference */
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
             return $organization;
295 295
         }
296 296
 
297
-        $organization      = $this->repository->find($organizationId);
297
+        $organization = $this->repository->find($organizationId);
298 298
         if (!$organization) {
299 299
             throw new \RuntimeException('No Organization found with id "' . $organizationId . '"');
300 300
         }
Please login to merge, or discard this patch.
src/Organizations/Controller/Plugin/AcceptInvitationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
     public function process($token, $organizationId)
129 129
     {
130
-        $organizationRepository   = $this->getOrganizationRepository();
130
+        $organizationRepository = $this->getOrganizationRepository();
131 131
         $organization = $organizationRepository->find($organizationId); /* @var $organization \Organizations\Entity\OrganizationInterface */
132 132
 
133 133
         if (!$organization) {
Please login to merge, or discard this patch.
Organizations/src/Organizations/Entity/EmployeePermissionsInterface.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
      *
28 28
      * @var int
29 29
      */
30
-    const JOBS_VIEW           = 16;      //  10000
31
-    const JOBS_CREATE         = 24;      //  11000  # Create w/o View makes no sense
32
-    const JOBS_CHANGE         = 20;      //  10100  # Change w/o view makes no sense
33
-    const APPLICATIONS_VIEW   = 2;       //  00010
34
-    const APPLICATIONS_CHANGE = 3;       //  00011  # change w/o view makes no sense
35
-    const ALL                 = 31;      //  11111
36
-    const NONE                = 0;       //  00000
30
+    const JOBS_VIEW           = 16; //  10000
31
+    const JOBS_CREATE         = 24; //  11000  # Create w/o View makes no sense
32
+    const JOBS_CHANGE         = 20; //  10100  # Change w/o view makes no sense
33
+    const APPLICATIONS_VIEW   = 2; //  00010
34
+    const APPLICATIONS_CHANGE = 3; //  00011  # change w/o view makes no sense
35
+    const ALL                 = 31; //  11111
36
+    const NONE                = 0; //  00000
37 37
     /**#@- */
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
Organizations/src/Organizations/Factory/Form/EmployeeFieldsetFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
          /* todo: WRITE own Hydrator strategy class */
48 48
         $strategy = new ClosureStrategy(
49
-            function ($object) use ($users) {
49
+            function($object) use ($users) {
50 50
             
51 51
                 if (is_string($object)) {
52 52
                     return $users->find($object);
53 53
                 }
54 54
                 return $object;
55 55
             },
56
-            function ($data) use ($users) {
56
+            function($data) use ($users) {
57 57
             
58 58
                 if (is_string($data)) {
59 59
                     $data = $users->find($data);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         /* todo: write own strategy class */
66 66
         $permStrategy = new ClosureStrategy(
67 67
             // extract
68
-            function ($object) {
68
+            function($object) {
69 69
                 /* @var $object \Organizations\Entity\EmployeePermissionsInterface */
70 70
                 $values = array();
71 71
                 foreach (array(
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
 
81 81
                 return $values;
82 82
             },
83
-            function ($data) {
83
+            function($data) {
84 84
                 $permissions = array_reduce(
85 85
                     $data,
86
-                    function ($c, $i) {
86
+                    function($c, $i) {
87 87
                         return $c | $i;
88 88
                     },
89 89
                     0
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Form/LogoImageFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      *
24 24
      * @var string
25 25
      */
26
-    protected $options="Jobs/Options";
26
+    protected $options = "Jobs/Options";
27 27
 
28 28
     protected function configureForm($form, AbstractOptions $options)
29 29
     {
Please login to merge, or discard this patch.
Organizations/src/Organizations/Form/OrganizationsContactFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function getHydrator()
25 25
     {
26 26
         if (!$this->hydrator) {
27
-            $hydrator           = new EntityHydrator();
27
+            $hydrator = new EntityHydrator();
28 28
             $this->setHydrator($hydrator);
29 29
         }
30 30
         return $this->hydrator;
Please login to merge, or discard this patch.
src/Organizations/Repository/Event/InjectOrganizationReferenceListener.php 1 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
         if ($document instanceof UserInterface) {
42 42
             $repository = $args->getDocumentManager()->getRepository('Organizations\Entity\Organization');
43
-            $userId  = $document->getId();
43
+            $userId = $document->getId();
44 44
             $reference = new OrganizationReference($userId, $repository);
45 45
 
46 46
             $document->setOrganization($reference);
Please login to merge, or discard this patch.
Organizations/src/Organizations/Repository/Filter/PaginationQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var String
26 26
      */
27
-    protected $repositoryName="Organizations/Organization";
27
+    protected $repositoryName = "Organizations/Organization";
28 28
     
29 29
     /**
30 30
      * Sortable fields
Please login to merge, or discard this patch.