Passed
Push — develop ( 24b5e4...fa8d1c )
by Carsten
07:00
created
module/Core/test/CoreTest/Entity/ImageSetTest.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
         '@testSetImagesWithPermissions' => ['mock' => ['clear' => 1, 'set' => 0, 'setPermissions']],
44 44
     ];
45 45
 
46
-    private $inheritance = [ ImageSetInterface::class ];
46
+    private $inheritance = [ImageSetInterface::class];
47 47
 
48 48
     /**
49 49
      * @covers ::__construct
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/ImageTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     private $target = Image::class;
32 32
 
33
-    private $inheritance = [ FileEntity::class, ImageInterface::class ];
33
+    private $inheritance = [FileEntity::class, ImageInterface::class];
34 34
 
35
-    private $traits = [ ImageTrait::class ];
35
+    private $traits = [ImageTrait::class];
36 36
 }
37 37
\ No newline at end of file
Please login to merge, or discard this patch.
Core/test/CoreTest/Entity/AbstactIdentifiableHydratorAwareEntityTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
 {
27 27
     protected $target;
28 28
 
29
-    public function setUp(){
29
+    public function setUp() {
30 30
         $this->target = new ConcreteIdentifiableHydratorAwareEntity();
31 31
     }
32 32
 
33
-    public function testSetGetHydrator(){
33
+    public function testSetGetHydrator() {
34 34
         $input = new EntityHydrator();
35 35
         $this->target->setHydrator($input);
36
-        $this->assertSame($this->target->getHydrator(),$input);
36
+        $this->assertSame($this->target->getHydrator(), $input);
37 37
     }
38 38
 
39
-    public function testSetGetIdByMethod(){
39
+    public function testSetGetIdByMethod() {
40 40
         $input = new EntityHydrator();
41
-        $this->assertEquals($this->target->getHydrator(),$input);
41
+        $this->assertEquals($this->target->getHydrator(), $input);
42 42
     }
43 43
 }
44 44
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/AttachableEntityManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,8 +206,8 @@
 block discarded – undo
206 206
     public function provideTestCreateAttachedEntityData()
207 207
     {
208 208
         return [
209
-            ['EntityClass' ],
210
-            ['EntityClass', 'testkey' ],
209
+            ['EntityClass'],
210
+            ['EntityClass', 'testkey'],
211 211
             ['EntityClass', ['param' => 'value']],
212 212
             ['EntityClass', ['param' => 'value'], 'testkey'],
213 213
         ];
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/PermissionsTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -183,14 +183,14 @@
 block discarded – undo
183 183
     public function provideRolePermissionsData()
184 184
     {
185 185
         return [
186
-            [ 'user', 'user', false, true ],
187
-            [ 'recruiter', 'user', false, false ],
188
-            [ 'all', 'irrelevant', false, true ],
189
-            [ 'user', 'user', true, true ],
190
-            [ 'recruiter', 'user', true, false],
191
-            [ 'all', 'irrelevant', true, true ],
192
-            [ 'testUser', null, true, true ],
193
-            [ 'anonymous', null, true, false ],
186
+            ['user', 'user', false, true],
187
+            ['recruiter', 'user', false, false],
188
+            ['all', 'irrelevant', false, true],
189
+            ['user', 'user', true, true],
190
+            ['recruiter', 'user', true, false],
191
+            ['all', 'irrelevant', true, true],
192
+            ['testUser', null, true, true],
193
+            ['anonymous', null, true, false],
194 194
         ];
195 195
     }
196 196
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/FileEntityTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     protected $target;
33 33
 
34
-    public function setUp(){
34
+    public function setUp() {
35 35
         $this->target = new FileEntity();
36 36
     }
37 37
 
@@ -42,20 +42,20 @@  discard block
 block discarded – undo
42 42
         $this->assertInstanceOf('\Core\Entity\AbstractIdentifiableEntity', $this->target);
43 43
     }
44 44
 
45
-    public function testGetResourceId(){
46
-        $this->assertSame($this->target->getResourceId(),'Entity/File');
45
+    public function testGetResourceId() {
46
+        $this->assertSame($this->target->getResourceId(), 'Entity/File');
47 47
     }
48 48
 
49
-    public function testSetGetName(){
50
-        $name="test.jpg";
49
+    public function testSetGetName() {
50
+        $name = "test.jpg";
51 51
         $this->target->setName($name);
52
-        $this->assertSame($this->target->getName(),$name);
52
+        $this->assertSame($this->target->getName(), $name);
53 53
     }
54 54
 
55
-    public function testSetGetUser(){
55
+    public function testSetGetUser() {
56 56
         $user = new User();
57 57
         $this->target->setUser($user);
58
-        $this->assertSame($this->target->getUser(),$user);
58
+        $this->assertSame($this->target->getUser(), $user);
59 59
     }
60 60
 
61 61
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $this->assertStringEndsWith($unit, $target->getPrettySize($size));
75 75
     }
76 76
 
77
-    public function provideSize(){
77
+    public function provideSize() {
78 78
         return [
79 79
             [10, '10'],
80 80
             [10000, 'kB'],
@@ -83,42 +83,42 @@  discard block
 block discarded – undo
83 83
         ];
84 84
     }
85 85
 
86
-    public function testSetGetMimeType(){
86
+    public function testSetGetMimeType() {
87 87
         $mime = "image/gif";
88 88
         $this->target->setType($mime);
89
-        $this->assertSame($this->target->getType(),$mime);
89
+        $this->assertSame($this->target->getType(), $mime);
90 90
     }
91 91
 
92
-    public function testGetDateUploadedWithoutSetting(){
92
+    public function testGetDateUploadedWithoutSetting() {
93 93
         $this->assertEquals(
94 94
             $this->target->getDateUploaded()->format('Y-m-d H:i:s'),
95 95
             (new \DateTime())->format('Y-m-d H:i:s')
96 96
         );
97 97
     }
98 98
 
99
-    public function testGetDateUploaded(){
100
-        $input= new \DateTime("2016-01-02");
99
+    public function testGetDateUploaded() {
100
+        $input = new \DateTime("2016-01-02");
101 101
         $this->target->setDateUploaded($input);
102
-        $this->assertEquals($this->target->getDateUploaded(),$input);
102
+        $this->assertEquals($this->target->getDateUploaded(), $input);
103 103
     }
104 104
 
105
-    public function testSetGetFile(){
105
+    public function testSetGetFile() {
106 106
         $file = "test";
107 107
         $this->target->setFile($file);
108
-        $this->assertSame($this->target->getFile(),$file);
108
+        $this->assertSame($this->target->getFile(), $file);
109 109
     }
110 110
 
111 111
     /**
112 112
      * @dataProvider providePermissions
113 113
      * @param $permissions
114 114
      */
115
-    public function testGetPermissions($input){
115
+    public function testGetPermissions($input) {
116 116
         $permissions = new Permissions($input);
117 117
         $this->target->setPermissions($permissions);
118
-        $this->assertEquals($this->target->getPermissions(),$permissions);
118
+        $this->assertEquals($this->target->getPermissions(), $permissions);
119 119
     }
120 120
 
121
-    public function providePermissions(){
121
+    public function providePermissions() {
122 122
         return [
123 123
             [Permissions::PERMISSION_ALL],
124 124
             [Permissions::PERMISSION_CHANGE],
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Tree/EmbeddedLeafsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,5 +29,5 @@
 block discarded – undo
29 29
 
30 30
     private $target = EmbeddedLeafs::class;
31 31
 
32
-    private $inheritance = [ AbstractLeafs::class ];
32
+    private $inheritance = [AbstractLeafs::class];
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Tree/AbstractLeafsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,15 +47,15 @@
 block discarded – undo
47 47
         ]
48 48
     ];
49 49
 
50
-    private $inheritance = [ LeafsInterface::class ];
50
+    private $inheritance = [LeafsInterface::class];
51 51
 
52
-    private $traits = [ EntityTrait::class ];
52
+    private $traits = [EntityTrait::class];
53 53
 
54 54
     public function propertiesProvider()
55 55
     {
56 56
 
57 57
         return [
58
-            [ 'items', ['default' => new ArrayCollection(), 'value' => new \Doctrine\Common\Collections\ArrayCollection()]],
58
+            ['items', ['default' => new ArrayCollection(), 'value' => new \Doctrine\Common\Collections\ArrayCollection()]],
59 59
         ];
60 60
     }
61 61
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Tree/NodeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
         '@testValueFilter' => false,
44 44
     ];
45 45
 
46
-    private $inheritance = [ NodeInterface::class ];
46
+    private $inheritance = [NodeInterface::class];
47 47
 
48
-    private $traits = [ EntityTrait::class, IdentifiableEntityTrait::class ];
48
+    private $traits = [EntityTrait::class, IdentifiableEntityTrait::class];
49 49
 
50 50
     public function propertiesProvider()
51 51
     {
Please login to merge, or discard this patch.