Completed
Push — develop ( fa9dbc...f508dd )
by Carsten
83:57 queued 64:43
created
module/Organizations/src/Organizations/Controller/ProfileController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
 
84 84
         $result = $this->pagination([
85
-            'params' => ['Organizations_Profile',[
85
+            'params' => ['Organizations_Profile', [
86 86
                     'q',
87 87
                     'count' => $this->options['count'],
88 88
                     'page' => 1,
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $repo            = $this->repo;
117 117
         $id              = $this->params('id');
118 118
 
119
-        if(is_null($id)){
119
+        if (is_null($id)) {
120 120
             $this->getResponse()->setStatusCode(Response::STATUS_CODE_404);
121 121
             return [
122 122
                 'message' => $translator->translate('Can not access profile page without id'),
@@ -125,20 +125,20 @@  discard block
 block discarded – undo
125 125
         }
126 126
 
127 127
         $organization = $repo->find($id);
128
-        if(!$organization instanceof Organization){
128
+        if (!$organization instanceof Organization) {
129 129
             throw new NotFoundException($id);
130 130
         }
131 131
 
132
-        if(
132
+        if (
133 133
             Organization::PROFILE_DISABLED == $organization->getProfileSetting()
134 134
             || is_null($organization->getProfileSetting())
135
-        ){
135
+        ) {
136 136
             throw new UnauthorizedAccessException(/*@translate*/ 'This Organization Profile is disabled');
137 137
         }
138 138
 
139 139
         $result = $this->pagination([
140 140
             'params' => [
141
-                'Organization_Jobs',[
141
+                'Organization_Jobs', [
142 142
                     'q',
143 143
                     'organization_id' => $id,
144 144
                     'count' => $this->options['count'],
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
             ],
152 152
         ]);
153 153
 
154
-        if(
154
+        if (
155 155
             Organization::PROFILE_ACTIVE_JOBS == $organization->getProfileSetting()
156
-        ){
156
+        ) {
157 157
             /* @var \Zend\Paginator\Paginator $paginator */
158 158
             $paginator = $result['jobs'];
159 159
             $count = $paginator->getTotalItemCount();
160
-            if(0===$count){
160
+            if (0 === $count) {
161 161
                 throw new UnauthorizedAccessException($this->translator->translate('This Organization Profile is disabled'));
162 162
             }
163 163
         }
Please login to merge, or discard this patch.