Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Cv/test/CvTest/Factory/Form/CvContactImageFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     private $target = CvContactImageFactory::class;
32 32
 
33
-    private $inheritance = [ UserImageFactory::class ];
33
+    private $inheritance = [UserImageFactory::class];
34 34
 
35 35
     private $attributes = [
36 36
         'fileEntityClass' => 'Cv\Entity\ContactImage',
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Controller/ViewControllerTest.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
      * @var array
52 52
      */
53
-    private $inheritance = [ AbstractActionController::class ];
53
+    private $inheritance = [AbstractActionController::class];
54 54
 
55 55
     /**
56 56
      *
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Repository/Filter/PaginationQueryFactoryTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
 
36 36
     private $target = PaginationQueryFactory::class;
37 37
 
38
-    private $inheritance = [ FactoryInterface::class ];
38
+    private $inheritance = [FactoryInterface::class];
39 39
 
40 40
     public function provideUser()
41 41
     {
42 42
         return [
43
-            [ null ],
44
-            [ new User() ],
43
+            [null],
44
+            [new User()],
45 45
         ];
46 46
     }
47 47
 
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
         }
74 74
 
75 75
         $services = $this->createServiceManagerMock(
76
-            ['AuthenticationService' => $auth ]
76
+            ['AuthenticationService' => $auth]
77 77
         );
78 78
 
79 79
         $paginators = $this->createPluginManagerMock([], $services);
80 80
 
81
-        $filter = $this->target->__invoke($services,'irrelevant');
81
+        $filter = $this->target->__invoke($services, 'irrelevant');
82 82
 
83 83
         $this->assertAttributeSame($user, 'user', $filter);
84 84
     }
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Repository/Filter/PaginationQueryTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         'getTargetArgs',
38 38
     ];
39 39
 
40
-    private $inheritance = [ AbstractPaginationQuery::class ];
40
+    private $inheritance = [AbstractPaginationQuery::class];
41 41
 
42 42
     private function getTargetArgs()
43 43
     {
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         $this->user = $user;
61
-        return [ $user ];
61
+        return [$user];
62 62
     }
63 63
 
64 64
     public function testDefaultPropertyValues()
@@ -90,26 +90,26 @@  discard block
 block discarded – undo
90 90
         $exprExpects = [];
91 91
 
92 92
         if ('search' == $mode || true === $mode) {
93
-            $exprExpects['operator'][] = [ 'with' => ['$text', ['$search' => strtolower($params['search'])]]];
94
-            $exprExpects['getQuery'][] = [ 'return' => 'exprQuery' ];
95
-            $qbExpects['field'][] = [ 'with' => [null]];
96
-            $qbExpects['equals'][] = [ 'with' => ['exprQuery']];
93
+            $exprExpects['operator'][] = ['with' => ['$text', ['$search' => strtolower($params['search'])]]];
94
+            $exprExpects['getQuery'][] = ['return' => 'exprQuery'];
95
+            $qbExpects['field'][] = ['with' => [null]];
96
+            $qbExpects['equals'][] = ['with' => ['exprQuery']];
97 97
 
98 98
         }
99 99
 
100 100
         if ('location' == $mode || true === $mode) {
101 101
             $coords = $params['l']->getCoordinates()->getCoordinates();
102 102
             $qbExpects['field'][] = ['with' => ['preferredJob.desiredLocations.coordinates']];
103
-            $qbExpects['geoWithinCenter'][] = ['with' => [$coords[0], $coords[1],(float)$params['d'] / 100]];
103
+            $qbExpects['geoWithinCenter'][] = ['with' => [$coords[0], $coords[1], (float) $params['d'] / 100]];
104 104
         }
105 105
 
106
-        $exprExpects['field'][] = [ 'with' => ['permissions.view']];
107
-        $exprExpects['equals'][] = [ 'with' => [ $this->user->getId()]];
108
-        $exprExpects['field'][] = [ 'with' => ['status.name']];
109
-        $exprExpects['equals'][] = [ 'with' => [Status::PUBLIC_TO_ALL]];
106
+        $exprExpects['field'][] = ['with' => ['permissions.view']];
107
+        $exprExpects['equals'][] = ['with' => [$this->user->getId()]];
108
+        $exprExpects['field'][] = ['with' => ['status.name']];
109
+        $exprExpects['equals'][] = ['with' => [Status::PUBLIC_TO_ALL]];
110 110
 
111
-        $qbExpects['addOr'][] = [ 'with' => [$expr] ];
112
-        $qbExpects['addOr'][] = [ 'with' => [$expr] ];
111
+        $qbExpects['addOr'][] = ['with' => [$expr]];
112
+        $qbExpects['addOr'][] = ['with' => [$expr]];
113 113
 
114 114
 
115 115
 
@@ -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.
Cv/test/CvTest/Repository/Event/DeleteRemovedAttachmentsSubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
 
38 38
     private $target = DeleteRemovedAttachmentsSubscriber::class;
39 39
 
40
-    private $inheritance = [ EventSubscriber::class ];
40
+    private $inheritance = [EventSubscriber::class];
41 41
 
42 42
     private $properties = [
43
-        ['subscribedEvents', ['default' => ['postRemoveEntity']] ]
43
+        ['subscribedEvents', ['default' => ['postRemoveEntity']]]
44 44
     ];
45 45
 
46 46
     public function testCallbackReturnsNullIfTargetIsNotAnAttachmentEntity()
Please login to merge, or discard this patch.
Cv/test/CvTest/Repository/Event/UpdateFilesPermissionsSubscriberTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
         '@testGetFilesAppendsContactImage' => UfpsMock::class,
42 42
     ];
43 43
 
44
-    private $inheritance = [ AbstractUpdateFilesPermissionsSubscriber::class ];
44
+    private $inheritance = [AbstractUpdateFilesPermissionsSubscriber::class];
45 45
 
46 46
     public function testDefaultAttributesValues()
47 47
     {
48 48
         $this->assertAttributeEquals(Cv::class, 'targetDocument', $this->target);
49
-        $this->assertAttributeEquals([ 'attachments' ], 'filesProperties', $this->target);
49
+        $this->assertAttributeEquals(['attachments'], 'filesProperties', $this->target);
50 50
     }
51 51
 
52 52
     public function testGetFilesAppendsContactImage()
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Entity/EmploymentTest.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
     private $target = Employment::class;
28 28
 
29
-    private $inheritance = [ 'Core\Entity\AbstractIdentifiableEntity' ];
29
+    private $inheritance = ['Core\Entity\AbstractIdentifiableEntity'];
30 30
 
31 31
     private $properties = [
32 32
         ['startDate', '01-01-2001'],
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Entity/LanguageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     private $target = Language::class;
36 36
 
37
-    private $inheritance = [ AbstractIdentifiableEntity::class , LanguageInterface::class ];
37
+    private $inheritance = [AbstractIdentifiableEntity::class, LanguageInterface::class];
38 38
 
39 39
     private $properties = [
40 40
         ['language', 'English'],
Please login to merge, or discard this patch.
module/Cv/test/CvTest/Entity/AttachmentTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
         ]
35 35
     ];
36 36
 
37
-    private $inheritance = [ FileEntity::class ];
37
+    private $inheritance = [FileEntity::class];
38 38
 
39 39
     private $properties = [
40
-        [ 'uri', [ 'ignore_setter' => true, 'value' => "/file/Cv.Attachment/test/name" ]]
40
+        ['uri', ['ignore_setter' => true, 'value' => "/file/Cv.Attachment/test/name"]]
41 41
     ];
42 42
 
43 43
     private function setupSetterGetterTarget()
Please login to merge, or discard this patch.