Passed
Pull Request — master (#2235)
by Arnaud
09:02 queued 04:01
created
src/Renderer/Extension/Core.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      *
303 303
      * @return Asset
304 304
      */
305
-    public function asset($path, array|null $options = null): Asset
305
+    public function asset($path, array | null $options = null): Asset
306 306
     {
307 307
         if (!\is_string($path) && !\is_array($path)) {
308 308
             throw new RuntimeException(\sprintf('Argument of "%s()" must a string or an array.', \Cecil\Util::formatMethodName(__METHOD__)));
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
      *
534 534
      * @throws RuntimeException
535 535
      */
536
-    public function html(array $context, Asset|array $assets, array $attributes = [], array $options = []): string
536
+    public function html(array $context, Asset | array $assets, array $attributes = [], array $options = []): string
537 537
     {
538 538
         $html = array();
539 539
         if (!\is_array($assets)) {
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
1066 1066
     /**
1067 1067
      * Hashing an object, an array or a string (with algo, md5 by default).
1068 1068
      */
1069
-    public function hash(object|array|string $data, $algo = 'md5'): string
1069
+    public function hash(object | array | string $data, $algo = 'md5'): string
1070 1070
     {
1071 1071
         switch (\gettype($data)) {
1072 1072
             case 'object':
Please login to merge, or discard this patch.