Completed
Push — develop ( 83694e...386ced )
by
unknown
17:24 queued 08:59
created
src/Organizations/Controller/Plugin/GetOrganizationHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      * @param Params $params
56 56
      * @param bool   $allowDraft
57 57
      *
58
-     * @return object|\Organizations\Entity\Organization
58
+     * @return \Organizations\Entity\OrganizationInterface
59 59
      * @throws UnauthorizedAccessException
60 60
      * @throws \Doctrine\ODM\MongoDB\LockException
61 61
      */
Please login to merge, or discard this patch.
module/Organizations/config/module.config.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
                 ),
14 14
             ),
15 15
             'annotation' => array(
16
-                'paths' => array( __DIR__ . '/../src/Organizations/Entity')
16
+                'paths' => array(__DIR__.'/../src/Organizations/Entity')
17 17
             ),
18 18
         ),
19 19
         'eventmanager' => array(
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         'translation_file_patterns' => array(
40 40
             array(
41 41
                 'type' => 'gettext',
42
-                'base_dir' => __DIR__ . '/../language',
42
+                'base_dir' => __DIR__.'/../language',
43 43
                 'pattern' => '%s.mo',
44 44
             ),
45 45
         ),
@@ -67,18 +67,18 @@  discard block
 block discarded – undo
67 67
     'view_manager' => array(
68 68
         // Map template to files. Speeds up the lookup through the template stack.
69 69
         'template_map' => array(
70
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
71
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
72
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
73
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
74
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
75
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
76
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
77
-            'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
70
+             'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml',
71
+             'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml',
72
+             'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml',
73
+             'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml',
74
+             'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
75
+             'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml',
76
+             'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml',
77
+            'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml',
78 78
         ),
79 79
         // Where to look for view templates not mapped above
80 80
         'template_path_stack' => array(
81
-            __DIR__ . '/../view',
81
+            __DIR__.'/../view',
82 82
         ),
83 83
     ),
84 84
     'form_elements' => array(
@@ -139,11 +139,11 @@  discard block
 block discarded – undo
139 139
                 'allow' => array(
140 140
                     'Entity/OrganizationImage',
141 141
                     'route/lang/organizations/invite',
142
-                    'Organizations/InviteEmployee' => [ 'accept' ],
142
+                    'Organizations/InviteEmployee' => ['accept'],
143 143
                 ),
144 144
                 'deny' => array(
145 145
                     'route/lang/organizations',
146
-                    'Organizations/InviteEmployee' => [ 'invite' ],
146
+                    'Organizations/InviteEmployee' => ['invite'],
147 147
                 ),
148 148
             ),
149 149
             // recruiters are allowed to view their companies
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 'allow' => array(
152 152
                     'route/lang/organizations',
153 153
                     'Organizations/InviteEmployee',
154
-                    'Entity/Organization' => [ 'edit' => 'Organizations/Write' ],
154
+                    'Entity/Organization' => ['edit' => 'Organizations/Write'],
155 155
                 ),
156 156
             ),
157 157
         ),
@@ -167,8 +167,8 @@  discard block
 block discarded – undo
167 167
             'organizations' => array(
168 168
                 'label' => 'Organizations',
169 169
                 'route' => 'lang/organizations',
170
-                'order' => 65,                             // allows to order the menu items
171
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
170
+                'order' => 65, // allows to order the menu items
171
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
172 172
 
173 173
                 'pages' => array(
174 174
                     'list' => array(
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/Organization.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
      */
234 234
     public function getParent($returnSelf = false)
235 235
     {
236
-        return $this->parent ? : ($returnSelf ? $this : null);
236
+        return $this->parent ?: ($returnSelf ? $this : null);
237 237
     }
238 238
 
239 239
     /**
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      */
466 466
     public function getPermissionsResourceId()
467 467
     {
468
-        return 'organization:' . $this->getId();
468
+        return 'organization:'.$this->getId();
469 469
     }
470 470
 
471 471
     /**
Please login to merge, or discard this patch.