Passed
Push — master ( ceaf1d...c77583 )
by Mathias
14:53
created
module/Cv/test/CvTest/Form/SearchFormTest.php 2 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -65,41 +65,41 @@
 block discarded – undo
65 65
                 ['cv-list-filter']
66 66
             );
67 67
         $add1 = [
68
-                 'name' => 'l',
69
-                 'type' => 'LocationSelect',
70
-                 'options' => [
71
-                     'label' => 'Location',
72
-                     'span' => 3,
73
-                     'location_entity' => \Cv\Entity\Location::class,
74
-                 ],
75
-                 'attributes' => [
76
-                     'data-width' => '100%',
77
-                 ],
78
-             ];
68
+                    'name' => 'l',
69
+                    'type' => 'LocationSelect',
70
+                    'options' => [
71
+                        'label' => 'Location',
72
+                        'span' => 3,
73
+                        'location_entity' => \Cv\Entity\Location::class,
74
+                    ],
75
+                    'attributes' => [
76
+                        'data-width' => '100%',
77
+                    ],
78
+                ];
79 79
 
80 80
         $add2 = [
81
-                 'name' => 'd',
82
-                 'type' => 'Core\Form\Element\Select',
83
-                 'options' => [
84
-                     'label' => /*@translate*/ 'Distance',
85
-                     'value_options' => [
86
-                         '5' => '5 km',
87
-                         '10' => '10 km',
88
-                         '20' => '20 km',
89
-                         '50' => '50 km',
90
-                         '100' => '100 km'
91
-                     ],
92
-                     'span' => 4,
81
+                    'name' => 'd',
82
+                    'type' => 'Core\Form\Element\Select',
83
+                    'options' => [
84
+                        'label' => /*@translate*/ 'Distance',
85
+                        'value_options' => [
86
+                            '5' => '5 km',
87
+                            '10' => '10 km',
88
+                            '20' => '20 km',
89
+                            '50' => '50 km',
90
+                            '100' => '100 km'
91
+                        ],
92
+                        'span' => 4,
93 93
 
94
-                 ],
95
-                 'attributes' => [
96
-                     'value' => '10',
97
-                     'data-searchbox' => -1,
98
-                     'data-allowclear' => 'false',
99
-                     'data-placeholder' => 'Distance',
100
-                     'data-width' => '100%',
101
-                 ]
102
-             ];
94
+                    ],
95
+                    'attributes' => [
96
+                        'value' => '10',
97
+                        'data-searchbox' => -1,
98
+                        'data-allowclear' => 'false',
99
+                        'data-placeholder' => 'Distance',
100
+                        'data-width' => '100%',
101
+                    ]
102
+                ];
103 103
 
104 104
         $this->target->expects($this->exactly(2))->method('add')
105 105
             ->withConsecutive(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         ],
49 49
     ];
50 50
 
51
-    private $inheritance = [ \Core\Form\SearchForm::class ];
51
+    private $inheritance = [\Core\Form\SearchForm::class];
52 52
 
53 53
     public function testInitializesItself()
54 54
     {
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/InputFilter/EmploymentTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,17 +35,17 @@
 block discarded – undo
35 35
     private $target = [
36 36
         Employment::class,
37 37
         '@testSetData' => [
38
-            'mock' => [ 'add', 'populate' /* is called in parent method */ ]
38
+            'mock' => ['add', 'populate' /* is called in parent method */]
39 39
         ]
40 40
     ];
41 41
 
42
-    private $inheritance = [ InputFilter::class ];
42
+    private $inheritance = [InputFilter::class];
43 43
 
44 44
     public function provideFilterData()
45 45
     {
46 46
         return [
47
-            [ ['currentIndicator' => true ] ],
48
-            [ ['currentIndicator' => false ] ]
47
+            [['currentIndicator' => true]],
48
+            [['currentIndicator' => false]]
49 49
         ];
50 50
     }
51 51
 
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/InputFilter/EducationTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,17 +35,17 @@
 block discarded – undo
35 35
     private $target = [
36 36
         Education::class,
37 37
         '@testSetData' => [
38
-            'mock' => [ 'add', 'populate' /* is called in parent method */ ]
38
+            'mock' => ['add', 'populate' /* is called in parent method */]
39 39
         ]
40 40
     ];
41 41
 
42
-    private $inheritance = [ InputFilter::class ];
42
+    private $inheritance = [InputFilter::class];
43 43
 
44 44
     public function provideFilterData()
45 45
     {
46 46
         return [
47
-            [ ['currentIndicator' => true ] ],
48
-            [ ['currentIndicator' => false ] ]
47
+            [['currentIndicator' => true]],
48
+            [['currentIndicator' => false]]
49 49
         ];
50 50
     }
51 51
 
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/NativeLanguageFormTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
     private $target = NativeLanguageForm::class;
31 31
 
32
-    private $inheritance = [ SummaryForm::class ];
32
+    private $inheritance = [SummaryForm::class];
33 33
 
34 34
     private $attributes = [
35 35
         'baseFieldset' => 'Cv/NativeLanguageFieldset'
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/PreferredJobFormTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         ],
43 43
     ];
44 44
 
45
-    private $inheritance = [ SummaryForm::class ];
45
+    private $inheritance = [SummaryForm::class];
46 46
 
47 47
     private $attributes = [
48 48
         'baseFieldset' => PreferredJobFieldset::class,
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Form/PreferredJobFieldsetTest.php 2 patches
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -77,76 +77,76 @@
 block discarded – undo
77 77
     public function testInitializesItself()
78 78
     {
79 79
         $add = [
80
-                 [
81
-                     'name' => 'typeOfApplication',
82
-                     'type' => 'select',
83
-                     'options' => [
84
-                         'value_options' => $this->attributes['typeOfApplicationOptions'],
85
-                         'label' =>  'desired type of work',
86
-                         'description' =>  'Do you want to work permanently or temporary?',
87
-                     ],
88
-                     'attributes' => [
89
-                         'title' =>  'please describe your position',
90
-                         'description' => 'what kind of ',
91
-                         'data-placeholder' =>  'please select',
92
-                         'data-allowclear' => 'false',
93
-                         'data-searchbox' => -1,
94
-                         'multiple' => true,
95
-                         'data-width' => '100%',
96
-                     ],
97
-                 ],
80
+                    [
81
+                        'name' => 'typeOfApplication',
82
+                        'type' => 'select',
83
+                        'options' => [
84
+                            'value_options' => $this->attributes['typeOfApplicationOptions'],
85
+                            'label' =>  'desired type of work',
86
+                            'description' =>  'Do you want to work permanently or temporary?',
87
+                        ],
88
+                        'attributes' => [
89
+                            'title' =>  'please describe your position',
90
+                            'description' => 'what kind of ',
91
+                            'data-placeholder' =>  'please select',
92
+                            'data-allowclear' => 'false',
93
+                            'data-searchbox' => -1,
94
+                            'multiple' => true,
95
+                            'data-width' => '100%',
96
+                        ],
97
+                    ],
98 98
 
99
-             [
100
-                 'name' => 'desiredJob',
101
-                 'type' => 'Text',
102
-                 'options' => [
103
-                     'label' =>  'desired job position',
104
-                     'description' =>  'Enter the title of your desired job. Eg. "Software Developer" or "Customer Service Representative"',
105
-                 ],
106
-                 'attributes' => [
107
-                     'title' =>  'please describe your position',
108
-                 ],
109
-             ],
110
-             [
111
-                 'name' => 'desiredLocations',
112
-                 'type' => 'LocationSelect',
113
-                 'options' => [
114
-                     'label' =>  'desired job location',
115
-                     'description' =>  'Where do you want to work?',
116
-                     'location_entity' => new Location(),
117
-                 ],
118
-                 'attributes' => [
119
-                     'title' =>  'please describe your position',
120
-                     'multiple' => true,
121
-                     'data-width' => '100%',
122
-                 ],
123
-             ],
124
-             [
125
-                 'name' => 'willingnessToTravel',
126
-                 'type' => 'Select',
127
-                 'options' => [
128
-                     'value_options' => $this->attributes['willingnessToTravelOptions'],
129
-                     'label' =>  'Willingness to travel',
130
-                     'description' =>  'Enter your willingness to travel.',
131
-                 ],
132
-                 'attributes' => [
133
-                     'data-placeholder' =>  'please select',
134
-                     'data-allowclear' => 'false',
135
-                     'data-searchbox' => -1,
136
-                     'data-width' => '100%'
137
-                 ],
138
-             ],
139
-             [
140
-                 'name' => 'expectedSalary',
141
-                 'type' => 'Text',
142
-                 'options' => [
143
-                     'label' =>  'expected Salary',
144
-                     'description' =>  'What is your expected Salary?',
145
-                 ],
146
-                 'attributes' => [
147
-                     'title' =>  'please describe your position',
148
-                 ],
149
-             ],
99
+                [
100
+                    'name' => 'desiredJob',
101
+                    'type' => 'Text',
102
+                    'options' => [
103
+                        'label' =>  'desired job position',
104
+                        'description' =>  'Enter the title of your desired job. Eg. "Software Developer" or "Customer Service Representative"',
105
+                    ],
106
+                    'attributes' => [
107
+                        'title' =>  'please describe your position',
108
+                    ],
109
+                ],
110
+                [
111
+                    'name' => 'desiredLocations',
112
+                    'type' => 'LocationSelect',
113
+                    'options' => [
114
+                        'label' =>  'desired job location',
115
+                        'description' =>  'Where do you want to work?',
116
+                        'location_entity' => new Location(),
117
+                    ],
118
+                    'attributes' => [
119
+                        'title' =>  'please describe your position',
120
+                        'multiple' => true,
121
+                        'data-width' => '100%',
122
+                    ],
123
+                ],
124
+                [
125
+                    'name' => 'willingnessToTravel',
126
+                    'type' => 'Select',
127
+                    'options' => [
128
+                        'value_options' => $this->attributes['willingnessToTravelOptions'],
129
+                        'label' =>  'Willingness to travel',
130
+                        'description' =>  'Enter your willingness to travel.',
131
+                    ],
132
+                    'attributes' => [
133
+                        'data-placeholder' =>  'please select',
134
+                        'data-allowclear' => 'false',
135
+                        'data-searchbox' => -1,
136
+                        'data-width' => '100%'
137
+                    ],
138
+                ],
139
+                [
140
+                    'name' => 'expectedSalary',
141
+                    'type' => 'Text',
142
+                    'options' => [
143
+                        'label' =>  'expected Salary',
144
+                        'description' =>  'What is your expected Salary?',
145
+                    ],
146
+                    'attributes' => [
147
+                        'title' =>  'please describe your position',
148
+                    ],
149
+                ],
150 150
         ];
151 151
 
152 152
         $callCount = count($add);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
44 44
             'mock' => [
45 45
                 'add',
46 46
                 'setName' => ['with' => 'preferredJob', 'count' => 1, 'return' => '__self__'],
47
-                'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class ], 'count' => 1, 'return' => '__self__'],
48
-                'setObject' => ['@with' => ['isInstanceOf', PreferredJob::class ], 'count' => 1, 'return' => '__self__'],
47
+                'setHydrator' => ['@with' => ['isInstanceOf', EntityHydrator::class], 'count' => 1, 'return' => '__self__'],
48
+                'setObject' => ['@with' => ['isInstanceOf', PreferredJob::class], 'count' => 1, 'return' => '__self__'],
49 49
             ],
50 50
             'args' => false,
51 51
         ],
52 52
     ];
53 53
 
54
-    private $inheritance = [ Fieldset::class ];
54
+    private $inheritance = [Fieldset::class];
55 55
 
56 56
     private $attributes = [
57 57
         'typeOfApplicationOptions' => [
@@ -151,13 +151,13 @@  discard block
 block discarded – undo
151 151
         ];
152 152
 
153 153
         $callCount = count($add);
154
-        $addArgValidator = function ($arg) use ($add, $callCount) {
154
+        $addArgValidator = function($arg) use ($add, $callCount) {
155 155
             static $count = 0;
156 156
 
157 157
             /* PPHUnit calls this callback again after all invokations are made
158 158
              * I don't know why, but therefor the need to check if $count is greater that 7
159 159
              */
160
-            return $callCount - 1  < $count || $arg == $add[$count++];
160
+            return $callCount - 1 < $count || $arg == $add[$count++];
161 161
         };
162 162
 
163 163
         $this->target
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Paginator/PaginatorFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         '@testSetterAndGetter' => PaginatorFactoryMock::class,
33 33
     ];
34 34
 
35
-    private $inheritance = [ PaginatorFactoryAbstract::class ];
35
+    private $inheritance = [PaginatorFactoryAbstract::class];
36 36
 
37 37
     private $properties = [
38 38
         ['filter', ['default' => 'Cv/PaginationQuery']],
Please login to merge, or discard this patch.
module/Cv/test/TestConfig.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         // modules are loaded. These effectively overide configuration
33 33
         // provided by modules themselves. Paths may use GLOB_BRACE notation.
34 34
         'config_glob_paths' => array(
35
-              __DIR__  . '/../../../test/config/{,*.}{global,local}.php',
35
+              __DIR__.'/../../../test/config/{,*.}{global,local}.php',
36 36
         ),
37 37
 
38 38
         // Whether or not to enable a configuration cache.
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $modules = array_merge(
3
-	include_once __DIR__.'/../../../config/common.modules.php',
4
-	[
5
-		'Install',
6
-		'Core',
7
-		'Auth',
8
-		'Jobs',
9
-		'Geo',
10
-		'Cv',
11
-		'Settings',
12
-		'Applications',
13
-		'Organizations',
14
-	]
3
+    include_once __DIR__.'/../../../config/common.modules.php',
4
+    [
5
+        'Install',
6
+        'Core',
7
+        'Auth',
8
+        'Jobs',
9
+        'Geo',
10
+        'Cv',
11
+        'Settings',
12
+        'Applications',
13
+        'Organizations',
14
+    ]
15 15
 );
16 16
 return array(
17 17
     // This should be an array of module namespaces used in the application.
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         // modules are loaded. These effectively overide configuration
37 37
         // provided by modules themselves. Paths may use GLOB_BRACE notation.
38 38
         'config_glob_paths' => array(
39
-              __DIR__  . '/../../../test/config/{,*.}{global,local}.php',
39
+                __DIR__  . '/../../../test/config/{,*.}{global,local}.php',
40 40
         ),
41 41
 
42 42
         // Whether or not to enable a configuration cache.
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     //     ),
75 75
     // )
76 76
 
77
-   // Initial configuration with which to seed the ServiceManager.
78
-   // Should be compatible with Laminas\ServiceManager\Config.
79
-   // 'service_manager' => array(),
77
+    // Initial configuration with which to seed the ServiceManager.
78
+    // Should be compatible with Laminas\ServiceManager\Config.
79
+    // 'service_manager' => array(),
80 80
 );
81 81
\ No newline at end of file
Please login to merge, or discard this patch.
module/Cv/test/Bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 /** @var array $testConfig */
4
-$testConfig = include __DIR__ . '/TestConfig.php';
4
+$testConfig = include __DIR__.'/TestConfig.php';
5 5
 
6
-require_once __DIR__ . '/../../../test/Bootstrap.php';
6
+require_once __DIR__.'/../../../test/Bootstrap.php';
Please login to merge, or discard this patch.