Passed
Pull Request — master (#45)
by Christopher
04:17 queued 52s
created
src/Helpers/ModelHelpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function GetNamespaceAliases(): array
45 45
     {
46 46
         assert($this instanceof IEdmElement);
47
-        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ??[];
47
+        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespaceAliasAnnotation) ?? [];
48 48
     }
49 49
     /**
50 50
      * Sets an annotation value for an EDM element. If the value is null, no annotation is added and an existing
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      */
250 250
     public function GetNamespacePrefixMappings(): array
251 251
     {
252
-        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation)??[];
252
+        return $this->GetAnnotationValue('array', $this, EdmConstants::InternalUri, CsdlConstants::NamespacePrefixAnnotation) ?? [];
253 253
     }
254 254
 
255 255
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
         $navigationPropertyMappings = $model->GetAnnotationValue(SplObjectStorage::class, $entitySet, EdmConstants::InternalUri, CsdlConstants::AssociationSetNameAnnotation);
402 402
         assert($navigationPropertyMappings instanceof SplObjectStorage || $navigationPropertyMappings === null);
403 403
         if ($navigationPropertyMappings !== null && $navigationPropertyMappings->offsetExists($property)) {
404
-            $associationSetName = $navigationPropertyMappings->offsetGet($property) ;
404
+            $associationSetName = $navigationPropertyMappings->offsetGet($property);
405 405
         } else {
406 406
             $associationSetName = $model->GetAssociationName($property) . 'Set';
407 407
         }
Please login to merge, or discard this patch.
src/Helpers/TypeAnnotationHelpers.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,5 +36,5 @@
 block discarded – undo
36 36
     /**
37 37
      * @return IPropertyValueBinding[] gets the value annotations for the properties of the type
38 38
      */
39
-   abstract public function getPropertyValueBindings(): array;
39
+    abstract public function getPropertyValueBindings(): array;
40 40
 }
Please login to merge, or discard this patch.
src/polyfill.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         return $code;
49 49
     }
50 50
 }
51
-if(!function_exists('iterable_to_array')) {
51
+if (!function_exists('iterable_to_array')) {
52 52
     function iterable_to_array(iterable $it): array
53 53
     {
54 54
         if (is_array($it)) return $it;
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return $ret;
58 58
     }
59 59
 }
60
-if(!function_exists('iterable_to_traversable')) {
60
+if (!function_exists('iterable_to_traversable')) {
61 61
 
62 62
     function iterable_to_traversable(iterable $it): Traversable
63 63
     {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@
 block discarded – undo
51 51
 if(!function_exists('iterable_to_array')) {
52 52
     function iterable_to_array(iterable $it): array
53 53
     {
54
-        if (is_array($it)) return $it;
54
+        if (is_array($it)) {
55
+            return $it;
56
+        }
55 57
         $ret = [];
56 58
         array_push($ret, ...$it);
57 59
         return $ret;
Please login to merge, or discard this patch.