Passed
Pull Request — master (#64)
by Alex
03:32
created
src/Util/XmlCharType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -330,9 +330,9 @@
 block discarded – undo
330 330
     private static function setProperties(string $ranges, int $value): void
331 331
     {
332 332
         assert(mb_strlen($ranges, 'UTF-8') % 2 === 0);
333
-        for ($p = 0; $p < mb_strlen($ranges, 'UTF-8'); $p +=2) {
333
+        for ($p = 0; $p < mb_strlen($ranges, 'UTF-8'); $p += 2) {
334 334
             $str1 = mb_substr($ranges, $p, 1, 'UTF-8');
335
-            $str2 = mb_substr($ranges, $p+1, 1, 'UTF-8');
335
+            $str2 = mb_substr($ranges, $p + 1, 1, 'UTF-8');
336 336
             for ($i = mb_ord($str1),
337 337
                  $last = mb_ord($str2); $i <= $last; $i++) {
338 338
                 if (!isset(self::$s_CharProperties[$i])) {
Please login to merge, or discard this patch.
src/Internal/RegistrationHelper.php 1 patch
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.
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.