Completed
Push — develop ( bfc0af...88d3fd )
by
unknown
08:28
created
module/Cv/src/Cv/Form/EducationFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     public function init()
25 25
     {
26 26
         $this->setName('education')
27
-             ->setHydrator(new EntityHydrator())
28
-             ->setObject(new EducationEntity());
27
+                ->setHydrator(new EntityHydrator())
28
+                ->setObject(new EducationEntity());
29 29
         
30 30
         $this->add(
31 31
             array(
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/PreferredJobFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
     public function init()
53 53
     {
54 54
         $this->setName('preferredJob')
55
-             ->setHydrator(new EntityHydrator())
56
-             ->setObject(new PreferredJob());
55
+                ->setHydrator(new EntityHydrator())
56
+                ->setObject(new PreferredJob());
57 57
 
58 58
         $this->add(
59 59
             array(
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/InputFilter/Employment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $this->add([
28 28
             'name' => 'endDate',
29
-            'required' => ! $data['currentIndicator']
29
+            'required' => !$data['currentIndicator']
30 30
         ]);
31 31
         
32 32
         return parent::setData($data);
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/EmploymentFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
     public function init()
25 25
     {
26 26
         $this->setName('employment')
27
-             ->setHydrator(new EntityHydrator())
28
-             ->setObject(new EmploymentEntity());
27
+                ->setHydrator(new EntityHydrator())
28
+                ->setObject(new EmploymentEntity());
29 29
         
30 30
         $this->add(
31 31
             array(
Please login to merge, or discard this patch.
module/Cv/config/module.config.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
                  * for multiple paths.
16 16
                  * example https://github.com/doctrine/DoctrineORMModule
17 17
                  */
18
-                'paths' => array( __DIR__ . '/../src/Cv/Entity'),
18
+                'paths' => array(__DIR__.'/../src/Cv/Entity'),
19 19
             ),
20 20
         ),
21 21
         'eventmanager' => array(
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         'translation_file_patterns' => array(
37 37
             array(
38 38
                 'type'     => 'gettext',
39
-                'base_dir' => __DIR__ . '/../language',
39
+                'base_dir' => __DIR__.'/../language',
40 40
                 'pattern'  => '%s.mo',
41 41
             ),
42 42
         ),
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
             'resume-recruiter' => array(
167 167
                 'label' =>  /*@translate*/ 'Talent-Pool',
168 168
                 'route' => 'lang/cvs',
169
-                'active_on' => [ 'lang/cvs/edit', 'lang/cvs/view' ],
169
+                'active_on' => ['lang/cvs/edit', 'lang/cvs/view'],
170 170
                 'resource' => 'navigation/resume-recruiter',
171 171
                 'order' => 10,
172 172
                 'pages' => array(
@@ -194,15 +194,15 @@  discard block
 block discarded – undo
194 194
     
195 195
         // Map template to files. Speeds up the lookup through the template stack.
196 196
         'template_map' => array(
197
-            'cv/form/employment.view' => __DIR__ . '/../view/cv/form/employment.view.phtml',
198
-            'cv/form/employment.form' => __DIR__ . '/../view/cv/form/employment.form.phtml',
199
-            'cv/form/education.view' => __DIR__ . '/../view/cv/form/education.view.phtml',
200
-            'cv/form/education.form' => __DIR__ . '/../view/cv/form/education.form.phtml'
197
+            'cv/form/employment.view' => __DIR__.'/../view/cv/form/employment.view.phtml',
198
+            'cv/form/employment.form' => __DIR__.'/../view/cv/form/employment.form.phtml',
199
+            'cv/form/education.view' => __DIR__.'/../view/cv/form/education.view.phtml',
200
+            'cv/form/education.form' => __DIR__.'/../view/cv/form/education.form.phtml'
201 201
         ),
202 202
     
203 203
         // Where to look for view templates not mapped above
204 204
         'template_path_stack' => array(
205
-            __DIR__ . '/../view',
205
+            __DIR__.'/../view',
206 206
         ),
207 207
     ),
208 208
 
Please login to merge, or discard this patch.
module/Core/src/Core/Form/CollectionContainer.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
             $collection[] = $this->newEntry;
81 81
             $form = $this->buildForm($key, $this->newEntry);
82 82
             $eventManager = $form->getEventManager();
83
-			$eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
83
+            $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
84 84
                 if (!$event->getParam('isValid')) {
85 85
                     $collection->removeElement($this->newEntry);
86 86
                 }
87 87
             });
88
-			$eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
88
+            $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
89 89
                 $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry));
90 90
             });
91 91
             
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         }
118 118
     }
119 119
     
120
-	/**
120
+    /**
121 121
      * @see \Core\Form\Element\ViewHelperProviderInterface::getViewHelper()
122 122
      */
123 123
     public function getViewHelper()
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     protected function setupForm(CoreForm $form, $key)
223 223
     {
224
-         $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key)))
224
+            $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key)))
225 225
             ->setAttribute('data-entry-key', $key)
226 226
             ->setOption('control_buttons', [[
227 227
                 'class' => 'btn-danger form-collection-container-remove-button',
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormCollectionContainer.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $translator = $this->getTranslator();
61 61
         $formContainerHelper = $view->formContainer();
62 62
         $formsMarkup = '';
63
-		$formTemplateWrapper = '<div class="form-collection-container-form">
63
+        $formTemplateWrapper = '<div class="form-collection-container-form">
64 64
             '. ($this->displayRemoveButton ? '<button type="button" class="btn btn-sm btn-danger pull-right form-collection-container-remove-button">' . $translator->translate('Remove') . '</button>' : '') . '
65 65
             %s
66 66
         </div>';
@@ -71,16 +71,16 @@  discard block
 block discarded – undo
71 71
         }
72 72
         
73 73
         $templateForm = $container->getTemplateForm();
74
-		$templateMarkup = sprintf(
74
+        $templateMarkup = sprintf(
75 75
             $view->formCollection()->getTemplateWrapper(),
76 76
             $view->escapeHtmlAttr(sprintf($formTemplateWrapper, $formContainerHelper->renderElement($templateForm, $layout, $parameter)))
77 77
         );
78 78
         
79
-		return sprintf('<div class="form-collection-container" data-new-entry-key="%s" data-remove-action="%s" data-remove-question="%s">
79
+        return sprintf('<div class="form-collection-container" data-new-entry-key="%s" data-remove-action="%s" data-remove-question="%s">
80 80
                 <h3>%s</h3>
81 81
                 %s%s%s
82 82
             </div>',
83
-		    CollectionContainer::NEW_ENTRY,
83
+            CollectionContainer::NEW_ENTRY,
84 84
             $container->formatAction('remove'),
85 85
             $translator->translate('Really remove?'),
86 86
             $container->getLabel(),
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
         );
91 91
     }
92 92
     /**
93
-	 * @param boolean $displayRemoveButton
94
-	 * @return FormCollectionContainer
93
+     * @param boolean $displayRemoveButton
94
+     * @return FormCollectionContainer
95 95
      * @since 0.26
96
-	 */
97
-	public function setDisplayRemoveButton($displayRemoveButton)
98
-	{
99
-		$this->displayRemoveButton = (bool)$displayRemoveButton;
96
+     */
97
+    public function setDisplayRemoveButton($displayRemoveButton)
98
+    {
99
+        $this->displayRemoveButton = (bool)$displayRemoveButton;
100 100
 		
101
-		return $this;
102
-	}
101
+        return $this;
102
+    }
103 103
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $formContainerHelper = $view->formContainer();
62 62
         $formsMarkup = '';
63 63
 		$formTemplateWrapper = '<div class="form-collection-container-form">
64
-            '. ($this->displayRemoveButton ? '<button type="button" class="btn btn-sm btn-danger pull-right form-collection-container-remove-button">' . $translator->translate('Remove') . '</button>' : '') . '
64
+            '. ($this->displayRemoveButton ? '<button type="button" class="btn btn-sm btn-danger pull-right form-collection-container-remove-button">'.$translator->translate('Remove').'</button>' : '').'
65 65
             %s
66 66
         </div>';
67 67
         
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $container->getLabel(),
87 87
             $formsMarkup,
88 88
             $templateMarkup,
89
-            '<div class="form-collection-container-add-wrapper"><button type="button" class="btn btn-success form-collection-container-add-button"><span class="yk-icon yk-icon-plus"></span> ' . sprintf($translator->translate('Add %s'), $container->getLabel()) . '</button></div>'
89
+            '<div class="form-collection-container-add-wrapper"><button type="button" class="btn btn-success form-collection-container-add-button"><span class="yk-icon yk-icon-plus"></span> '.sprintf($translator->translate('Add %s'), $container->getLabel()).'</button></div>'
90 90
         );
91 91
     }
92 92
     /**
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 */
97 97
 	public function setDisplayRemoveButton($displayRemoveButton)
98 98
 	{
99
-		$this->displayRemoveButton = (bool)$displayRemoveButton;
99
+		$this->displayRemoveButton = (bool) $displayRemoveButton;
100 100
 		
101 101
 		return $this;
102 102
 	}
Please login to merge, or discard this patch.
module/Core/src/Core/Form/EmptySummaryAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     public function getEmptySummaryNotice()
52 52
     {
53
-        if (! isset($this->emptySummaryNotice)) {
53
+        if (!isset($this->emptySummaryNotice)) {
54 54
             $this->emptySummaryNotice = $this->getDefaultEmptySummaryNotice();
55 55
         }
56 56
         
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/InputFilter/Education.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $this->add([
28 28
             'name' => 'endDate',
29
-            'required' => ! $data['currentIndicator']
29
+            'required' => !$data['currentIndicator']
30 30
         ]);
31 31
         
32 32
         return parent::setData($data);
Please login to merge, or discard this patch.