Skip to content

Commit b043ea3

Browse files
Reflection: whitespace cleanup
Avoid tabs or multiple spaces other than for indentation, remove a leading newline from `ReflectionProperty::hasHook()`
1 parent 7914410 commit b043ea3

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

ext/reflection/php_reflection.c

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ typedef struct {
176176

177177
#define reflection_object_from_obj(obj) ZEND_CONTAINER_OF(obj, reflection_object, zo)
178178

179-
#define Z_REFLECTION_P(zv) reflection_object_from_obj(Z_OBJ_P((zv)))
179+
#define Z_REFLECTION_P(zv) reflection_object_from_obj(Z_OBJ_P((zv)))
180180
/* }}} */
181181

182182
static zend_object_handlers reflection_object_handlers;
@@ -493,7 +493,7 @@ static void _class_string(smart_str *str, zend_class_entry *ce, zval *obj, const
493493
smart_str_append_printf(str, "%s }\n", indent);
494494

495495
if (obj && Z_TYPE_P(obj) == IS_OBJECT) {
496-
HashTable *properties = zend_get_properties_no_lazy_init(Z_OBJ_P(obj));
496+
HashTable *properties = zend_get_properties_no_lazy_init(Z_OBJ_P(obj));
497497
smart_str prop_str = {0};
498498

499499
count = 0;
@@ -1861,7 +1861,7 @@ ZEND_METHOD(ReflectionFunctionAbstract, getClosureUsedVariables)
18611861
opline++;
18621862
}
18631863

1864-
for (; opline->opcode == ZEND_BIND_STATIC; opline++) {
1864+
for (; opline->opcode == ZEND_BIND_STATIC; opline++) {
18651865
if (!(opline->extended_value & (ZEND_BIND_IMPLICIT|ZEND_BIND_EXPLICIT))) {
18661866
continue;
18671867
}
@@ -3317,7 +3317,7 @@ ZEND_METHOD(ReflectionMethod, getClosure)
33173317

33183318
GET_REFLECTION_OBJECT_PTR(mptr);
33193319

3320-
if (mptr->common.fn_flags & ZEND_ACC_STATIC) {
3320+
if (mptr->common.fn_flags & ZEND_ACC_STATIC) {
33213321
zend_create_fake_closure(return_value, mptr, mptr->common.scope, mptr->common.scope, NULL);
33223322
return;
33233323
}
@@ -4190,7 +4190,7 @@ ZEND_METHOD(ReflectionClass, setStaticPropertyValue)
41904190
const zend_class_entry *old_scope = EG(fake_scope);
41914191
EG(fake_scope) = ce;
41924192
zend_property_info *prop_info;
4193-
zval *variable_ptr = zend_std_get_static_property_with_info(ce, name, BP_VAR_W, &prop_info);
4193+
zval *variable_ptr = zend_std_get_static_property_with_info(ce, name, BP_VAR_W, &prop_info);
41944194
EG(fake_scope) = old_scope;
41954195
if (!variable_ptr) {
41964196
zend_clear_exception();
@@ -4615,7 +4615,7 @@ static void _addproperty(zend_property_info *pptr, zend_string *key, zend_class_
46154615
return;
46164616
}
46174617

4618-
if (pptr->flags & filter) {
4618+
if (pptr->flags & filter) {
46194619
zval property;
46204620
reflection_property_factory(ce, key, pptr, &property);
46214621
zend_hash_next_index_insert_new(ht, &property);
@@ -6499,7 +6499,6 @@ ZEND_METHOD(ReflectionProperty, getHooks)
64996499

65006500
ZEND_METHOD(ReflectionProperty, hasHook)
65016501
{
6502-
65036502
const reflection_object *intern;
65046503
const property_reference *ref;
65056504
zend_enum_PropertyHookType type;

0 commit comments

Comments
 (0)