Failed Conditions
Push — develop ( 14ce66...7b23d3 )
by Guilherme
72:53 queued 07:54
created
tests/Doctrine/Tests/ORM/Hydration/ObjectHydratorTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2010,7 +2010,7 @@
 block discarded – undo
2010 2010
     }
2011 2011
 
2012 2012
     /**
2013
-     * @param object $object
2013
+     * @param \Doctrine\ORM\EntityManagerInterface $object
2014 2014
      * @param string $propertyName
2015 2015
      * @param mixed  $newValue
2016 2016
      */
Please login to merge, or discard this patch.
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1024,14 +1024,14 @@  discard block
 block discarded – undo
1024 1024
 
1025 1025
         // mocking the proxy factory
1026 1026
         $proxyFactory = $this->getMockBuilder(ProxyFactory::class)
1027
-                             ->setMethods(['getProxy'])
1028
-                             ->disableOriginalConstructor()
1029
-                             ->getMock();
1027
+                                ->setMethods(['getProxy'])
1028
+                                ->disableOriginalConstructor()
1029
+                                ->getMock();
1030 1030
 
1031 1031
         $proxyFactory->expects($this->once())
1032
-                     ->method('getProxy')
1033
-                     ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1034
-                     ->will($this->returnValue($proxyInstance));
1032
+                        ->method('getProxy')
1033
+                        ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1034
+                        ->will($this->returnValue($proxyInstance));
1035 1035
 
1036 1036
         // @todo guilhermeblanco This should never have happened... replace this Reflection injection with proper API.
1037 1037
         $this->swapPrivateProperty($this->em, 'proxyFactory', $proxyFactory);
@@ -1074,14 +1074,14 @@  discard block
 block discarded – undo
1074 1074
 
1075 1075
         // mocking the proxy factory
1076 1076
         $proxyFactory = $this->getMockBuilder(ProxyFactory::class)
1077
-                             ->setMethods(['getProxy'])
1078
-                             ->disableOriginalConstructor()
1079
-                             ->getMock();
1077
+                                ->setMethods(['getProxy'])
1078
+                                ->disableOriginalConstructor()
1079
+                                ->getMock();
1080 1080
 
1081 1081
         $proxyFactory->expects($this->once())
1082
-                     ->method('getProxy')
1083
-                     ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1084
-                     ->will($this->returnValue($proxyInstance));
1082
+                        ->method('getProxy')
1083
+                        ->with($this->equalTo(ECommerceShipping::class), ['id' => 42])
1084
+                        ->will($this->returnValue($proxyInstance));
1085 1085
 
1086 1086
         // @todo guilhermeblanco This should never have happened... replace this Reflection injection with proper API.
1087 1087
         $this->swapPrivateProperty($this->em, 'proxyFactory', $proxyFactory);
@@ -1908,10 +1908,10 @@  discard block
 block discarded – undo
1908 1908
         $rsm->setDiscriminatorColumn('c', 'c_discr');
1909 1909
 
1910 1910
         $resultSet = [
1911
-              [
1912
-                  'c__id'   => '1',
1913
-                  'c_discr' => 'fix',
1914
-              ],
1911
+                [
1912
+                    'c__id'   => '1',
1913
+                    'c_discr' => 'fix',
1914
+                ],
1915 1915
         ];
1916 1916
 
1917 1917
         $stmt     = new HydratorMockStatement($resultSet);
@@ -1940,12 +1940,12 @@  discard block
 block discarded – undo
1940 1940
         $rsm->setDiscriminatorColumn('e', 'e_discr');
1941 1941
 
1942 1942
         $resultSet = [
1943
-              [
1944
-                  'c__id'   => '1',
1945
-                  'c_discr' => 'fix',
1946
-                  'e__id'   => '1',
1947
-                  'e__name' => 'Fabio B. Silva'
1948
-              ],
1943
+                [
1944
+                    'c__id'   => '1',
1945
+                    'c_discr' => 'fix',
1946
+                    'e__id'   => '1',
1947
+                    'e__name' => 'Fabio B. Silva'
1948
+                ],
1949 1949
         ];
1950 1950
 
1951 1951
         $stmt     = new HydratorMockStatement($resultSet);
@@ -1970,11 +1970,11 @@  discard block
 block discarded – undo
1970 1970
         $rsm->setDiscriminatorColumn('p', 'discr');
1971 1971
 
1972 1972
         $resultSet = [
1973
-              [
1974
-                  'p__id'   => '1',
1975
-                  'p__name' => 'Fabio B. Silva',
1976
-                  'discr'   => 'subworker'
1977
-              ],
1973
+                [
1974
+                    'p__id'   => '1',
1975
+                    'p__name' => 'Fabio B. Silva',
1976
+                    'discr'   => 'subworker'
1977
+                ],
1978 1978
         ];
1979 1979
 
1980 1980
         $stmt       = new HydratorMockStatement($resultSet);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Mocks/EntityManagerMock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\Mocks;
6 6
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if (null === $config) {
82 82
             $config = new Configuration();
83 83
 
84
-            $config->setProxyDir(__DIR__ . '/../Proxies');
84
+            $config->setProxyDir(__DIR__.'/../Proxies');
85 85
             $config->setProxyNamespace('Doctrine\Tests\Proxies');
86 86
             $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver());
87 87
         }
Please login to merge, or discard this patch.