Completed
Push — master ( 89795a...454e04 )
by Marco
07:56 queued 07:53
created
src/Reflection/ReflectionProperty.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $stringTypes = [];
220 220
 
221 221
         foreach ($this->getDocBlockTypes() as $type) {
222
-            $stringTypes[] = (string) $type;
222
+            $stringTypes[] = (string)$type;
223 223
         }
224 224
 
225 225
         return $stringTypes;
@@ -336,14 +336,14 @@  discard block
 block discarded – undo
336 336
         if ($this->isStatic()) {
337 337
             $this->assertClassExist($declaringClassName);
338 338
 
339
-            return Closure::bind(function (string $declaringClassName, string $propertyName) {
339
+            return Closure::bind(function(string $declaringClassName, string $propertyName) {
340 340
                 return $declaringClassName::${$propertyName};
341 341
             }, null, $declaringClassName)->__invoke($declaringClassName, $this->getName());
342 342
         }
343 343
 
344 344
         $instance = $this->assertObject($object);
345 345
 
346
-        return Closure::bind(function ($instance, string $propertyName) {
346
+        return Closure::bind(function($instance, string $propertyName) {
347 347
             return $instance->{$propertyName};
348 348
         }, $instance, $declaringClassName)->__invoke($instance, $this->getName());
349 349
     }
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
         if ($this->isStatic()) {
365 365
             $this->assertClassExist($declaringClassName);
366 366
 
367
-            Closure::bind(function (string $declaringClassName, string $propertyName, $value) : void {
367
+            Closure::bind(function(string $declaringClassName, string $propertyName, $value) : void {
368 368
                 $declaringClassName::${$propertyName} = $value;
369 369
             }, null, $declaringClassName)->__invoke($declaringClassName, $this->getName(), func_num_args() === 2 ? $value : $object);
370 370
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 
374 374
         $instance = $this->assertObject($object);
375 375
 
376
-        Closure::bind(function ($instance, string $propertyName, $value) : void {
376
+        Closure::bind(function($instance, string $propertyName, $value) : void {
377 377
             $instance->{$propertyName} = $value;
378 378
         }, $instance, $declaringClassName)->__invoke($instance, $this->getName(), $value);
379 379
     }
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
      */
384 384
     public function allowsNull() : bool
385 385
     {
386
-        if (! $this->hasType()) {
386
+        if (!$this->hasType()) {
387 387
             return true;
388 388
         }
389 389
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
             $type = $type->type;
409 409
         }
410 410
 
411
-        return ReflectionType::createFromTypeAndReflector((string) $type, $this->allowsNull(), $this->reflector);
411
+        return ReflectionType::createFromTypeAndReflector((string)$type, $this->allowsNull(), $this->reflector);
412 412
     }
413 413
 
414 414
     /**
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
      */
443 443
     private function assertClassExist(string $className) : void
444 444
     {
445
-        if (! class_exists($className, false)) {
445
+        if (!class_exists($className, false)) {
446 446
             throw new ClassDoesNotExist('Property cannot be retrieved as the class is not loaded');
447 447
         }
448 448
     }
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
             throw NoObjectProvided::create();
463 463
         }
464 464
 
465
-        if (! is_object($object)) {
465
+        if (!is_object($object)) {
466 466
             throw NotAnObject::fromNonObject($object);
467 467
         }
468 468
 
Please login to merge, or discard this patch.