Test Failed
Push — master ( 4527f5...6e7815 )
by Ylva
21:41 queued 04:42
created
a/vendor/scrivo/highlight.php/Highlight/RegEx.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@
 block discarded – undo
55 55
      */
56 56
     public function __construct($regex)
57 57
     {
58
-        $this->source = (string) $regex;
58
+        $this->source = (string)$regex;
59 59
     }
60 60
 
61 61
     public function __toString()
62 62
     {
63
-        return (string) $this->source;
63
+        return (string)$this->source;
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
a/vendor/scrivo/highlight.php/Highlight/Language.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $mode->keywords = $mode->keywords ? $mode->keywords : $mode->beginKeywords;
222 222
 
223 223
         if ($mode->keywords) {
224
-            $mode->keywords = $this->compileKeywords($mode->keywords, (bool) $this->case_insensitive);
224
+            $mode->keywords = $this->compileKeywords($mode->keywords, (bool)$this->case_insensitive);
225 225
         }
226 226
 
227 227
         $mode->lexemesRe = $this->langRe($mode->lexemes ? $mode->lexemes : "\w+", true);
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     private function scoreForKeyword($keyword, $providedScore)
351 351
     {
352 352
         if ($providedScore) {
353
-            return (int) $providedScore;
353
+            return (int)$providedScore;
354 354
         }
355 355
 
356 356
         return $this->commonKeyword($keyword) ? 0 : 1;
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
             if (!$safeMode) {
390 390
                 throw new \LogicException("`self` is not supported at the top-level of a language.");
391 391
             }
392
-            $this->mode->contains = array_filter($this->mode->contains, function ($mode) {
392
+            $this->mode->contains = array_filter($this->mode->contains, function($mode) {
393 393
                 return $mode !== "self";
394 394
             });
395 395
         }
Please login to merge, or discard this patch.
a/vendor/scrivo/highlight.php/Highlight/Terminators.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     private function reCountMatchGroups($re)
238 238
     {
239 239
         $results = array();
240
-        $escaped = preg_replace('#(?<!\\\)/#um', '\\/', (string) $re);
240
+        $escaped = preg_replace('#(?<!\\\)/#um', '\\/', (string)$re);
241 241
         preg_match_all("/{$escaped}|/u", '', $results);
242 242
 
243 243
         return count($results) - 1;
Please login to merge, or discard this patch.
a/vendor/webmozart/assert/src/Assert.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public static function integerish($value, $message = '')
101 101
     {
102
-        if (!\is_numeric($value) || $value != (int) $value) {
102
+        if (!\is_numeric($value) || $value != (int)$value) {
103 103
             static::reportInvalidArgument(\sprintf(
104 104
                 $message ?: 'Expected an integerish value. Got: %s',
105 105
                 static::typeToString($value)
@@ -1958,7 +1958,7 @@  discard block
 block discarded – undo
1958 1958
             return;
1959 1959
         }
1960 1960
 
1961
-        throw new BadMethodCallException('No such method: '.$name);
1961
+        throw new BadMethodCallException('No such method: ' . $name);
1962 1962
     }
1963 1963
 
1964 1964
     /**
@@ -1986,11 +1986,11 @@  discard block
 block discarded – undo
1986 1986
 
1987 1987
         if (\is_object($value)) {
1988 1988
             if (\method_exists($value, '__toString')) {
1989
-                return \get_class($value).': '.self::valueToString($value->__toString());
1989
+                return \get_class($value) . ': ' . self::valueToString($value->__toString());
1990 1990
             }
1991 1991
 
1992 1992
             if ($value instanceof DateTime || $value instanceof DateTimeImmutable) {
1993
-                return \get_class($value).': '.self::valueToString($value->format('c'));
1993
+                return \get_class($value) . ': ' . self::valueToString($value->format('c'));
1994 1994
             }
1995 1995
 
1996 1996
             return \get_class($value);
@@ -2001,10 +2001,10 @@  discard block
 block discarded – undo
2001 2001
         }
2002 2002
 
2003 2003
         if (\is_string($value)) {
2004
-            return '"'.$value.'"';
2004
+            return '"' . $value . '"';
2005 2005
         }
2006 2006
 
2007
-        return (string) $value;
2007
+        return (string)$value;
2008 2008
     }
2009 2009
 
2010 2010
     /**
Please login to merge, or discard this patch.
a/vendor/phar-io/manifest/tests/xml/ComponentElementCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         $dom->loadXML('<?xml version="1.0" ?><component xmlns="https://phar.io/xml/manifest/1.0" />');
11 11
         $collection = new ComponentElementCollection($dom->childNodes);
12 12
 
13
-        foreach($collection as $componentElement) {
13
+        foreach ($collection as $componentElement) {
14 14
             $this->assertInstanceOf(ComponentElement::class, $componentElement);
15 15
         }
16 16
     }
Please login to merge, or discard this patch.
a/vendor/phar-io/manifest/tests/xml/ExtElementCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         $dom->loadXML('<?xml version="1.0" ?><ext xmlns="https://phar.io/xml/manifest/1.0" />');
11 11
         $collection = new ExtElementCollection($dom->childNodes);
12 12
 
13
-        foreach($collection as $position => $extElement) {
13
+        foreach ($collection as $position => $extElement) {
14 14
             $this->assertInstanceOf(ExtElement::class, $extElement);
15 15
             $this->assertEquals(0, $position);
16 16
         }
Please login to merge, or discard this patch.
a/vendor/phar-io/manifest/tests/xml/AuthorElementCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         $dom->loadXML('<?xml version="1.0" ?><author xmlns="https://phar.io/xml/manifest/1.0" name="Reiner Zufall" email="[email protected]" />');
11 11
         $collection = new AuthorElementCollection($dom->childNodes);
12 12
 
13
-        foreach($collection as $authorElement) {
13
+        foreach ($collection as $authorElement) {
14 14
             $this->assertInstanceOf(AuthorElement::class, $authorElement);
15 15
         }
16 16
     }
Please login to merge, or discard this patch.
a/vendor/phar-io/manifest/tests/values/RequirementCollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     public function testKeyPositionCanBeRetreived() {
57 57
         $this->collection->add($this->item);
58
-        foreach($this->collection as $key => $item) {
58
+        foreach ($this->collection as $key => $item) {
59 59
             $this->assertEquals(0, $key);
60 60
         }
61 61
     }
Please login to merge, or discard this patch.
a/vendor/phar-io/manifest/src/ManifestDocumentMapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     private function mapCopyright(CopyrightElement $copyright) {
79 79
         $authors = new AuthorCollection();
80 80
 
81
-        foreach($copyright->getAuthorElements() as $authorElement) {
81
+        foreach ($copyright->getAuthorElements() as $authorElement) {
82 82
             $authors->add(
83 83
                 new Author(
84 84
                     $authorElement->getName(),
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             return $collection;
132 132
         }
133 133
 
134
-        foreach($phpElement->getExtElements() as $extElement) {
134
+        foreach ($phpElement->getExtElements() as $extElement) {
135 135
             $collection->add(
136 136
                 new PhpExtensionRequirement($extElement->getName())
137 137
             );
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             return $collection;
153 153
         }
154 154
 
155
-        foreach($document->getBundlesElement()->getComponentElements() as $componentElement) {
155
+        foreach ($document->getBundlesElement()->getComponentElements() as $componentElement) {
156 156
             $collection->add(
157 157
                 new BundledComponent(
158 158
                     $componentElement->getName(),
Please login to merge, or discard this patch.