Skip to content

Commit f696867

Browse files
committed
Fixed tab-based indentation
1 parent 34d944a commit f696867

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

v8js_object_export.cc

+9-9
Original file line numberDiff line numberDiff line change
@@ -1008,14 +1008,14 @@ static v8::MaybeLocal<v8::Object> v8js_wrap_object(v8::Isolate *isolate, zend_cl
10081008
v8::MaybeLocal<v8::Object> newobj = constr->NewInstance(v8_context, 1, &external);
10091009

10101010
bool has_json_serializable = false;
1011-
for (unsigned int i = 0; i < ce->num_interfaces; i ++) {
1012-
if (strcmp (ZSTR_VAL(ce->interfaces[i]->name), "JsonSerializable") == 0) {
1013-
has_json_serializable = true;
1014-
break;
1015-
}
1016-
}
1017-
1018-
if (has_json_serializable) {
1011+
for (unsigned int i = 0; i < ce->num_interfaces; i ++) {
1012+
if (strcmp (ZSTR_VAL(ce->interfaces[i]->name), "JsonSerializable") == 0) {
1013+
has_json_serializable = true;
1014+
break;
1015+
}
1016+
}
1017+
1018+
if (has_json_serializable) {
10191019
zend_string *jsonserialize_str = zend_string_init
10201020
("jsonSerialize", sizeof("jsonSerialize") - 1, 0);
10211021
zend_function *jsonserialize_method_ptr = reinterpret_cast<zend_function *>
@@ -1033,7 +1033,7 @@ static v8::MaybeLocal<v8::Object> v8js_wrap_object(v8::Isolate *isolate, zend_cl
10331033

10341034
newobj.ToLocalChecked()->CreateDataProperty(v8_context, method_name, ft->GetFunction(v8_context).ToLocalChecked());
10351035
}
1036-
}
1036+
}
10371037

10381038
if (ce == zend_ce_closure && !newobj.IsEmpty()) {
10391039
// free uncached function template when object is freed

0 commit comments

Comments
 (0)