Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
CoreTest/Entity/AbstractIdentifiableModificationDataAwareEntityTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function providerCreateDate()
44 44
     {
45 45
         return [
46
-            [ new \DateTime("2010-11-12"), new \DateTime("2010-11-12")],
46
+            [new \DateTime("2010-11-12"), new \DateTime("2010-11-12")],
47 47
             ];
48 48
     }
49 49
 
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
         $timezone = getenv('TIMEZONE');
69 69
         $timezone = new \DateTimeZone($timezone);
70 70
         return [
71
-            [ new \DateTime("2010-11-12"), new \DateTime("2010-11-12", $timezone)],
72
-            [ "2011-12-13" , new \DateTime("2011-12-13", $timezone)]
71
+            [new \DateTime("2010-11-12"), new \DateTime("2010-11-12", $timezone)],
72
+            ["2011-12-13", new \DateTime("2011-12-13", $timezone)]
73 73
         ];
74 74
     }
75 75
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/ImageTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
                 'setter_args' => 'some_id',
55 55
                 'expected' => 'some_id'
56 56
             ]],
57
-            ['name',[
57
+            ['name', [
58 58
                 'default' => null,
59 59
             ]],
60 60
             ['uploadDate', [
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Options/ImageSetOptionsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     private $target = ImageSetOptions::class;
34 34
 
35
-    private $inheritance = [ AbstractOptions::class ];
35
+    private $inheritance = [AbstractOptions::class];
36 36
 
37 37
     private $properties = [
38 38
         ['entityClass', [
@@ -40,6 +40,6 @@  discard block
 block discarded – undo
40 40
             'setter_args' => Image::class
41 41
         ]],
42 42
         ['formElementName', ['default' => ImageSetInterface::ORIGINAL, 'value' => 'formElementNameValue']],
43
-        ['images', ['default'=>[ImageSetInterface::THUMBNAIL => [100,100]], 'value' => ['a' => [1,1]]]],
43
+        ['images', ['default'=>[ImageSetInterface::THUMBNAIL => [100, 100]], 'value' => ['a' => [1, 1]]]],
44 44
     ];
45 45
 }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Queue/Exception/RecoverableJobExceptionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,5 +27,5 @@
 block discarded – undo
27 27
 
28 28
     private $target = RecoverableJobException::class;
29 29
 
30
-    private $inheritance = [ AbstractJobException::class ];
30
+    private $inheritance = [AbstractJobException::class];
31 31
 }
Please login to merge, or discard this patch.
DoctrineMongoODM/Event/AbstractUpdateFilesPermissionsSubscriberTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     ];
56 56
 
57 57
     /** @noinspection PhpUnusedPrivateFieldInspection */
58
-    private $inheritance = [ EventSubscriber::class ];
58
+    private $inheritance = [EventSubscriber::class];
59 59
 
60 60
 
61 61
     private function getTarget()
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 
68 68
     public function testSubscribesToOnFlushEvent()
69 69
     {
70
-        $this->assertEquals([ Events::onFlush ], $this->target->getSubscribedEvents());
70
+        $this->assertEquals([Events::onFlush], $this->target->getSubscribedEvents());
71 71
     }
72 72
 
73 73
     /*
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
 class ConcreteUpdateFilesPermissionsSubScriber extends AbstractUpdateFilesPermissionsSubscriber
155 155
 {
156
-    protected $filesProperties = [ 'singleFile', 'fileCollection' ];
156
+    protected $filesProperties = ['singleFile', 'fileCollection'];
157 157
     protected $targetDocument  = Ufps_TargetDocument::class;
158 158
 }
159 159
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Repository/DraftableEntityAwareTraitTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -28,26 +28,26 @@
 block discarded – undo
28 28
     public function provideFindMethodsTestData()
29 29
     {
30 30
         return [
31
-            [ 'findBy', [], 'findBy', ['isDraft' => false] ],
32
-            [ 'findBy', [ 'isDraft' => null ], 'findBy', [] ],
33
-            [ 'findBy', [ 'isDraft' => true ], 'findBy', [ 'isDraft' => true ] ],
34
-            [ 'findBy', [ 'isDraft' => 'something'], 'findBy', ['isDraft' => 'something'] ],
35
-
36
-            [ 'findDraftsBy', [], 'findBy', ['isDraft' => true]],
37
-            [ 'findDraftsBy', ['isDraft' => null], 'findBy', ['isDraft' => true]],
38
-            [ 'findDraftsBy', ['isDraft' => 'something'], 'findBy', ['isDraft' => true]],
39
-
40
-            [ 'findOneBy', [], 'findOneBy', ['isDraft' => false] ],
41
-            [ 'findOneBy', [ 'isDraft' => null ], 'findOneBy', [] ],
42
-            [ 'findOneBy', [ 'isDraft' => true ], 'findOneBy', [ 'isDraft' => true ] ],
43
-            [ 'findOneBy', [ 'isDraft' => 'something'], 'findOneBy', ['isDraft' => 'something'] ],
44
-
45
-            [ 'findOneDraftBy', [], 'findOneBy', ['isDraft' => true]],
46
-            [ 'findOneDraftBy', ['isDraft' => null], 'findOneBy', ['isDraft' => true]],
47
-            [ 'findOneDraftBy', ['isDraft' => 'something'], 'findOneBy', ['isDraft' => true]],
48
-
49
-            [ 'createDraft', [], 'create', ['isDraft' => true]],
50
-            [ 'createDraft', ['isDraft' => false], 'create', ['isDraft' => true]],
31
+            ['findBy', [], 'findBy', ['isDraft' => false]],
32
+            ['findBy', ['isDraft' => null], 'findBy', []],
33
+            ['findBy', ['isDraft' => true], 'findBy', ['isDraft' => true]],
34
+            ['findBy', ['isDraft' => 'something'], 'findBy', ['isDraft' => 'something']],
35
+
36
+            ['findDraftsBy', [], 'findBy', ['isDraft' => true]],
37
+            ['findDraftsBy', ['isDraft' => null], 'findBy', ['isDraft' => true]],
38
+            ['findDraftsBy', ['isDraft' => 'something'], 'findBy', ['isDraft' => true]],
39
+
40
+            ['findOneBy', [], 'findOneBy', ['isDraft' => false]],
41
+            ['findOneBy', ['isDraft' => null], 'findOneBy', []],
42
+            ['findOneBy', ['isDraft' => true], 'findOneBy', ['isDraft' => true]],
43
+            ['findOneBy', ['isDraft' => 'something'], 'findOneBy', ['isDraft' => 'something']],
44
+
45
+            ['findOneDraftBy', [], 'findOneBy', ['isDraft' => true]],
46
+            ['findOneDraftBy', ['isDraft' => null], 'findOneBy', ['isDraft' => true]],
47
+            ['findOneDraftBy', ['isDraft' => 'something'], 'findOneBy', ['isDraft' => true]],
48
+
49
+            ['createDraft', [], 'create', ['isDraft' => true]],
50
+            ['createDraft', ['isDraft' => false], 'create', ['isDraft' => true]],
51 51
         ];
52 52
     }
53 53
 
Please login to merge, or discard this patch.
module/Core/test/CoreTestUtils/TestCase/TestInheritanceTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,18 +43,18 @@
 block discarded – undo
43 43
      */
44 44
     public function testInheritance()
45 45
     {
46
-        $errTmpl = __TRAIT__ . ': ' . get_class($this);
46
+        $errTmpl = __TRAIT__.': '.get_class($this);
47 47
 
48 48
         if (!property_exists($this, 'inheritance') || !property_exists($this, 'target')) {
49
-            throw new Exception($errTmpl . ' must define the properties "$inheritance" and "$target"');
49
+            throw new Exception($errTmpl.' must define the properties "$inheritance" and "$target"');
50 50
         }
51 51
 
52 52
         if (!is_array($this->inheritance)) {
53
-            throw new Exception($errTmpl . ': Property $inheritance must be an array');
53
+            throw new Exception($errTmpl.': Property $inheritance must be an array');
54 54
         }
55 55
 
56 56
         if (!is_object($this->target)) {
57
-            throw new Exception($errTmpl . ': Property $target must be an object');
57
+            throw new Exception($errTmpl.': Property $target must be an object');
58 58
         }
59 59
 
60 60
         $this->assertInheritance($this->inheritance, $this->target);
Please login to merge, or discard this patch.
module/Core/test/CoreTestUtils/TestCase/TestUsesTraitsTrait.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     {
38 38
         if (!property_exists($this, 'traits') || !property_exists($this, 'target')) {
39 39
             throw new PHPUnitFrameworkException(self::class . ': ' . static::class
40
-                                                   . ' must define the properties $target and $traits.');
40
+                                                    . ' must define the properties $target and $traits.');
41 41
         }
42 42
 
43 43
         $this->assertUsesTraits($this->traits, $this->target);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function testUsesTraits()
37 37
     {
38 38
         if (!property_exists($this, 'traits') || !property_exists($this, 'target')) {
39
-            throw new PHPUnitFrameworkException(self::class . ': ' . static::class
39
+            throw new PHPUnitFrameworkException(self::class.': '.static::class
40 40
                                                    . ' must define the properties $target and $traits.');
41 41
         }
42 42
 
Please login to merge, or discard this patch.
module/Core/src/Service/ImageSetHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $original = $imagine->open($tmpFile);
47 47
         $images['original'] = $original;
48 48
 
49
-        foreach($specs as $key => $size){
49
+        foreach ($specs as $key => $size) {
50 50
             $newImage = ImageSetInterface::THUMBNAIL == $key
51 51
                 ? $original->thumbnail(new Box($size[0], $size[1]), ImagineImage::THUMBNAIL_INSET)
52 52
                 : $this->createImage($original, $size);
Please login to merge, or discard this patch.