Completed
Push — develop ( f42d0b...7cacd3 )
by Carsten
17:14 queued 07:54
created
src/Organizations/Repository/Filter/PaginationQueryFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         /* @TODO: $jobRepository should be removed when using aggregation query in filtering profile */
38 38
         $authService = $container->get('AuthenticationService');
39 39
         $jobRepository = $container->get('Core/RepositoryService')->get('Jobs/Job');
40
-        $filter = new PaginationQuery($jobRepository,$authService);
40
+        $filter = new PaginationQuery($jobRepository, $authService);
41 41
         return $filter;
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/Organizations/Factory/Controller/ProfileControllerFactory.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
         $translator = $container->get('translator');
34 34
         $imageFileCacheManager = $container->get('Organizations\ImageFileCache\Manager');
35 35
         $options = $container->get('Jobs/JobboardSearchOptions');
36
-        return new ProfileController($repo,$jobRepository,$translator,$imageFileCacheManager,['count' => $options->getPerPage()]);
36
+        return new ProfileController($repo, $jobRepository, $translator, $imageFileCacheManager, ['count' => $options->getPerPage()]);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
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,
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $repo            = $this->repo;
113 113
         $id              = $this->params('id');
114 114
 
115
-        if(is_null($id)){
115
+        if (is_null($id)) {
116 116
             $this->getResponse()->setStatusCode(Response::STATUS_CODE_404);
117 117
             return [
118 118
                 'message' => $translator->translate('Can not access profile page without id'),
@@ -121,20 +121,20 @@  discard block
 block discarded – undo
121 121
         }
122 122
 
123 123
         $organization = $repo->find($id);
124
-        if(!$organization instanceof Organization){
124
+        if (!$organization instanceof Organization) {
125 125
             throw new NotFoundException($id);
126 126
         }
127 127
 
128
-        if(
128
+        if (
129 129
             Organization::PROFILE_DISABLED == $organization->getProfileSetting()
130 130
             || is_null($organization->getProfileSetting())
131
-        ){
131
+        ) {
132 132
             throw new UnauthorizedAccessException(/*@translate*/ 'This Organization Profile is disabled');
133 133
         }
134 134
 
135 135
         $result = $this->pagination([
136 136
             'params' => [
137
-                'Organization_Jobs',[
137
+                'Organization_Jobs', [
138 138
                     'q',
139 139
                     'organization_id' => $organization->getId(),
140 140
                     'count' => $this->options['count'],
@@ -147,13 +147,13 @@  discard block
 block discarded – undo
147 147
             ],
148 148
         ]);
149 149
 
150
-        if(
150
+        if (
151 151
             Organization::PROFILE_ACTIVE_JOBS == $organization->getProfileSetting()
152
-        ){
152
+        ) {
153 153
             /* @var \Zend\Paginator\Paginator $paginator */
154 154
             $paginator = $result['jobs'];
155 155
             $count = $paginator->getTotalItemCount();
156
-            if(0===$count){
156
+            if (0 === $count) {
157 157
                 throw new UnauthorizedAccessException($this->translator->translate('This Organization Profile is disabled'));
158 158
             }
159 159
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/FileController.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -28,27 +28,27 @@
 block discarded – undo
28 28
  */
29 29
 class FileController extends AbstractActionController
30 30
 {
31
-	/**
32
-	 * @var RepositoryService
33
-	 */
34
-	private $repositories;
31
+    /**
32
+     * @var RepositoryService
33
+     */
34
+    private $repositories;
35 35
 	
36
-	/**
37
-	 * @var EventManager
38
-	 */
39
-	private $coreFileEvents;
36
+    /**
37
+     * @var EventManager
38
+     */
39
+    private $coreFileEvents;
40 40
 	
41
-	public function __construct(
42
-		RepositoryService $repositories,
43
-		EventManager $eventManager
44
-	)
45
-	{
46
-		$this->repositories = $repositories;
47
-		$this->coreFileEvents = $eventManager;
48
-	}
41
+    public function __construct(
42
+        RepositoryService $repositories,
43
+        EventManager $eventManager
44
+    )
45
+    {
46
+        $this->repositories = $repositories;
47
+        $this->coreFileEvents = $eventManager;
48
+    }
49 49
 	
50 50
 	
51
-	protected function attachDefaultListeners()
51
+    protected function attachDefaultListeners()
52 52
     {
53 53
         parent::attachDefaultListeners();
54 54
         $events = $this->getEventManager();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $response      = $this->getResponse();
74 74
 
75 75
         try {
76
-            $repository = $this->repositories->get($module . '/' . $entityName);
76
+            $repository = $this->repositories->get($module.'/'.$entityName);
77 77
         } catch (\Exception $e) {
78 78
             $response->setStatusCode(404);
79 79
             $this->getEvent()->setParam('exception', $e);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         
108 108
         $this->acl($file);
109 109
 
110
-        $headers=$response->getHeaders();
110
+        $headers = $response->getHeaders();
111 111
 
112 112
         $headers->addHeaderline('Content-Type', $file->getType())
113 113
             ->addHeaderline('Content-Length', $file->getLength());
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Controller/FileControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
26 26
         $repositories = $container->get('repositories');
27 27
         $coreFileEvents = $container->get('Core/File/Events');
28 28
 
29
-        return new FileController($repositories,$coreFileEvents);
29
+        return new FileController($repositories, $coreFileEvents);
30 30
     }
31 31
 }
Please login to merge, or discard this patch.