Completed
Push — master ( 8e973a...811a95 )
by
unknown
03:40 queued 01:04
created
vendor/jetbrains/phpstorm-stubs/Reflection/ReflectionIntersectionType.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
  */
8 8
 class ReflectionIntersectionType extends ReflectionType
9 9
 {
10
-    /** @return ReflectionType[] */
11
-    #[Pure]
12
-    public function getTypes(): array {}
10
+	/** @return ReflectionType[] */
11
+	#[Pure]
12
+	public function getTypes(): array {}
13 13
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 /**
6 6
  * @since 8.1
7 7
  */
8
-class ReflectionIntersectionType extends ReflectionType
9
-{
8
+class ReflectionIntersectionType extends ReflectionType {
10 9
     /** @return ReflectionType[] */
11 10
     #[Pure]
12 11
     public function getTypes(): array {}
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/Reflection/Reflector.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -8,22 +8,22 @@
 block discarded – undo
8 8
  */
9 9
 interface Reflector extends Stringable
10 10
 {
11
-    /**
12
-     * Exports a class.
13
-     *
14
-     * @link https://php.net/manual/en/reflector.export.php
15
-     * @return string|null
16
-     * @removed 7.4
17
-     */
18
-    public static function export();
11
+	/**
12
+	 * Exports a class.
13
+	 *
14
+	 * @link https://php.net/manual/en/reflector.export.php
15
+	 * @return string|null
16
+	 * @removed 7.4
17
+	 */
18
+	public static function export();
19 19
 
20
-    /**
21
-     * Returns the string representation of any Reflection object.
22
-     *
23
-     * Please note that since PHP 8.0 this method is absent in this interface
24
-     * and inherits from the {@see Stringable} parent.
25
-     *
26
-     * @return string
27
-     */
28
-    public function __toString();
20
+	/**
21
+	 * Returns the string representation of any Reflection object.
22
+	 *
23
+	 * Please note that since PHP 8.0 this method is absent in this interface
24
+	 * and inherits from the {@see Stringable} parent.
25
+	 *
26
+	 * @return string
27
+	 */
28
+	public function __toString();
29 29
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
  *
7 7
  * @link https://php.net/manual/en/class.reflector.php
8 8
  */
9
-interface Reflector extends Stringable
10
-{
9
+interface Reflector extends Stringable {
11 10
     /**
12 11
      * Exports a class.
13 12
      *
Please login to merge, or discard this patch.
vendor/jetbrains/phpstorm-stubs/Reflection/ReflectionZendExtension.php 2 patches
Indentation   +94 added lines, -94 removed lines patch added patch discarded remove patch
@@ -11,107 +11,107 @@
 block discarded – undo
11 11
  */
12 12
 class ReflectionZendExtension implements Reflector
13 13
 {
14
-    /**
15
-     * @var string Name of the extension, same as calling the {@see ReflectionZendExtension::getName()} method
16
-     */
17
-    #[Immutable]
18
-    #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
19
-    public $name;
14
+	/**
15
+	 * @var string Name of the extension, same as calling the {@see ReflectionZendExtension::getName()} method
16
+	 */
17
+	#[Immutable]
18
+	#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
19
+	public $name;
20 20
 
21
-    /**
22
-     * Constructs a ReflectionZendExtension object
23
-     *
24
-     * @link https://php.net/manual/en/reflectionzendextension.construct.php
25
-     * @param string $name
26
-     * @throws ReflectionException if the extension does not exist.
27
-     * @since 5.4
28
-     */
29
-    public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
21
+	/**
22
+	 * Constructs a ReflectionZendExtension object
23
+	 *
24
+	 * @link https://php.net/manual/en/reflectionzendextension.construct.php
25
+	 * @param string $name
26
+	 * @throws ReflectionException if the extension does not exist.
27
+	 * @since 5.4
28
+	 */
29
+	public function __construct(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name) {}
30 30
 
31
-    /**
32
-     * Exports a reflected zend extension.
33
-     *
34
-     * @link https://php.net/manual/en/reflectionzendextension.export.php
35
-     * @param string $name The reflection to export.
36
-     * @param bool $return Setting to {@see true} will return the
37
-     * export, as opposed to emitting it. Setting to {@see false} (the default)
38
-     * will do the opposite.
39
-     * @return string|null If the $return parameter is set to {@see true}, then
40
-     * the export is returned as a string, otherwise {@see null} is returned.
41
-     */
42
-    public static function export($name, $return = false) {}
31
+	/**
32
+	 * Exports a reflected zend extension.
33
+	 *
34
+	 * @link https://php.net/manual/en/reflectionzendextension.export.php
35
+	 * @param string $name The reflection to export.
36
+	 * @param bool $return Setting to {@see true} will return the
37
+	 * export, as opposed to emitting it. Setting to {@see false} (the default)
38
+	 * will do the opposite.
39
+	 * @return string|null If the $return parameter is set to {@see true}, then
40
+	 * the export is returned as a string, otherwise {@see null} is returned.
41
+	 */
42
+	public static function export($name, $return = false) {}
43 43
 
44
-    /**
45
-     * To string handler
46
-     *
47
-     * @link https://php.net/manual/en/reflectionzendextension.tostring.php
48
-     * @return string
49
-     * @since 5.4
50
-     */
51
-    #[TentativeType]
52
-    public function __toString(): string {}
44
+	/**
45
+	 * To string handler
46
+	 *
47
+	 * @link https://php.net/manual/en/reflectionzendextension.tostring.php
48
+	 * @return string
49
+	 * @since 5.4
50
+	 */
51
+	#[TentativeType]
52
+	public function __toString(): string {}
53 53
 
54
-    /**
55
-     * Gets name
56
-     *
57
-     * @link https://php.net/manual/en/reflectionzendextension.getname.php
58
-     * @return string
59
-     * @since 5.4
60
-     */
61
-    #[Pure]
62
-    #[TentativeType]
63
-    public function getName(): string {}
54
+	/**
55
+	 * Gets name
56
+	 *
57
+	 * @link https://php.net/manual/en/reflectionzendextension.getname.php
58
+	 * @return string
59
+	 * @since 5.4
60
+	 */
61
+	#[Pure]
62
+	#[TentativeType]
63
+	public function getName(): string {}
64 64
 
65
-    /**
66
-     * Gets version
67
-     *
68
-     * @link https://php.net/manual/en/reflectionzendextension.getversion.php
69
-     * @return string
70
-     * @since 5.4
71
-     */
72
-    #[Pure]
73
-    #[TentativeType]
74
-    public function getVersion(): string {}
65
+	/**
66
+	 * Gets version
67
+	 *
68
+	 * @link https://php.net/manual/en/reflectionzendextension.getversion.php
69
+	 * @return string
70
+	 * @since 5.4
71
+	 */
72
+	#[Pure]
73
+	#[TentativeType]
74
+	public function getVersion(): string {}
75 75
 
76
-    /**
77
-     * Gets author
78
-     *
79
-     * @link https://php.net/manual/en/reflectionzendextension.getauthor.php
80
-     * @return string
81
-     * @since 5.4
82
-     */
83
-    #[Pure]
84
-    #[TentativeType]
85
-    public function getAuthor(): string {}
76
+	/**
77
+	 * Gets author
78
+	 *
79
+	 * @link https://php.net/manual/en/reflectionzendextension.getauthor.php
80
+	 * @return string
81
+	 * @since 5.4
82
+	 */
83
+	#[Pure]
84
+	#[TentativeType]
85
+	public function getAuthor(): string {}
86 86
 
87
-    /**
88
-     * Gets URL
89
-     *
90
-     * @link https://php.net/manual/en/reflectionzendextension.geturl.php
91
-     * @return string
92
-     * @since 5.4
93
-     */
94
-    #[Pure]
95
-    #[TentativeType]
96
-    public function getURL(): string {}
87
+	/**
88
+	 * Gets URL
89
+	 *
90
+	 * @link https://php.net/manual/en/reflectionzendextension.geturl.php
91
+	 * @return string
92
+	 * @since 5.4
93
+	 */
94
+	#[Pure]
95
+	#[TentativeType]
96
+	public function getURL(): string {}
97 97
 
98
-    /**
99
-     * Gets copyright
100
-     *
101
-     * @link https://php.net/manual/en/reflectionzendextension.getcopyright.php
102
-     * @return string
103
-     * @since 5.4
104
-     */
105
-    #[Pure]
106
-    #[TentativeType]
107
-    public function getCopyright(): string {}
98
+	/**
99
+	 * Gets copyright
100
+	 *
101
+	 * @link https://php.net/manual/en/reflectionzendextension.getcopyright.php
102
+	 * @return string
103
+	 * @since 5.4
104
+	 */
105
+	#[Pure]
106
+	#[TentativeType]
107
+	public function getCopyright(): string {}
108 108
 
109
-    /**
110
-     * Clone handler
111
-     *
112
-     * @link https://php.net/manual/en/reflectionzendextension.clone.php
113
-     * @return void
114
-     * @since 5.4
115
-     */
116
-    final private function __clone(): void {}
109
+	/**
110
+	 * Clone handler
111
+	 *
112
+	 * @link https://php.net/manual/en/reflectionzendextension.clone.php
113
+	 * @return void
114
+	 * @since 5.4
115
+	 */
116
+	final private function __clone(): void {}
117 117
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
  * @link https://secure.php.net/manual/en/class.reflectionzendextension.php
10 10
  * @since 5.4
11 11
  */
12
-class ReflectionZendExtension implements Reflector
13
-{
12
+class ReflectionZendExtension implements Reflector {
14 13
     /**
15 14
      * @var string Name of the extension, same as calling the {@see ReflectionZendExtension::getName()} method
16 15
      */
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/Reflection/Reflection.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -11,27 +11,27 @@
 block discarded – undo
11 11
  */
12 12
 class Reflection
13 13
 {
14
-    /**
15
-     * Gets modifier names
16
-     *
17
-     * @link https://php.net/manual/en/reflection.getmodifiernames.php
18
-     * @param int $modifiers Bitfield of the modifiers to get.
19
-     * @return array An array of modifier names.
20
-     */
21
-    #[TentativeType]
22
-    public static function getModifierNames(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $modifiers): array {}
14
+	/**
15
+	 * Gets modifier names
16
+	 *
17
+	 * @link https://php.net/manual/en/reflection.getmodifiernames.php
18
+	 * @param int $modifiers Bitfield of the modifiers to get.
19
+	 * @return array An array of modifier names.
20
+	 */
21
+	#[TentativeType]
22
+	public static function getModifierNames(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $modifiers): array {}
23 23
 
24
-    /**
25
-     * Exports
26
-     *
27
-     * @link https://php.net/manual/en/reflection.export.php
28
-     * @param Reflector $reflector The reflection to export.
29
-     * @param bool $return Setting to {@see true} will return the export, as
30
-     * opposed to emitting it. Setting to {@see false} (the default) will do the opposite.
31
-     * @return string|null If the return parameter is set to {@see true}, then the
32
-     * export is returned as a string, otherwise {@see null} is returned.
33
-     * @removed 8.0
34
-     */
35
-    #[Deprecated(since: '7.4')]
36
-    public static function export(Reflector $reflector, $return = false) {}
24
+	/**
25
+	 * Exports
26
+	 *
27
+	 * @link https://php.net/manual/en/reflection.export.php
28
+	 * @param Reflector $reflector The reflection to export.
29
+	 * @param bool $return Setting to {@see true} will return the export, as
30
+	 * opposed to emitting it. Setting to {@see false} (the default) will do the opposite.
31
+	 * @return string|null If the return parameter is set to {@see true}, then the
32
+	 * export is returned as a string, otherwise {@see null} is returned.
33
+	 * @removed 8.0
34
+	 */
35
+	#[Deprecated(since: '7.4')]
36
+	public static function export(Reflector $reflector, $return = false) {}
37 37
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
  *
10 10
  * @link https://php.net/manual/en/class.reflection.php
11 11
  */
12
-class Reflection
13
-{
12
+class Reflection {
14 13
     /**
15 14
      * Gets modifier names
16 15
      *
Please login to merge, or discard this patch.
vendor/jetbrains/phpstorm-stubs/parallel/parallel/Events/Event/Type.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,21 +4,21 @@
 block discarded – undo
4 4
 
5 5
 final class Type
6 6
 {
7
-    /** Event::$object was read into Event::$value */
8
-    public const Read = 1;
7
+	/** Event::$object was read into Event::$value */
8
+	public const Read = 1;
9 9
 
10
-    /** Input for Event::$source written to Event::$object */
11
-    public const Write = 2;
10
+	/** Input for Event::$source written to Event::$object */
11
+	public const Write = 2;
12 12
 
13
-    /** Event::$object (Channel) was closed */
14
-    public const Close = 3;
13
+	/** Event::$object (Channel) was closed */
14
+	public const Close = 3;
15 15
 
16
-    /** Event::$object (Future) was cancelled */
17
-    public const Cancel = 5;
16
+	/** Event::$object (Future) was cancelled */
17
+	public const Cancel = 5;
18 18
 
19
-    /** Runtime executing Event::$object (Future) was killed */
20
-    public const Kill = 6;
19
+	/** Runtime executing Event::$object (Future) was killed */
20
+	public const Kill = 6;
21 21
 
22
-    /** Event::$object (Future) raised error */
23
-    public const Error = 4;
22
+	/** Event::$object (Future) raised error */
23
+	public const Error = 4;
24 24
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace parallel\Events\Event;
4 4
 
5
-final class Type
6
-{
5
+final class Type {
7 6
     /** Event::$object was read into Event::$value */
8 7
     public const Read = 1;
9 8
 
Please login to merge, or discard this patch.
vendor/jetbrains/phpstorm-stubs/parallel/parallel/Events/Input.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -14,26 +14,26 @@
 block discarded – undo
14 14
  */
15 15
 final class Input
16 16
 {
17
-    /**
18
-     * Shall set input for the given target
19
-     *
20
-     * @param string $target
21
-     * @param mixed  $value
22
-     *
23
-     * @throws Input\Error\Existence if input for target already exists.
24
-     * @throws Input\Error\IllegalValue if value is illegal (object, null).
25
-     */
26
-    public function add(string $target, $value): void {}
17
+	/**
18
+	 * Shall set input for the given target
19
+	 *
20
+	 * @param string $target
21
+	 * @param mixed  $value
22
+	 *
23
+	 * @throws Input\Error\Existence if input for target already exists.
24
+	 * @throws Input\Error\IllegalValue if value is illegal (object, null).
25
+	 */
26
+	public function add(string $target, $value): void {}
27 27
 
28
-    /**
29
-     * Shall remove input for the given target
30
-     * @param string $target
31
-     * @throws Input\Error\Existence if input for target does not exist.
32
-     */
33
-    public function remove(string $target): void {}
28
+	/**
29
+	 * Shall remove input for the given target
30
+	 * @param string $target
31
+	 * @throws Input\Error\Existence if input for target does not exist.
32
+	 */
33
+	public function remove(string $target): void {}
34 34
 
35
-    /**
36
-     * Shall remove input for all targets
37
-     */
38
-    public function clear(): void {}
35
+	/**
36
+	 * Shall remove input for all targets
37
+	 */
38
+	public function clear(): void {}
39 39
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
  * Note: When a parallel\Events object performs a write, the target is removed from the input object as if
13 13
  * @see Input::remove() were called.
14 14
  */
15
-final class Input
16
-{
15
+final class Input {
17 16
     /**
18 17
      * Shall set input for the given target
19 18
      *
Please login to merge, or discard this patch.
vendor/jetbrains/phpstorm-stubs/parallel/parallel/Events/Event.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -8,27 +8,27 @@
 block discarded – undo
8 8
  */
9 9
 final class Event
10 10
 {
11
-    /**
12
-     * Shall be one of Event\Type constants
13
-     * @var int
14
-     */
15
-    public $type;
11
+	/**
12
+	 * Shall be one of Event\Type constants
13
+	 * @var int
14
+	 */
15
+	public $type;
16 16
 
17
-    /**
18
-     * Shall be the source of the event (target name)
19
-     * @var string
20
-     */
21
-    public $source;
17
+	/**
18
+	 * Shall be the source of the event (target name)
19
+	 * @var string
20
+	 */
21
+	public $source;
22 22
 
23
-    /**
24
-     * Shall be either Future or Channel
25
-     * @var object
26
-     */
27
-    public $object;
23
+	/**
24
+	 * Shall be either Future or Channel
25
+	 * @var object
26
+	 */
27
+	public $object;
28 28
 
29
-    /**
30
-     * Shall be set for Read/Error events
31
-     * @var mixed
32
-     */
33
-    public $value;
29
+	/**
30
+	 * Shall be set for Read/Error events
31
+	 * @var mixed
32
+	 */
33
+	public $value;
34 34
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
  * When an Event is returned, @see Event::$object shall be removed from the loop that returned it, should the event be a
7 7
  * write event the Input for @see Event::$source shall also be removed.
8 8
  */
9
-final class Event
10
-{
9
+final class Event {
11 10
     /**
12 11
      * Shall be one of Event\Type constants
13 12
      * @var int
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/parallel/parallel/Future.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -14,46 +14,46 @@
 block discarded – undo
14 14
  */
15 15
 final class Future
16 16
 {
17
-    /* Resolution */
18
-
19
-    /**
20
-     * Shall return (and if necessary wait for) return from task
21
-     *
22
-     * @return mixed
23
-     *
24
-     * @throws Future\Error if waiting failed (internal error).
25
-     * @throws Future\Error\Killed if \parallel\Runtime executing task was killed.
26
-     * @throws Future\Error\Cancelled if task was cancelled.
27
-     * @throws Future\Error\Foreign if task raised an unrecognized uncaught exception.
28
-     * @throws Throwable Shall rethrow \Throwable uncaught in task
29
-     */
30
-    public function value() {}
31
-
32
-    /* State */
33
-
34
-    /**
35
-     * Shall indicate if the task is completed
36
-     * @return bool
37
-     */
38
-    public function done(): bool {}
39
-
40
-    /**
41
-     * Shall indicate if the task was cancelled
42
-     * @return bool
43
-     */
44
-    public function cancelled(): bool {}
45
-
46
-    /* Cancellation */
47
-
48
-    /**
49
-     * Shall try to cancel the task
50
-     * Note: If task is running, it will be interrupted.
51
-     * Warning: Internal function calls in progress cannot be interrupted.
52
-     *
53
-     * @return bool
54
-     *
55
-     * @throws Future\Error\Killed if \parallel\Runtime executing task was killed.
56
-     * @throws Future\Error\Cancelled if task was already cancelled.
57
-     */
58
-    public function cancel(): bool {}
17
+	/* Resolution */
18
+
19
+	/**
20
+	 * Shall return (and if necessary wait for) return from task
21
+	 *
22
+	 * @return mixed
23
+	 *
24
+	 * @throws Future\Error if waiting failed (internal error).
25
+	 * @throws Future\Error\Killed if \parallel\Runtime executing task was killed.
26
+	 * @throws Future\Error\Cancelled if task was cancelled.
27
+	 * @throws Future\Error\Foreign if task raised an unrecognized uncaught exception.
28
+	 * @throws Throwable Shall rethrow \Throwable uncaught in task
29
+	 */
30
+	public function value() {}
31
+
32
+	/* State */
33
+
34
+	/**
35
+	 * Shall indicate if the task is completed
36
+	 * @return bool
37
+	 */
38
+	public function done(): bool {}
39
+
40
+	/**
41
+	 * Shall indicate if the task was cancelled
42
+	 * @return bool
43
+	 */
44
+	public function cancelled(): bool {}
45
+
46
+	/* Cancellation */
47
+
48
+	/**
49
+	 * Shall try to cancel the task
50
+	 * Note: If task is running, it will be interrupted.
51
+	 * Warning: Internal function calls in progress cannot be interrupted.
52
+	 *
53
+	 * @return bool
54
+	 *
55
+	 * @throws Future\Error\Killed if \parallel\Runtime executing task was killed.
56
+	 * @throws Future\Error\Cancelled if task was already cancelled.
57
+	 */
58
+	public function cancel(): bool {}
59 59
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
12 12
  *
13 13
  * @see https://www.php.net/manual/en/class.parallel-future.php
14 14
  */
15
-final class Future
16
-{
15
+final class Future {
17 16
     /* Resolution */
18 17
 
19 18
     /**
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/parallel/parallel/Runtime.php 2 patches
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -22,96 +22,96 @@
 block discarded – undo
22 22
  */
23 23
 final class Runtime
24 24
 {
25
-    /* Create */
25
+	/* Create */
26 26
 
27
-    /**
28
-     * Shall construct a new runtime without bootstrapping.
29
-     * Shall construct a bootstrapped runtime.
30
-     *
31
-     * @param null|string $bootstrap The location of a bootstrap file, generally an autoloader.
32
-     *
33
-     * @throws Runtime\Error if thread could not be created
34
-     * @throws Runtime\Error\Bootstrap if bootstrapping failed
35
-     */
36
-    public function __construct(?string $bootstrap = null) {}
27
+	/**
28
+	 * Shall construct a new runtime without bootstrapping.
29
+	 * Shall construct a bootstrapped runtime.
30
+	 *
31
+	 * @param null|string $bootstrap The location of a bootstrap file, generally an autoloader.
32
+	 *
33
+	 * @throws Runtime\Error if thread could not be created
34
+	 * @throws Runtime\Error\Bootstrap if bootstrapping failed
35
+	 */
36
+	public function __construct(?string $bootstrap = null) {}
37 37
 
38
-    /* Execute */
38
+	/* Execute */
39 39
 
40
-    /**
41
-     * Shall schedule task for execution in parallel, passing argv at execution time.
42
-     *
43
-     * @param Closure $task    A Closure with specific characteristics.
44
-     * @param null|array $argv An array of arguments with specific characteristics to be passed to task at execution
45
-     *                         time.
46
-     *
47
-     * ### Task Characteristics
48
-     * -----------------------------------------------------------------------------------------------------------------
49
-     * Closures scheduled for parallel execution must not:
50
-     *  - accept or return by reference
51
-     *  - accept or return internal objects (see notes)
52
-     *  - execute a limited set of instructions
53
-     *
54
-     * Instructions prohibited in Closures intended for parallel execution are:
55
-     *  - yield
56
-     *  - use by-reference
57
-     *  - declare class
58
-     *  - declare named function
59
-     *
60
-     * Note: Nested closures may yield or use by-reference, but must not contain class or named function declarations.
61
-     * Note: No instructions are prohibited in the files which the task may include.
62
-     *
63
-     * ### Arguments Characteristics
64
-     * -----------------------------------------------------------------------------------------------------------------
65
-     * Arguments must not:
66
-     *  - contain references
67
-     *  - contain resources
68
-     *  - contain internal objects (see notes)
69
-     *
70
-     * Note: In the case of file stream resources, the resource will be cast to the file descriptor and passed as int
71
-     *     where possible, this is unsupported on Windows
72
-     *
73
-     * ### Internal Objects Notes
74
-     * -----------------------------------------------------------------------------------------------------------------
75
-     * Internal objects generally use a custom structure which cannot be copied by value safely, PHP currently lacks
76
-     *     the mechanics to do this (without serialization) and so only objects that do not use a custom structure may
77
-     *     be shared.
78
-     *
79
-     * Some internal objects do not use a custom structure, for example @see \parallel\Events\Event and so may be
80
-     *     shared. Closures are a special kind of internal object and support being copied by value, and so may be
81
-     *     shared. Channels are central to writing parallel code and support concurrent access and execution by
82
-     *     necessity, and so may be shared.
83
-     *
84
-     * Warning: A user class that extends an internal class may use a custom structure as defined by the internal
85
-     *     class, in which case they cannot be copied by value safely, and so may not be shared.
86
-     *
87
-     * @return Future|null The return Future must not be ignored when the task contains a return or throw
88
-     *     statement.
89
-     *
90
-     * @throws Runtime\Error\Closed if \parallel\Runtime was closed.
91
-     * @throws Runtime\Error\IllegalFunction if task is a closure created from an internal function.
92
-     * @throws Runtime\Error\IllegalInstruction if task contains illegal instructions.
93
-     * @throws Runtime\Error\IllegalParameter if task accepts or argv contains illegal variables.
94
-     * @throws Runtime\Error\IllegalReturn if task returns illegally.
95
-     */
96
-    public function run(Closure $task, ?array $argv = null): ?Future {}
40
+	/**
41
+	 * Shall schedule task for execution in parallel, passing argv at execution time.
42
+	 *
43
+	 * @param Closure $task    A Closure with specific characteristics.
44
+	 * @param null|array $argv An array of arguments with specific characteristics to be passed to task at execution
45
+	 *                         time.
46
+	 *
47
+	 * ### Task Characteristics
48
+	 * -----------------------------------------------------------------------------------------------------------------
49
+	 * Closures scheduled for parallel execution must not:
50
+	 *  - accept or return by reference
51
+	 *  - accept or return internal objects (see notes)
52
+	 *  - execute a limited set of instructions
53
+	 *
54
+	 * Instructions prohibited in Closures intended for parallel execution are:
55
+	 *  - yield
56
+	 *  - use by-reference
57
+	 *  - declare class
58
+	 *  - declare named function
59
+	 *
60
+	 * Note: Nested closures may yield or use by-reference, but must not contain class or named function declarations.
61
+	 * Note: No instructions are prohibited in the files which the task may include.
62
+	 *
63
+	 * ### Arguments Characteristics
64
+	 * -----------------------------------------------------------------------------------------------------------------
65
+	 * Arguments must not:
66
+	 *  - contain references
67
+	 *  - contain resources
68
+	 *  - contain internal objects (see notes)
69
+	 *
70
+	 * Note: In the case of file stream resources, the resource will be cast to the file descriptor and passed as int
71
+	 *     where possible, this is unsupported on Windows
72
+	 *
73
+	 * ### Internal Objects Notes
74
+	 * -----------------------------------------------------------------------------------------------------------------
75
+	 * Internal objects generally use a custom structure which cannot be copied by value safely, PHP currently lacks
76
+	 *     the mechanics to do this (without serialization) and so only objects that do not use a custom structure may
77
+	 *     be shared.
78
+	 *
79
+	 * Some internal objects do not use a custom structure, for example @see \parallel\Events\Event and so may be
80
+	 *     shared. Closures are a special kind of internal object and support being copied by value, and so may be
81
+	 *     shared. Channels are central to writing parallel code and support concurrent access and execution by
82
+	 *     necessity, and so may be shared.
83
+	 *
84
+	 * Warning: A user class that extends an internal class may use a custom structure as defined by the internal
85
+	 *     class, in which case they cannot be copied by value safely, and so may not be shared.
86
+	 *
87
+	 * @return Future|null The return Future must not be ignored when the task contains a return or throw
88
+	 *     statement.
89
+	 *
90
+	 * @throws Runtime\Error\Closed if \parallel\Runtime was closed.
91
+	 * @throws Runtime\Error\IllegalFunction if task is a closure created from an internal function.
92
+	 * @throws Runtime\Error\IllegalInstruction if task contains illegal instructions.
93
+	 * @throws Runtime\Error\IllegalParameter if task accepts or argv contains illegal variables.
94
+	 * @throws Runtime\Error\IllegalReturn if task returns illegally.
95
+	 */
96
+	public function run(Closure $task, ?array $argv = null): ?Future {}
97 97
 
98
-    /* Join */
98
+	/* Join */
99 99
 
100
-    /**
101
-     * Shall request that the runtime shutsdown.
102
-     * Note: Tasks scheduled for execution will be executed before the shutdown occurs.
103
-     *
104
-     * @throws Runtime\Error\Closed if Runtime was already closed.
105
-     */
106
-    public function close(): void {}
100
+	/**
101
+	 * Shall request that the runtime shutsdown.
102
+	 * Note: Tasks scheduled for execution will be executed before the shutdown occurs.
103
+	 *
104
+	 * @throws Runtime\Error\Closed if Runtime was already closed.
105
+	 */
106
+	public function close(): void {}
107 107
 
108
-    /**
109
-     * Shall attempt to force the runtime to shutdown.
110
-     *
111
-     * Note: Tasks scheduled for execution will not be executed, the currently running task shall be interrupted.
112
-     * Warning: Internal function calls in progress cannot be interrupted.
113
-     *
114
-     * @throws Runtime\Error\Closed if Runtime was closed.
115
-     */
116
-    public function kill(): void {}
108
+	/**
109
+	 * Shall attempt to force the runtime to shutdown.
110
+	 *
111
+	 * Note: Tasks scheduled for execution will not be executed, the currently running task shall be interrupted.
112
+	 * Warning: Internal function calls in progress cannot be interrupted.
113
+	 *
114
+	 * @throws Runtime\Error\Closed if Runtime was closed.
115
+	 */
116
+	public function kill(): void {}
117 117
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@
 block discarded – undo
20 20
  * Note: preloading may be used in conjunction with parallel, in this case preloaded code is available without
21 21
  * bootstrapping
22 22
  */
23
-final class Runtime
24
-{
23
+final class Runtime {
25 24
     /* Create */
26 25
 
27 26
     /**
Please login to merge, or discard this patch.