Skip to content

Commit 8473157

Browse files
committed
Fixed typo and white spaces
1 parent 96de5ff commit 8473157

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

Zend/tests/assert/expect_015.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ assert(0 && ($a = function &(array &$a, X $b = null) use ($c,&$d) : X {
2727
public $a = 1, $b;
2828
protected $c;
2929
static private $d = null;
30-
30+
3131
abstract function foo();
3232

3333
static private function f1() {

Zend/zend_ast.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -450,13 +450,13 @@ ZEND_API void zend_ast_apply(zend_ast *ast, zend_ast_apply_func fn) {
450450
* ====================
451451
* proirity associativity operatiers
452452
* -----------------------------------
453-
* 10 left inclue, include_once, eval, require, require_once
453+
* 10 left include, include_once, eval, require, require_once
454454
* 20 left ,
455455
* 30 left or
456456
* 40 left xor
457457
* 50 left and
458458
* 60 right print
459-
* 70 right yield
459+
* 70 right yield
460460
* 80 right =>
461461
* 90 right = += -= *= /= .= %= &= |= ^= <<= >>= **=
462462
* 100 left ? :
@@ -506,30 +506,30 @@ static void zend_ast_export_dstr(smart_str *str, zend_string *s)
506506
switch (c) {
507507
case '\n':
508508
smart_str_appends(str, "\\n");
509-
break;
509+
break;
510510
case '\r':
511511
smart_str_appends(str, "\\r");
512-
break;
512+
break;
513513
case '\t':
514514
smart_str_appends(str, "\\t");
515-
break;
515+
break;
516516
case '\f':
517517
smart_str_appends(str, "\\f");
518-
break;
518+
break;
519519
case '\v':
520520
smart_str_appends(str, "\\v");
521-
break;
521+
break;
522522
#ifdef PHP_WIN32
523523
case VK_ESCAPE:
524524
#else
525525
case '\e':
526526
#endif
527527
smart_str_appends(str, "\\e");
528-
break;
528+
break;
529529
default:
530530
smart_str_appends(str, "\\0");
531531
smart_str_appendc(str, '0' + (c / 8));
532-
smart_str_appendc(str, '0' + (c % 8));
532+
smart_str_appendc(str, '0' + (c % 8));
533533
break;
534534
}
535535
} else {
@@ -553,7 +553,7 @@ static void zend_ast_export_name(smart_str *str, zend_ast *ast, int priority, in
553553
{
554554
if (ast->kind == ZEND_AST_ZVAL) {
555555
zval *zv = zend_ast_get_zval(ast);
556-
556+
557557
if (Z_TYPE_P(zv) == IS_STRING) {
558558
smart_str_appendl(str, Z_STRVAL_P(zv), Z_STRLEN_P(zv));
559559
return;
@@ -601,7 +601,7 @@ static void zend_ast_export_encaps_list(smart_str *str, zend_ast_list *list, int
601601
ast = list->child[i];
602602
if (ast->kind == ZEND_AST_ZVAL) {
603603
zval *zv = zend_ast_get_zval(ast);
604-
604+
605605
if (Z_TYPE_P(zv) == IS_STRING) {
606606
zend_ast_export_dstr(str, Z_STR_P(zv));
607607
} else {
@@ -642,7 +642,7 @@ static void zend_ast_export_var_list(smart_str *str, zend_ast_list *list, int in
642642
if (list->child[i]->attr) {
643643
smart_str_appendc(str, '&');
644644
}
645-
smart_str_appendc(str, '$');
645+
smart_str_appendc(str, '$');
646646
zend_ast_export_name(str, list->child[i], 20, indent);
647647
i++;
648648
}
@@ -687,7 +687,7 @@ static void zend_ast_export_stmt(smart_str *str, zend_ast *ast, int indent)
687687

688688
static void zend_ast_export_zval(smart_str *str, zval *zv, int priority, int indent)
689689
{
690-
zend_long idx;
690+
zend_long idx;
691691
zend_string *key;
692692
zval *val;
693693
int first;
@@ -745,7 +745,7 @@ static void zend_ast_export_zval(smart_str *str, zval *zv, int priority, int ind
745745
break;
746746
default:
747747
ZEND_ASSERT(0);
748-
}
748+
}
749749
}
750750

751751
#define BINARY_OP(_op, _p, _pl, _pr) do { \
@@ -1071,7 +1071,7 @@ static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int
10711071
APPEND_NODE_1("continue");
10721072

10731073
/* 2 child nodes */
1074-
case ZEND_AST_DIM:
1074+
case ZEND_AST_DIM:
10751075
zend_ast_export_ex(str, ast->child[0], 260, indent);
10761076
smart_str_appendc(str, '[');
10771077
if (ast->child[1]) {
@@ -1231,7 +1231,7 @@ static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int
12311231
smart_str_appends(str, "default:\n");
12321232
}
12331233
zend_ast_export_stmt(str, ast->child[1], indent + 1);
1234-
break;
1234+
break;
12351235
case ZEND_AST_DECLARE:
12361236
smart_str_appends(str, "declare(");
12371237
if (ast->child[0]->kind == ZEND_AST_CONST_DECL) {
@@ -1251,7 +1251,7 @@ static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int
12511251
zend_ast_export_name(str, ast->child[0], 0, indent);
12521252
APPEND_DEFAULT_VALUE(1);
12531253
case ZEND_AST_USE_TRAIT:
1254-
smart_str_appends(str, "use ");
1254+
smart_str_appends(str, "use ");
12551255
zend_ast_export_ex(str, ast->child[0], 0, indent);
12561256
if (ast->child[1]) {
12571257
smart_str_appends(str, " {\n");
@@ -1385,7 +1385,7 @@ static void zend_ast_export_ex(smart_str *str, zend_ast *ast, int priority, int
13851385
zend_ast_export_stmt(str, ast->child[3], indent + 1);
13861386
zend_ast_export_indent(str, indent);
13871387
smart_str_appendc(str, '}');
1388-
break;
1388+
break;
13891389
default:
13901390
ZEND_ASSERT(0);
13911391
}

0 commit comments

Comments
 (0)