Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
test/ApplicationsTest/Repository/Filter/PaginationQueryTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         ],
46 46
     ];
47 47
 
48
-    private $inheritance = [ AbstractPaginationQuery::class ];
48
+    private $inheritance = [AbstractPaginationQuery::class];
49 49
 
50 50
     private $attributes = [
51 51
         'repositoryName'    => 'Applications/Application',
52
-        'sortPropertiesMap' => [ 'date' => 'dateCreated.date' ]
52
+        'sortPropertiesMap' => ['date' => 'dateCreated.date']
53 53
     ];
54 54
 
55 55
     private $authMock;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     private function getTargetArgs()
58 58
     {
59 59
         $this->authMock = $this->getMockBuilder(AuthenticationService::class)->disableOriginalConstructor()->getMock();
60
-        return [ $this->authMock ];
60
+        return [$this->authMock];
61 61
     }
62 62
 
63 63
     private function getTargetArgsForCreateQueryTest()
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $auth = $this
69 69
             ->getMockBuilder(AuthenticationService::class)
70 70
             ->disableOriginalConstructor()
71
-            ->setMethods(['getUser' ])
71
+            ->setMethods(['getUser'])
72 72
             ->getMock()
73 73
         ;
74 74
 
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
         $qb1->expects($this->exactly(2))->method('sort')->with(['dateCreated.date' => -1])->will($this->returnSelf());
121 121
 
122 122
         $qb2->expects($this->exactly(6))->method('field')->withConsecutive(
123
-            [ 'job'],
124
-            [ 'readBy'],
123
+            ['job'],
124
+            ['readBy'],
125 125
             ['keywords'],
126 126
             ['permissions.view'],
127 127
             ['isDraft'],
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             [$params3['status']]
135 135
         )->will($this->returnSelf());
136 136
         $qb2->expects($this->once())->method('notEqual')->with('PqtUser');
137
-        $qb2->expects($this->once())->method('all')->with($this->callback(function ($arg) {
137
+        $qb2->expects($this->once())->method('all')->with($this->callback(function($arg) {
138 138
             return is_array($arg) && $arg[0] instanceof \MongoRegex;
139 139
         }));
140 140
         $qb2->expects($this->once())->method('sort')->with(['testSort' => 1]);
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 {
153 153
     public function __call($method, $args)
154 154
     {
155
-        $this->callstack[] = [ $method, $args ];
155
+        $this->callstack[] = [$method, $args];
156 156
 
157 157
         return $this;
158 158
     }
Please login to merge, or discard this patch.
Applications/test/ApplicationsTest/Factory/Form/JobSelectFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         ],
44 44
     ];
45 45
 
46
-    private $inheritance = [ FactoryInterface::class ];
46
+    private $inheritance = [FactoryInterface::class];
47 47
 
48 48
     public function testCreateService()
49 49
     {
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/CommentTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     public function testSetGetMessage()
61 61
     {
62
-        $message="this message";
62
+        $message = "this message";
63 63
         $this->target->setMessage($message);
64 64
         $this->assertEquals($this->target->getMessage(), $message);
65 65
     }
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/ApplicationTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     public function testSetGetCv()
138 138
     {
139 139
         $cv = new Cv();
140
-        $education= new Education();
140
+        $education = new Education();
141 141
         $education->setDescription('test');
142 142
         $educations = new ArrayCollection();
143 143
         $educations->add($education);
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     public function testSetGetKeywords()
320 320
     {
321
-        $input = array('Sehr',' geehrte',' Damen' ,'und' ,'Herren');
321
+        $input = array('Sehr', ' geehrte', ' Damen', 'und', 'Herren');
322 322
         $this->target->setKeywords($input);
323 323
         $this->assertEquals($input, $this->target->getKeywords());
324 324
         $this->target->clearKeywords();
@@ -341,8 +341,8 @@  discard block
 block discarded – undo
341 341
     public function provideSetGetDraft()
342 342
     {
343 343
         return [
344
-            [true,true],
345
-            [false,false]
344
+            [true, true],
345
+            [false, false]
346 346
         ];
347 347
     }
348 348
 
@@ -372,11 +372,11 @@  discard block
 block discarded – undo
372 372
     public function providerSetGetApplicationStatus()
373 373
     {
374 374
         return [
375
-            [Status::REJECTED,new Status(Status::REJECTED)],
376
-            [Status::INVITED,new Status(Status::INVITED)],
377
-            [Status::INCOMING,new Status(Status::INCOMING)],
378
-            [Status::CONFIRMED,new Status(Status::CONFIRMED)],
379
-            [new Status(Status::CONFIRMED),new Status(Status::CONFIRMED)],
375
+            [Status::REJECTED, new Status(Status::REJECTED)],
376
+            [Status::INVITED, new Status(Status::INVITED)],
377
+            [Status::INCOMING, new Status(Status::INCOMING)],
378
+            [Status::CONFIRMED, new Status(Status::CONFIRMED)],
379
+            [new Status(Status::CONFIRMED), new Status(Status::CONFIRMED)],
380 380
         ];
381 381
     }
382 382
 
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/SettingsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         return [
67 67
             [1, true],
68 68
             [true, true],
69
-            [false,false],
69
+            [false, false],
70 70
             ["1", true],
71 71
         ];
72 72
     }
Please login to merge, or discard this patch.
Applications/test/ApplicationsTest/Paginator/JobSelectPaginatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     private $repository;
42 42
 
43
-    private $inheritance = [ Paginator::class ];
43
+    private $inheritance = [Paginator::class];
44 44
 
45 45
     private function getTargetArgs()
46 46
     {
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
         $qb = $this->getMockBuilder(Builder::class)->disableOriginalConstructor()->setMethods(['field', 'equals', 'getQuery'])->getMock();
62 62
         $qb->expects($this->once())->method('field')->with('title')->will($this->returnSelf());
63 63
         $qb->expects($this->once())->method('equals')->with(
64
-            $this->callback(function ($value) use ($q) {
65
-                return $value instanceof \MongoRegex && (String) $value == '/' . $q . '/i';
64
+            $this->callback(function($value) use ($q) {
65
+                return $value instanceof \MongoRegex && (String) $value == '/'.$q.'/i';
66 66
             })
67 67
         );
68 68
         $cursor = $this->getMockBuilder(\Doctrine\ODM\MongoDB\Cursor::class)->disableOriginalConstructor()->getMock();
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Repository/Filter/PaginationQueryTest.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         'getTargetArgs',
40 40
     ];
41 41
 
42
-    private $inheritance = [ AbstractPaginationQuery::class ];
42
+    private $inheritance = [AbstractPaginationQuery::class];
43 43
 
44 44
     private function getTargetArgs()
45 45
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         $this->user = $user;
63
-        return [ $user ];
63
+        return [$user];
64 64
     }
65 65
 
66 66
     public function testDefaultPropertyValues()
@@ -92,29 +92,29 @@  discard block
 block discarded – undo
92 92
         $exprExpects = [];
93 93
 
94 94
         if ('search' == $mode || true === $mode) {
95
-            $exprExpects['operator'][] = [ 'with' => ['$text', ['$search' => strtolower($params['search'])]]];
96
-            $exprExpects['getQuery'][] = [ 'return' => 'exprQuery' ];
97
-            $qbExpects['field'][] = [ 'with' => [null]];
98
-            $qbExpects['equals'][] = [ 'with' => ['exprQuery']];
95
+            $exprExpects['operator'][] = ['with' => ['$text', ['$search' => strtolower($params['search'])]]];
96
+            $exprExpects['getQuery'][] = ['return' => 'exprQuery'];
97
+            $qbExpects['field'][] = ['with' => [null]];
98
+            $qbExpects['equals'][] = ['with' => ['exprQuery']];
99 99
         }
100 100
 
101 101
         if ('location' == $mode || true === $mode) {
102 102
             $coords = $params['l']->getCoordinates()->getCoordinates();
103 103
             $qbExpects['field'][] = ['with' => ['preferredJob.desiredLocations.coordinates']];
104
-            $qbExpects['geoWithinCenter'][] = ['with' => [$coords[0], $coords[1],(float)$params['d'] / 100]];
104
+            $qbExpects['geoWithinCenter'][] = ['with' => [$coords[0], $coords[1], (float) $params['d'] / 100]];
105 105
         }
106 106
 
107
-        $exprExpects['field'][] = [ 'with' => ['permissions.view']];
108
-        $exprExpects['equals'][] = [ 'with' => [ $this->user->getId()]];
109
-        $exprExpects['field'][] = [ 'with' => ['status.name']];
110
-        $exprExpects['equals'][] = [ 'with' => [Status::PUBLIC_TO_ALL]];
107
+        $exprExpects['field'][] = ['with' => ['permissions.view']];
108
+        $exprExpects['equals'][] = ['with' => [$this->user->getId()]];
109
+        $exprExpects['field'][] = ['with' => ['status.name']];
110
+        $exprExpects['equals'][] = ['with' => [Status::PUBLIC_TO_ALL]];
111 111
 
112
-        $qbExpects['addOr'][] = [ 'with' => [$expr] ];
113
-        $qbExpects['addOr'][] = [ 'with' => [$expr] ];
112
+        $qbExpects['addOr'][] = ['with' => [$expr]];
113
+        $qbExpects['addOr'][] = ['with' => [$expr]];
114 114
 
115 115
 
116 116
 
117
-        $configureMock = function ($mock, $expects) {
117
+        $configureMock = function($mock, $expects) {
118 118
             foreach ($expects as $method => $spec) {
119 119
                 $count = count($spec);
120 120
                 $with = [];
@@ -141,15 +141,15 @@  discard block
 block discarded – undo
141 141
     public function provideCreateQueryTestData()
142 142
     {
143 143
         $loc = new Location();
144
-        $loc->setCoordinates(new Point([1,1]));
144
+        $loc->setCoordinates(new Point([1, 1]));
145 145
         return [
146 146
 
147
-            'woParams'    => [ null, null ],
148
-            'emptySearch' => [ null, ['search' => '']],
149
-            'search'      => [ 'search', ['search' => 'MusBeLowerCase']],
150
-            'emptyLocation' => [ null, ['l' => new Location()]],
151
-            'location'    => [ 'location', ['l' => $loc, 'd' => 10]],
152
-            'all'         => [ true, ['search' => 'MustLowerThisOneToo', 'l' => $loc, 'd' => 5]],
147
+            'woParams'    => [null, null],
148
+            'emptySearch' => [null, ['search' => '']],
149
+            'search'      => ['search', ['search' => 'MusBeLowerCase']],
150
+            'emptyLocation' => [null, ['l' => new Location()]],
151
+            'location'    => ['location', ['l' => $loc, 'd' => 10]],
152
+            'all'         => [true, ['search' => 'MustLowerThisOneToo', 'l' => $loc, 'd' => 5]],
153 153
 
154 154
         ];
155 155
     }
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Repository/Filter/PaginationQueryFactoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,13 +37,13 @@  discard block
 block discarded – undo
37 37
 
38 38
     private $target = PaginationQueryFactory::class;
39 39
 
40
-    private $inheritance = [ FactoryInterface::class ];
40
+    private $inheritance = [FactoryInterface::class];
41 41
 
42 42
     public function provideUser()
43 43
     {
44 44
         return [
45
-            [ null ],
46
-            [ new User() ],
45
+            [null],
46
+            [new User()],
47 47
         ];
48 48
     }
49 49
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         }
76 76
 
77 77
         $services = $this->createServiceManagerMock(
78
-            ['AuthenticationService' => $auth ]
78
+            ['AuthenticationService' => $auth]
79 79
         );
80 80
 
81 81
         $paginators = $this->createPluginManagerMock([], $services);
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Factory/Controller/ViewControllerFactoryTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
         '@testCreateServiceProxiesToInvokeAndPassServiceManager' => VCF_Mock::class,
37 37
     ];
38 38
 
39
-    private $inheritance = [ FactoryInterface::class ];
39
+    private $inheritance = [FactoryInterface::class];
40 40
 
41 41
     public function provideCreateServiceTestData()
42 42
     {
43 43
         return [
44
-            [ 'requestedName' ],
45
-            [ null ],
44
+            ['requestedName'],
45
+            [null],
46 46
         ];
47 47
     }
48 48
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $repositories = $this
68 68
             ->createPluginManagerMock(
69 69
                 [
70
-                'Cv/Cv' => [ 'service' => $repository, 'count_get' => 1 ]
70
+                'Cv/Cv' => ['service' => $repository, 'count_get' => 1]
71 71
             ]
72 72
             )
73 73
         ;
@@ -106,6 +106,6 @@  discard block
 block discarded – undo
106 106
 
107 107
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
108 108
     {
109
-        $this->reqName = is_null($requestedName) ? ViewController::class:$requestedName;
109
+        $this->reqName = is_null($requestedName) ? ViewController::class : $requestedName;
110 110
     }
111 111
 }
Please login to merge, or discard this patch.