Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 12ccf72

Browse files
committed
Reformat stubs [skip ci]
1 parent f4e652a commit 12ccf72

34 files changed

+220
-215
lines changed

stubs/src/AdjustableExternalMemoryInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ interface AdjustableExternalMemoryInterface
4444
*
4545
* NOTE: returned adjusted value can't be less then zero.
4646
*/
47-
public function AdjustExternalAllocatedMemory(int $change_in_bytes) : int;
47+
public function AdjustExternalAllocatedMemory(int $change_in_bytes): int;
4848

4949
/**
5050
* Get external allocated memory hint value.
5151
*
5252
* @return int
5353
*/
54-
public function GetExternalAllocatedMemory() : int;
54+
public function GetExternalAllocatedMemory(): int;
5555
}

stubs/src/ArrayObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(Context $context, int $length = 0)
3636
/**
3737
* @return int
3838
*/
39-
public function Length() : int
39+
public function Length(): int
4040
{
4141
}
4242
}

stubs/src/BooleanObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Context $context, bool $value)
3333
/**
3434
* @return bool
3535
*/
36-
public function ValueOf() : bool
36+
public function ValueOf(): bool
3737
{
3838
}
3939
}

stubs/src/BooleanValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Isolate $isolate, bool $value)
3333
/**
3434
* @return bool
3535
*/
36-
public function Value() : bool
36+
public function Value(): bool
3737
{
3838
}
3939
}

stubs/src/CallbackInfo.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,35 @@ class CallbackInfo
2020
/**
2121
* @return \V8\Isolate
2222
*/
23-
public function GetIsolate() : Isolate
23+
public function GetIsolate(): Isolate
2424
{
2525
}
2626

2727
/**
2828
* @return \V8\Context
2929
*/
30-
public function GetContext() : Context
30+
public function GetContext(): Context
3131
{
3232
}
3333

3434
/**
3535
* @return \V8\ObjectValue
3636
*/
37-
public function This() : ObjectValue
37+
public function This(): ObjectValue
3838
{
3939
}
4040

4141
/**
4242
* @return \V8\ObjectValue
4343
*/
44-
public function Holder() : ObjectValue
44+
public function Holder(): ObjectValue
4545
{
4646
}
4747

4848
/**
4949
* @return \V8\ReturnValue
5050
*/
51-
public function GetReturnValue() : ReturnValue
51+
public function GetReturnValue(): ReturnValue
5252
{
5353
}
5454
}

stubs/src/DateObject.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(Context $context, double $value)
3333
/**
3434
* @return double
3535
*/
36-
public function ValueOf() : double
36+
public function ValueOf(): double
3737
{
3838
}
3939

@@ -51,5 +51,7 @@ public function ValueOf() : double
5151
*
5252
* @param \V8\Isolate $isolate
5353
*/
54-
public static function DateTimeConfigurationChangeNotification(Isolate $isolate){}
54+
public static function DateTimeConfigurationChangeNotification(Isolate $isolate)
55+
{
56+
}
5557
}

stubs/src/Exception.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Exception
2828
*
2929
* @return Value
3030
*/
31-
public static function RangeError(Context $context, StringValue $message) : Value
31+
public static function RangeError(Context $context, StringValue $message): Value
3232
{
3333
}
3434

@@ -38,7 +38,7 @@ public static function RangeError(Context $context, StringValue $message) : Valu
3838
*
3939
* @return Value
4040
*/
41-
public static function ReferenceError(Context $context, StringValue $message) : Value
41+
public static function ReferenceError(Context $context, StringValue $message): Value
4242
{
4343
}
4444

@@ -48,7 +48,7 @@ public static function ReferenceError(Context $context, StringValue $message) :
4848
*
4949
* @return Value
5050
*/
51-
public static function SyntaxError(Context $context, StringValue $message) : Value
51+
public static function SyntaxError(Context $context, StringValue $message): Value
5252
{
5353
}
5454

@@ -58,7 +58,7 @@ public static function SyntaxError(Context $context, StringValue $message) : Val
5858
*
5959
* @return Value
6060
*/
61-
public static function TypeError(Context $context, StringValue $message) : Value
61+
public static function TypeError(Context $context, StringValue $message): Value
6262
{
6363
}
6464

@@ -68,7 +68,7 @@ public static function TypeError(Context $context, StringValue $message) : Value
6868
*
6969
* @return Value
7070
*/
71-
public static function Error(Context $context, StringValue $message) : Value
71+
public static function Error(Context $context, StringValue $message): Value
7272
{
7373
}
7474

@@ -82,7 +82,7 @@ public static function Error(Context $context, StringValue $message) : Value
8282
*
8383
* @return Message
8484
*/
85-
static function CreateMessage(Context $context, Value $exception) : Message
85+
static function CreateMessage(Context $context, Value $exception): Message
8686
{
8787
}
8888

stubs/src/Exceptions/TryCatchException.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,31 @@ class TryCatchException extends Exception
3737

3838
public function __construct(Isolate $isolate, Context $context, TryCatch $try_catch)
3939
{
40-
$this->isolate = $isolate;
41-
$this->context = $context;
40+
$this->isolate = $isolate;
41+
$this->context = $context;
4242
$this->try_catch = $try_catch;
4343
}
4444

4545
/**
4646
* @return Isolate
4747
*/
48-
public function GetIsolate() : Isolate
48+
public function GetIsolate(): Isolate
4949
{
5050
return $this->isolate;
5151
}
5252

5353
/**
5454
* @return Context
5555
*/
56-
public function GetContext() : Context
56+
public function GetContext(): Context
5757
{
5858
return $this->context;
5959
}
6060

6161
/**
6262
* @return TryCatch
6363
*/
64-
public function GetTryCatch() : TryCatch
64+
public function GetTryCatch(): TryCatch
6565
{
6666
return $this->try_catch;
6767
}

stubs/src/FunctionCallbackInfo.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ class FunctionCallbackInfo extends CallbackInfo
2727
/**
2828
* @return int
2929
*/
30-
public function Length() : int
30+
public function Length(): int
3131
{
3232
}
3333

3434
/**
3535
* @return Value[] | StringValue[] | SymbolValue[] | NumberValue[] | ObjectValue[] | ArrayObject[] | FunctionObject[] | StringObject[] | SymbolObject[]
3636
*/
37-
public function Arguments() : array
37+
public function Arguments(): array
3838
{
3939
}
4040

41-
public function NewTarget() : Value
41+
public function NewTarget(): Value
4242
{
4343
}
4444

4545
/**
4646
* @return bool
4747
*/
48-
public function IsConstructCall() : bool
48+
public function IsConstructCall(): bool
4949
{
5050
}
5151
}

stubs/src/FunctionObject.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(Context $context, callable $callback, int $length =
4040
*
4141
* @return \V8\ObjectValue
4242
*/
43-
public function NewInstance(Context $context, array $arguments = []) : ObjectValue
43+
public function NewInstance(Context $context, array $arguments = []): ObjectValue
4444
{
4545
}
4646

@@ -51,7 +51,7 @@ public function NewInstance(Context $context, array $arguments = []) : ObjectVal
5151
*
5252
* @return \V8\Value
5353
*/
54-
public function Call(Context $context, Value $recv, array $arguments = []) : Value
54+
public function Call(Context $context, Value $recv, array $arguments = []): Value
5555
{
5656
}
5757

@@ -65,7 +65,7 @@ public function SetName(StringValue $name)
6565
/**
6666
* @return \V8\Value | StringValue
6767
*/
68-
public function GetName() : Value
68+
public function GetName(): Value
6969
{
7070
}
7171

@@ -77,7 +77,7 @@ public function GetName() : Value
7777
*
7878
* @return \V8\Value | StringValue
7979
*/
80-
public function GetInferredName() : Value
80+
public function GetInferredName(): Value
8181
{
8282
}
8383

@@ -87,7 +87,7 @@ public function GetInferredName() : Value
8787
*
8888
* @return \V8\Value | StringValue
8989
*/
90-
public function GetDisplayName() : Value
90+
public function GetDisplayName(): Value
9191
{
9292
}
9393

@@ -126,14 +126,14 @@ public function GetScriptColumnNumber()
126126
*
127127
* @return Value
128128
*/
129-
public function GetBoundFunction() : Value
129+
public function GetBoundFunction(): Value
130130
{
131131
}
132132

133133
/**
134134
* @return ScriptOrigin
135135
*/
136-
public function GetScriptOrigin() : ScriptOrigin
136+
public function GetScriptOrigin(): ScriptOrigin
137137
{
138138
}
139139
}

0 commit comments

Comments
 (0)