Passed
Push — master ( b22d1d...5fd1c5 )
by Christopher
02:14
created
src/Internal/RegistrationHelper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     ) {
49 49
         $qualifiedName = $element->fullName();
50 50
         switch ($element->getSchemaElementKind()) {
51
-            case SchemaElementKind::Function():
51
+            case SchemaElementKind::Function ():
52 52
                 assert($element instanceof IFunction);
53 53
                 self::addFunction($element, $qualifiedName, $functionGroupDictionary);
54 54
                 break;
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     ) {
49 49
         $qualifiedName = $element->fullName();
50 50
         switch ($element->getSchemaElementKind()) {
51
-            case SchemaElementKind::Function():
51
+            case SchemaElementKind::function():
52 52
                 assert($element instanceof IFunction);
53 53
                 self::addFunction($element, $qualifiedName, $functionGroupDictionary);
54 54
                 break;
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/InterfaceValidator/VisitorOfIStructuredType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         );
29 29
 
30 30
         if (null !== $type->getBaseType()) {
31
-            $visitedTypes   = new HashSetInternal();
31
+            $visitedTypes = new HashSetInternal();
32 32
             $visitedTypes->add($type);
33 33
             /** @var IStructuredType|null $currentBaseType */
34 34
             for ($currentBaseType = $type->getBaseType(); null !== $currentBaseType; $currentBaseType = $currentBaseType->getBaseType()
Please login to merge, or discard this patch.
IEdmElement/ElementDirectValueAnnotationFullNameMustBeUnique.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         foreach ($annotations as $annotation) {
28 28
             assert($annotation instanceof IDirectValueAnnotation);
29 29
             EdmUtil::checkArgumentNull($annotation->location(), 'annotation->Location');
30
-            if (! $annotationNameSet->add($annotation->getNamespaceUri() . ':' . $annotation->getName())) {
30
+            if (!$annotationNameSet->add($annotation->getNamespaceUri() . ':' . $annotation->getName())) {
31 31
                 EdmUtil::checkArgumentNull($annotation->location(), 'annotation->Location');
32 32
                 $context->addError(
33 33
                     $annotation->location(),
Please login to merge, or discard this patch.
Internal/InterfaceValidator/VisitorOfICollectionTypeReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         assert($typeRef instanceof ICollectionTypeReference);
15 15
         return null !== $typeRef->getDefinition() &&
16 16
                !$typeRef->getDefinition()->getTypeKind()->isCollection() ?
17
-            [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
17
+            [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null;
18 18
     }
19 19
 
20 20
     public function forType(): string
Please login to merge, or discard this patch.
src/Csdl/Internal/Serialization/EdmModelCsdlSchemaWriter.php 1 patch
Spacing   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1350,8 +1350,7 @@  discard block
 block discarded – undo
1350 1350
      */
1351 1351
     public function writeOptionalAttribute(string $attribute, $value, $defaultValue, callable $toXml): void
1352 1352
     {
1353
-        $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) :
1354
-            new ReflectionFunction($toXml);
1353
+        $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml);
1355 1354
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1356 1355
         assert(
1357 1356
             1 === count(($stem)->getParameters()),
@@ -1359,8 +1358,7 @@  discard block
 block discarded – undo
1359 1358
         );
1360 1359
         $stemType = $stem->getReturnType();
1361 1360
         $name     = $stemType instanceof ReflectionNamedType ?
1362
-            $stemType->getName() :
1363
-            strval($stemType);
1361
+            $stemType->getName() : strval($stemType);
1364 1362
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1365 1363
         assert(
1366 1364
             'string' === $name,
@@ -1379,8 +1377,7 @@  discard block
 block discarded – undo
1379 1377
      */
1380 1378
     public function writeRequiredAttribute(string $attribute, $value, callable $toXml): void
1381 1379
     {
1382
-        $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) :
1383
-            new ReflectionFunction($toXml);
1380
+        $stem = is_array($toXml) ? new ReflectionMethod(...$toXml) : new ReflectionFunction($toXml);
1384 1381
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1385 1382
         assert(
1386 1383
             1 === count($stem->getParameters()),
@@ -1388,8 +1385,7 @@  discard block
 block discarded – undo
1388 1385
         );
1389 1386
         $stemType = $stem->getReturnType();
1390 1387
         $name     = $stemType instanceof ReflectionNamedType ?
1391
-            $stemType->getName() :
1392
-            strval($stemType);
1388
+            $stemType->getName() : strval($stemType);
1393 1389
         /* @noinspection PhpUnhandledExceptionInspection suppressing exceptions for asserts.*/
1394 1390
         assert(
1395 1391
             'string' === $name,
Please login to merge, or discard this patch.
src/Helpers/Interfaces/IFunctionImportHelpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @return bool            true if the entity set expression of the functionImport contains a static reference to
23 23
      *                                   an IEntitySet, otherwise false
24 24
      */
25
-    public function tryGetStaticEntitySet(IEntitySet &$entitySet = null): bool;
25
+    public function tryGetStaticEntitySet(IEntitySet & $entitySet = null): bool;
26 26
 
27 27
     /**
28 28
      * Analyzes IFunctionImport::EntitySet expression and returns a relative path to an IEntitySet if available.
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function tryGetRelativeEntitySetPath(
39 39
         IModel $model,
40
-        IFunctionParameter &$parameter = null,
40
+        IFunctionParameter & $parameter = null,
41 41
         array &$path = null
42 42
     ): bool;
43 43
 }
Please login to merge, or discard this patch.
src/Helpers/FunctionImportHelpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param  IEntitySet $entitySet the static entity set of the function import
27 27
      * @return bool       true if the entity set expression of the functionImport contains a static reference to an IEntitySet, otherwise false
28 28
      */
29
-    public function tryGetStaticEntitySet(IEntitySet &$entitySet = null): bool
29
+    public function tryGetStaticEntitySet(IEntitySet & $entitySet = null): bool
30 30
     {
31 31
         /** @var IFunctionImport $this */
32 32
         $entitySetReference = $this->getEntitySet();
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function tryGetRelativeEntitySetPath(
49 49
         IModel $model,
50
-        IFunctionParameter &$parameter = null,
50
+        IFunctionParameter & $parameter = null,
51 51
         array &$path = null
52 52
     ): bool {
53 53
         /**
Please login to merge, or discard this patch.
src/Edm/Validation/Internal/ValidationHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         if (count($set1) != count($set2)) {
104 104
             return false;
105 105
         }
106
-        for ($i = count($set1) -1; $i > -1; --$i) {
106
+        for ($i = count($set1) - 1; $i > -1; --$i) {
107 107
             if ($set1[$i] !== $set2[$i]) {
108 108
                 return false;
109 109
             }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         IValue $value,
116 116
         ?string $annotationNamespace,
117 117
         ?string $annotationName,
118
-        ?EdmError &$error
118
+        ?EdmError & $error
119 119
     ): bool {
120 120
         if (!($value instanceof IStringValue)) {
121 121
             $error = new EdmError(
Please login to merge, or discard this patch.