Completed
Pull Request — develop (#434)
by Carsten
06:27
created
module/Applications/src/Applications/Repository/Application.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
     {
103 103
         $qb = $this->getPaginationQueryBuilder($params);
104 104
         $cursor = $qb->hydrate(false)
105
-                     ->select('_id')
106
-                     ->getQuery()
107
-                     ->execute();
105
+                        ->select('_id')
106
+                        ->getQuery()
107
+                        ->execute();
108 108
         
109 109
         $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor)));
110 110
         return $list;
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $auth=$this->getService('AuthenticationService');
135 135
         $qb=$this->createQueryBuilder()
136
-                  ->field("readBy")->notIn(array($auth->getUser()->getId()))
137
-                  ->field("job")->equals(new \MongoId($job->getId()));
136
+                    ->field("readBy")->notIn(array($auth->getUser()->getId()))
137
+                    ->field("job")->equals(new \MongoId($job->getId()));
138 138
         return $qb->getQuery()->execute();
139 139
     }
140 140
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/ApplicationInterface.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -241,7 +241,6 @@  discard block
 block discarded – undo
241 241
      * Gets all comments for the application.
242 242
      *
243 243
      * @return ArrayCollection;
244
-
245 244
      */
246 245
     public function getComments();
247 246
     
@@ -272,7 +271,6 @@  discard block
 block discarded – undo
272 271
      * Gets all attributes for an application.
273 272
      *
274 273
      * @return ArrayCollection;
275
-
276 274
      */
277 275
     public function getAttributes();
278 276
 
Please login to merge, or discard this patch.
module/Cv/src/Cv/Repository/Event/DeleteRemovedAttachmentsSubscriber.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
         $fileId = new \MongoId($file->getId());
45 45
         $dm = $eventArgs->getDocumentManager();
46 46
         $dm->createQueryBuilder('Cv\Entity\Cv')
47
-           ->update()->multiple(true)
48
-           ->field('attachments')->equals($fileId)->pull($fileId)
49
-           ->getQuery()->execute();
47
+            ->update()->multiple(true)
48
+            ->field('attachments')->equals($fileId)->pull($fileId)
49
+            ->getQuery()->execute();
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Mail/NewApplication.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
             'link'  => $this->router->assemble(
101 101
                             ['id' => $this->application->getId()],
102 102
                             ['name'=>'lang/applications/detail', 'force_canonical'=>true]
103
-                       ),
103
+                        ),
104 104
         ];
105 105
 
106 106
         $this->setTo($this->user->getInfo()->getEmail(), $this->user->getInfo()->getDisplayName(false));
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/CategoriesContainer.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                         'options' => [
39 39
                             'enable_descriptions' => true,
40 40
                             'description' => /*@translate*/ 'Manage the professions you want to assign to jobs.' .
41
-                                             /*@translate*/ 'The order of categories can be modified by drag&drop.',
41
+                                                /*@translate*/ 'The order of categories can be modified by drag&drop.',
42 42
                             'display_mode' => SummaryForm::DISPLAY_SUMMARY,
43 43
                         ],
44 44
                     ],
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                         'options' => [
58 58
                             'enable_descriptions' => true,
59 59
                             'description' => /*@translate*/ 'Manage the industries you want to assign to jobs.' .
60
-                                             /*@translate*/ 'The order of categories can be modified by drag&drop.',
60
+                                                /*@translate*/ 'The order of categories can be modified by drag&drop.',
61 61
                             'display_mode' => SummaryForm::DISPLAY_SUMMARY,
62 62
                         ],
63 63
                     ],
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                         'options' => [
77 77
                             'enable_descriptions' => true,
78 78
                             'description' => /*@translate*/ 'Manage the employment types you want to assign to jobs.'.
79
-                                             /*@translate*/ 'The order of categories can be modified by drag&drop.',
79
+                                                /*@translate*/ 'The order of categories can be modified by drag&drop.',
80 80
                             'display_mode' => SummaryForm::DISPLAY_SUMMARY,
81 81
                         ],
82 82
                     ],
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/SearchForm.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -34,44 +34,44 @@
 block discarded – undo
34 34
     {
35 35
 
36 36
         $this->add(
37
-             [
38
-                 'name' => 'l',
39
-                 'type' => 'LocationSelect',
40
-                 'options' => [
41
-                     'label' => /*@translate*/ 'Location',
42
-                     'span' => 3,
43
-                     'location_entity' => Location::class,
44
-                 ],
45
-                 'attributes' => [
46
-                     'data-width' => '100%',
47
-                 ],
48
-             ]
37
+                [
38
+                    'name' => 'l',
39
+                    'type' => 'LocationSelect',
40
+                    'options' => [
41
+                        'label' => /*@translate*/ 'Location',
42
+                        'span' => 3,
43
+                        'location_entity' => Location::class,
44
+                    ],
45
+                    'attributes' => [
46
+                        'data-width' => '100%',
47
+                    ],
48
+                ]
49 49
         );
50 50
 
51 51
         $this->add(
52
-             [
53
-                 'name' => 'd',
54
-                 'type' => 'Zend\Form\Element\Select',
55
-                 'options' => [
56
-                     'label' => /*@translate*/ 'Distance',
57
-                     'value_options' => [
58
-                         '5' => '5 km',
59
-                         '10' => '10 km',
60
-                         '20' => '20 km',
61
-                         '50' => '50 km',
62
-                         '100' => '100 km'
63
-                     ],
64
-                     'span' => 4,
52
+                [
53
+                    'name' => 'd',
54
+                    'type' => 'Zend\Form\Element\Select',
55
+                    'options' => [
56
+                        'label' => /*@translate*/ 'Distance',
57
+                        'value_options' => [
58
+                            '5' => '5 km',
59
+                            '10' => '10 km',
60
+                            '20' => '20 km',
61
+                            '50' => '50 km',
62
+                            '100' => '100 km'
63
+                        ],
64
+                        'span' => 4,
65 65
 
66
-                 ],
67
-                 'attributes' => [
68
-                     'value' => '10', // default distance
69
-                     'data-searchbox' => -1,  // hide the search box
70
-                     'data-allowclear' => 'false', // allow to clear a selected value
71
-                     'data-placeholder' => /*@translate*/ 'Distance',
72
-                     'data-width' => '100%',
73
-                 ]
74
-             ]
66
+                    ],
67
+                    'attributes' => [
68
+                        'value' => '10', // default distance
69
+                        'data-searchbox' => -1,  // hide the search box
70
+                        'data-allowclear' => 'false', // allow to clear a selected value
71
+                        'data-placeholder' => /*@translate*/ 'Distance',
72
+                        'data-width' => '100%',
73
+                    ]
74
+                ]
75 75
         );
76 76
     }
77 77
 }
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/LoadActiveOrganizations.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@
 block discarded – undo
51 51
             $imageUrl = $image ? $image->getUri() : '';
52 52
 
53 53
             $options[] = [ 'id' => $org->getId(),
54
-                           'text' => $name . '|'
55
-                                      . $contact->getCity() . '|'
56
-                                      . $contact->getStreet() . '|'
57
-                                      . $contact->getHouseNumber() . '|'
58
-                                      . $imageUrl
54
+                            'text' => $name . '|'
55
+                                        . $contact->getCity() . '|'
56
+                                        . $contact->getStreet() . '|'
57
+                                        . $contact->getHouseNumber() . '|'
58
+                                        . $imageUrl
59 59
             ];
60 60
         }
61 61
 
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/Form.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@
 block discarded – undo
71 71
         $basepath   = $renderer->plugin('basepath');
72 72
         
73 73
         $headscript->appendFile($basepath('/Core/js/core.spinnerbutton.js'))
74
-                   ->appendFile($basepath('/assets/select2/js/select2.min.js'))
75
-                   ->appendFile($basepath('/Core/js/core.forms.js'));
74
+                    ->appendFile($basepath('/assets/select2/js/select2.min.js'))
75
+                    ->appendFile($basepath('/Core/js/core.forms.js'));
76 76
 
77 77
         /* @noinspection PhpParamsInspection */
78 78
         $renderer->headLink()->appendStylesheet($basepath('/assets/select2/css/select2.css'));
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/ApplicationsFilter.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -36,50 +36,50 @@
 block discarded – undo
36 36
     {
37 37
 
38 38
         $this->add(
39
-             [
40
-                 'type' => JobSelect::class,
41
-                 'name' => 'job',
42
-                 'options' => [
43
-                     'label' => /* @translate */ 'Enter job title',
44
-                     //'empty_option' => 'Enter job title',
45
-                 ],
46
-                 'attributes' => [
47
-                     'id' => 'job-filter',
48
-                     'class' => 'form-control',
49
-                     'data-placeholder' => 'Enter job title',
50
-                     'data-autoinit' => 'false',
51
-                     'data-submit-on-change' => 'true',
52
-                 ]
53
-             ]
39
+                [
40
+                    'type' => JobSelect::class,
41
+                    'name' => 'job',
42
+                    'options' => [
43
+                        'label' => /* @translate */ 'Enter job title',
44
+                        //'empty_option' => 'Enter job title',
45
+                    ],
46
+                    'attributes' => [
47
+                        'id' => 'job-filter',
48
+                        'class' => 'form-control',
49
+                        'data-placeholder' => 'Enter job title',
50
+                        'data-autoinit' => 'false',
51
+                        'data-submit-on-change' => 'true',
52
+                    ]
53
+                ]
54 54
         );
55 55
 
56 56
         $this->add(
57
-             [
58
-                 'type' => 'Applications\Form\Element\StatusSelect',
59
-                 'name' => 'status',
60
-                 'options' => [
61
-                     'label' => /* @translate */ 'Status',
62
-                 ],
63
-                 'attributes' => [
64
-                     'data-width' => '100%',
65
-                     'data-submit-on-change' => 'true',
66
-                     'data-placeholder' => /*@translate*/ 'all',
67
-                 ]
68
-             ]
57
+                [
58
+                    'type' => 'Applications\Form\Element\StatusSelect',
59
+                    'name' => 'status',
60
+                    'options' => [
61
+                        'label' => /* @translate */ 'Status',
62
+                    ],
63
+                    'attributes' => [
64
+                        'data-width' => '100%',
65
+                        'data-submit-on-change' => 'true',
66
+                        'data-placeholder' => /*@translate*/ 'all',
67
+                    ]
68
+                ]
69 69
         );
70 70
 
71 71
         $this->add(
72
-             ['type' => 'ToggleButton',
73
-                   'name' => 'unread',
74
-                   'options' => [
75
-                       'checked_value' => '1',
76
-                       'unchecked_value' => '0',
77
-                       'label' => 'unread',
78
-                   ],
79
-                 'attributes' => [
80
-                     'data-submit-on-change' => 'true',
81
-                 ]
82
-             ]
72
+                ['type' => 'ToggleButton',
73
+                    'name' => 'unread',
74
+                    'options' => [
75
+                        'checked_value' => '1',
76
+                        'unchecked_value' => '0',
77
+                        'label' => 'unread',
78
+                    ],
79
+                    'attributes' => [
80
+                        'data-submit-on-change' => 'true',
81
+                    ]
82
+                ]
83 83
         );
84 84
 
85 85
         $this->setButtonElement('unread');
Please login to merge, or discard this patch.