Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
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.
Core/test/CoreTest/Entity/Hydrator/Factory/ImageSetHydratorFactoryTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
     private $target = [
37 37
         ImageSetHydratorFactory::class,
38 38
         '@testCreateService' => [
39
-        	'mock' => [
40
-        		'__invoke' => [
41
-        			'@with' => 'getInvocationArgs',
42
-			        'count' => 1
43
-		        ]
44
-	        ]
39
+            'mock' => [
40
+                '__invoke' => [
41
+                    '@with' => 'getInvocationArgs',
42
+                    'count' => 1
43
+                ]
44
+            ]
45 45
         ],
46 46
     ];
47 47
 
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 
58 58
     public function testCreateService()
59 59
     {
60
-    	$container = $this->getServiceManagerMock();
61
-    	$pluginManager = $this->getPluginManagerMock();
60
+        $container = $this->getServiceManagerMock();
61
+        $pluginManager = $this->getPluginManagerMock();
62 62
         $this->target->createService($container,$pluginManager);
63 63
     }
64 64
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         ],
46 46
     ];
47 47
 
48
-    private $inheritance = [ FactoryInterface::class ];
48
+    private $inheritance = [FactoryInterface::class];
49 49
 
50 50
     private function getInvocationArgs()
51 51
     {
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
     	$container = $this->getServiceManagerMock();
61 61
     	$pluginManager = $this->getPluginManagerMock();
62
-        $this->target->createService($container,$pluginManager);
62
+        $this->target->createService($container, $pluginManager);
63 63
     }
64 64
 
65 65
     public function testInvokation()
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
         $options = new ImageSetOptions();
69 69
 
70 70
         $container = $this->getServiceManagerMock();
71
-        $container->setService('Imagine',$imagine);
72
-        $container->setService(ImageSetOptions::class,$options);
71
+        $container->setService('Imagine', $imagine);
72
+        $container->setService(ImageSetOptions::class, $options);
73 73
 
74 74
         $hydrator = $this->target->__invoke($container, 'irrelevant');
75 75
 
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.
module/Core/test/CoreTest/Entity/Hydrator/ImageSetHydratorTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 
161 161
         $set = $this->getMockBuilder(ImageSet::class)->setMethods(['setImages'])->getMock();
162 162
         $set->expects($this->once())->method('setImages')->with(
163
-           ['original' => $entityMock, 'thumbnail' => $entityMock, 'small' => $entityMock]
163
+            ['original' => $entityMock, 'thumbnail' => $entityMock, 'small' => $entityMock]
164 164
         )->will($this->returnSelf());
165 165
 
166 166
         $actual = $this->target->hydrate($data, $set);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private $optionsMock;
62 62
 
63
-    private $inheritance = [ HydratorInterface::class ];
63
+    private $inheritance = [HydratorInterface::class];
64 64
 
65 65
     private function getConstructorArgs()
66 66
     {
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
         ];
124 124
 
125 125
         $imageSpecs = [
126
-            ImageSetInterface::THUMBNAIL => [100,100],
127
-            'large' => [10000,10000],
128
-            'small' => [600,600],
126
+            ImageSetInterface::THUMBNAIL => [100, 100],
127
+            'large' => [10000, 10000],
128
+            'small' => [600, 600],
129 129
         ];
130 130
 
131 131
         $entityMock = $this->getMockBuilder(Image::class)->setMethods(['setFile', 'setName', 'setType'])->getMock();
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
         $this->optionsMock->expects($this->any())->method('getEntity')->willReturn($entityMock);
153 153
 
154 154
         $image = $this->getMockBuilder(\Imagine\Image\ImageInterface::class)->setMethods(['thumbnail', 'getSize', 'resize', 'get'])->getMockForAbstractClass();
155
-        $image->expects($this->once())->method('thumbnail')->with($this->equalTo(new Box(100,100)), \Imagine\Image\ImageInterface::THUMBNAIL_INSET)->will($this->returnSelf());
156
-        $image->expects($this->exactly(2))->method('getSize')->willReturn(new Box(700,900));
155
+        $image->expects($this->once())->method('thumbnail')->with($this->equalTo(new Box(100, 100)), \Imagine\Image\ImageInterface::THUMBNAIL_INSET)->will($this->returnSelf());
156
+        $image->expects($this->exactly(2))->method('getSize')->willReturn(new Box(700, 900));
157 157
         $image->expects($this->exactly(1))->method('resize')->will($this->returnSelf());
158 158
         $image->expects($this->exactly(2))->method('get')->willReturn('filecontentbytes');
159 159
         $this->imagineMock->expects($this->once())->method('open')->with('tmpname')->willReturn($image);
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/AbstactIdentifiableEntityTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,20 +26,20 @@
 block discarded – undo
26 26
 
27 27
     protected $target;
28 28
 
29
-    public function setUp(){
29
+    public function setUp() {
30 30
         $this->target = new ConcreteIdentifiableEntity();
31 31
     }
32 32
 
33
-    public function testSetGetIdByAttribute(){
33
+    public function testSetGetIdByAttribute() {
34 34
         $input = "myValue";
35 35
         $this->target->setId($input);
36
-        $this->assertSame($this->target->getId(),$input);
36
+        $this->assertSame($this->target->getId(), $input);
37 37
     }
38 38
 
39
-    public function testSetGetIdByMethod(){
39
+    public function testSetGetIdByMethod() {
40 40
         $input = "myValue";
41 41
         $this->target->setId($input);
42
-        $this->assertSame($this->target->getId(),$input);
42
+        $this->assertSame($this->target->getId(), $input);
43 43
     }
44 44
 }
45 45
 
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Entity/TimelineTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
     public function propertiesProvider()
33 33
     {
34 34
         return [
35
-            ['date',[
35
+            ['date', [
36 36
                 'value' => new \DateTime(),
37 37
                 'default' => new \DateTime(),
38
-                'default_assert' => function($v,$return){
38
+                'default_assert' => function($v, $return) {
39 39
                     $date = new \DateTime();
40 40
                     $this->assertEquals(
41 41
                         $date->getTimestamp(),
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.
module/Core/test/CoreTest/Entity/Status/AbstractStatusTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     private $target = [
36 36
         Ast_ConcreteStatus::class,
37
-        [ Ast_ConcreteStatus::TEST ],
37
+        [Ast_ConcreteStatus::TEST],
38 38
         '@testInheritance' => [
39 39
             'class' => AbstractStatus::class,
40 40
             'as_reflection' => true
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         '@testConstruction' => false,
45 45
     ];
46 46
 
47
-    private $inheritance = [ StatusInterface::class ];
47
+    private $inheritance = [StatusInterface::class];
48 48
 
49 49
     public function testGetStates()
50 50
     {
Please login to merge, or discard this patch.