Passed
Pull Request — master (#7885)
by Šimon
05:58
created
lib/Doctrine/ORM/Mapping/Factory/StaticClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     protected function getReflectionService() : ReflectionService
20 20
     {
21
-        if (! $this->reflectionService) {
21
+        if ( ! $this->reflectionService) {
22 22
             $this->reflectionService = new StaticReflectionService();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/RuntimeClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     protected function getReflectionService() : ReflectionService
20 20
     {
21
-        if (! $this->reflectionService) {
21
+        if ( ! $this->reflectionService) {
22 22
             $this->reflectionService = new RuntimeReflectionService();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Exporter/FieldMetadataExporter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
         /** @var FieldMetadata $value */
26 26
         $variableExporter = new VariableExporter();
27 27
         $indentation      = str_repeat(self::INDENTATION, $indentationLevel);
28
-        $objectReference  = $indentation . self::VARIABLE;
28
+        $objectReference  = $indentation.self::VARIABLE;
29 29
 
30 30
         $lines   = [];
31 31
         $lines[] = parent::export($value, $indentationLevel);
32
-        $lines[] = $objectReference . '->setVersioned(' . ltrim($variableExporter->export($value->isVersioned(), $indentationLevel + 1)) . ');';
32
+        $lines[] = $objectReference.'->setVersioned('.ltrim($variableExporter->export($value->isVersioned(), $indentationLevel + 1)).');';
33 33
 
34 34
         return implode(PHP_EOL, $lines);
35 35
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/AttachEntityListenersListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         /** @var Mapping\ClassMetadata $metadata */
46 46
         $metadata = $event->getClassMetadata();
47 47
 
48
-        if (! isset($this->entityListeners[$metadata->getClassName()])) {
48
+        if ( ! isset($this->entityListeners[$metadata->getClassName()])) {
49 49
             return;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/TableMetadataBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
             return $tableMetadata;
55 55
         }
56 56
 
57
-        if (! empty($this->tableAnnotation->name)) {
57
+        if ( ! empty($this->tableAnnotation->name)) {
58 58
             $tableMetadata->setName($this->tableAnnotation->name);
59 59
         }
60 60
 
61
-        if (! empty($this->tableAnnotation->schema)) {
61
+        if ( ! empty($this->tableAnnotation->schema)) {
62 62
             $tableMetadata->setSchema($this->tableAnnotation->schema);
63 63
         }
64 64
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/CacheMetadataBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         $componentName = $this->componentMetadata->getRootClassName();
63 63
         $baseRegion    = strtolower(str_replace('\\', '_', $componentName));
64
-        $defaultRegion = $baseRegion . ($this->fieldName ? '__' . $this->fieldName : '');
64
+        $defaultRegion = $baseRegion.($this->fieldName ? '__'.$this->fieldName : '');
65 65
 
66 66
         $usage  = constant(sprintf('%s::%s', Mapping\CacheUsage::class, strtoupper($this->cacheAnnotation->usage)));
67 67
         $region = $this->cacheAnnotation->region ?: $defaultRegion;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/DiscriminatorColumnMetadataBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
         $discriminatorColumn->setType(Type::getType($annotation->type ?? 'string'));
66 66
         $discriminatorColumn->setColumnName($annotation->name);
67 67
 
68
-        if (! empty($annotation->columnDefinition)) {
68
+        if ( ! empty($annotation->columnDefinition)) {
69 69
             $discriminatorColumn->setColumnDefinition($annotation->columnDefinition);
70 70
         }
71 71
 
72
-        if (! empty($annotation->length)) {
72
+        if ( ! empty($annotation->length)) {
73 73
             $discriminatorColumn->setLength($annotation->length);
74 74
         }
75 75
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Proxy/Factory/StaticProxyFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function generateProxyClasses(array $classes) : int
58 58
     {
59
-        $concreteClasses = array_filter($classes, static function (ClassMetadata $metadata) : bool {
59
+        $concreteClasses = array_filter($classes, static function(ClassMetadata $metadata) : bool {
60 60
             return ! ($metadata->isMappedSuperclass || $metadata->getReflectionClass()->isAbstract());
61 61
         });
62 62
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 ->proxyFactory
66 66
                 ->createProxy(
67 67
                     $metadata->getClassName(),
68
-                    static function () {
68
+                    static function() {
69 69
                         // empty closure, serves its purpose, for now
70 70
                     },
71 71
                     $this->skippedFieldsFqns($metadata)
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 ->getUnitOfWork()
90 90
                 ->getEntityPersister($metadata->getClassName());
91 91
 
92
-        $proxyInstance                                            = $this
92
+        $proxyInstance = $this
93 93
             ->proxyFactory
94 94
             ->createProxy(
95 95
                 $metadata->getClassName(),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     private function makeInitializer(ClassMetadata $metadata, EntityPersister $persister) : Closure
110 110
     {
111
-        return static function (
111
+        return static function(
112 112
             GhostObjectInterface $ghostObject,
113 113
             string $method,
114 114
             // we don't care
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             $identifier = $persister->getIdentifier($ghostObject);
128 128
 
129 129
             // @TODO how do we use `$properties` in the persister? That would be a massive optimisation
130
-            if (! $persister->loadById($identifier, $ghostObject)) {
130
+            if ( ! $persister->loadById($identifier, $ghostObject)) {
131 131
                 $initializer = $originalInitializer;
132 132
 
133 133
                 throw EntityNotFoundException::fromClassNameAndIdentifier(
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         $transientFieldsFqns = [];
160 160
 
161 161
         foreach ($metadata->getPropertiesIterator() as $name => $property) {
162
-            if (! $property instanceof TransientMetadata) {
162
+            if ( ! $property instanceof TransientMetadata) {
163 163
                 continue;
164 164
             }
165 165
 
@@ -197,11 +197,11 @@  discard block
 block discarded – undo
197 197
     private function propertyFqcn(ReflectionProperty $property) : string
198 198
     {
199 199
         if ($property->isPrivate()) {
200
-            return "\0" . $property->getDeclaringClass()->getName() . "\0" . $property->getName();
200
+            return "\0".$property->getDeclaringClass()->getName()."\0".$property->getName();
201 201
         }
202 202
 
203 203
         if ($property->isProtected()) {
204
-            return "\0*\0" . $property->getName();
204
+            return "\0*\0".$property->getName();
205 205
         }
206 206
 
207 207
         return $property->getName();
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Utility/NormalizeIdentifier.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
         $normalizedAssociatedId = [];
36 36
 
37 37
         foreach ($targetClass->getPropertiesIterator() as $name => $property) {
38
-            if (! array_key_exists($name, $flatIdentifier)) {
38
+            if ( ! array_key_exists($name, $flatIdentifier)) {
39 39
                 continue;
40 40
             }
41 41
 
Please login to merge, or discard this patch.