Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
Repository/DoctrineMongoODM/Event/RepositoryEventsSubscriberTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             ->willReturn($documentName);
93 93
         $repository->expects($this->once())
94 94
             ->method('setEntityPrototype')
95
-            ->with($this->callback(function ($entity) use ($documentName) {
95
+            ->with($this->callback(function($entity) use ($documentName) {
96 96
                 return $entity instanceof $documentName;
97 97
             }));
98 98
         $repository->expects($this->once())
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             ->getMock();
121 121
         $attachableEntity->expects($this->once())
122 122
             ->method('setAttachableEntityManager')
123
-            ->with($this->callback(function ($manager) {
123
+            ->with($this->callback(function($manager) {
124 124
                 return $manager instanceof AttachableEntityManager;
125 125
             }));
126 126
         
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ->getMock();
146 146
         $attachableEntity->expects($this->once())
147 147
             ->method('setAttachableEntityManager')
148
-            ->with($this->callback(function ($manager) {
148
+            ->with($this->callback(function($manager) {
149 149
                 return $manager instanceof AttachableEntityManager;
150 150
             }));
151 151
         
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Repository/SnapshotRepositoryTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,21 +71,21 @@  discard block
 block discarded – undo
71 71
 
72 72
         return [
73 73
             [
74
-                'Hydrator',[
74
+                'Hydrator', [
75 75
                     '@default'=>EntityHydrator::class,
76 76
                     'value'=>$hydrator,
77
-                    'expect_property' => ['hydrator',$hydrator]
77
+                    'expect_property' => ['hydrator', $hydrator]
78 78
                 ],
79 79
             ],
80 80
             [
81
-                'SourceHydrator',[
81
+                'SourceHydrator', [
82 82
                     '@default' => EntityHydrator::class,
83 83
                     'value' => $hydrator,
84
-                    'expect_property' => ['sourceHydrator',$hydrator]
84
+                    'expect_property' => ['sourceHydrator', $hydrator]
85 85
                 ]
86 86
             ],
87 87
             [
88
-                'SnapshotAttributes',[
88
+                'SnapshotAttributes', [
89 89
                     'default' => [],
90 90
                     'value' => ['some'=>'attributes']
91 91
                 ]
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             ->willReturn($em)
105 105
         ;
106 106
 
107
-        $cb = function (EventArgs $args) {
107
+        $cb = function(EventArgs $args) {
108 108
             $this->assertInstanceOf(Job::class, $args->get('entity'));
109 109
             return true;
110 110
         };
Please login to merge, or discard this patch.
module/Core/test/CoreTest/ApplicationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
     {
87 87
         $tempDir    = sys_get_temp_dir().'/yawik/application-tests';
88 88
         $tempFile   = $tempDir.'/.env';
89
-        $tempFileDist   = $tempDir.'/.env.dist';
89
+        $tempFileDist = $tempDir.'/.env.dist';
90 90
 
91 91
         if (!is_dir($tempDir)) {
92 92
             mkdir($tempDir, 0777, true);
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Mail/TranslatorAwareMessageTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
     public function testSetSubjectDoesNotTranslate()
95 95
     {
96 96
         $translator = $this->getMockBuilder(Translator::class)->disableOriginalConstructor()
97
-                           ->setMethods(['translate'])->getMock();
97
+                            ->setMethods(['translate'])->getMock();
98 98
         $translator->expects($this->never())->method('translate');
99 99
 
100 100
         $this->target->setTranslator($translator);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
      */
39 39
     private $target = TranslatorAwareMessage::class;
40 40
 
41
-    private $inheritance = [ Message::class, TranslatorAwareInterface::class ];
41
+    private $inheritance = [Message::class, TranslatorAwareInterface::class];
42 42
 
43 43
     public function propertiesProvider()
44 44
     {
45
-        $setTranslator = function () {
45
+        $setTranslator = function() {
46 46
             $this->target->setTranslator(new Translator());
47 47
         };
48 48
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Exception/ImmutableEntityExceptionTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 {
27 27
     use TestInheritanceTrait, TestSetterGetterTrait;
28 28
 
29
-    protected $target = [ '\Core\Entity\Exception\ImmutableEntityException', [ 'entityClassName' ] ];
29
+    protected $target = ['\Core\Entity\Exception\ImmutableEntityException', ['entityClassName']];
30 30
 
31 31
     protected $inheritance = [
32 32
         '\RuntimeException',
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
     public function propertiesProvider()
38 38
     {
39 39
         return [
40
-            [ 'message', [
40
+            ['message', [
41 41
                 'value' => 'entityClassName is an immutable entity.',
42 42
                 'ignore_setter' => true,
43 43
             ]],
44
-            [ 'message', [
44
+            ['message', [
45 45
                 'value' => 'stdClass is an immutable entity.',
46 46
                 'ignore_setter' => true,
47
-                'target' => ['\Core\Entity\Exception\ImmutableEntityException', [ new \stdClass() ] ]
47
+                'target' => ['\Core\Entity\Exception\ImmutableEntityException', [new \stdClass()]]
48 48
             ]]
49 49
         ];
50 50
     }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/AbstractLocationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             ->setCity('XXXX')
45 45
             ->setRegion('YYYY')
46 46
             ->setCountry('ZZZZ')
47
-            ->setCoordinates(new Point([10,20]));
47
+            ->setCoordinates(new Point([10, 20]));
48 48
     }
49 49
 
50 50
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 
130 130
     public function testConvertToAndFromJson()
131 131
     {
132
-        if (false === (@include_once __DIR__ . '/../../../../Geo/src/Geo/Entity/Geometry/Point.php')) {
132
+        if (false === (@include_once __DIR__.'/../../../../Geo/src/Geo/Entity/Geometry/Point.php')) {
133 133
             $this->assertTrue(true);
134 134
             return;
135 135
         }
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/Hydrator/MappingEntityHydratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         '@testConstruct' => false,
42 42
     ];
43 43
 
44
-    private $inheritance = [ EntityHydrator::class ];
44
+    private $inheritance = [EntityHydrator::class];
45 45
 
46 46
     private $properties = [
47 47
         ['propertyMap', ['default' => [], 'value' => ['property' => 'fieldname']]]
Please login to merge, or discard this patch.
CoreTest/Entity/AbstractIdentifiableModificationDateAwareEntityTest.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/Status/AbstractSortableStatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         ],
36 36
     ];
37 37
 
38
-    private $inheritance = [ AbstractStatus::class ];
38
+    private $inheritance = [AbstractStatus::class];
39 39
 
40 40
     public function xtestGetStatesSortsMap()
41 41
     {
Please login to merge, or discard this patch.