├── tests ├── f.php ├── three.php ├── test4.php ├── test5.php ├── func_define2.php ├── func_define.php ├── test1.php ├── for_test.php ├── optimize.php ├── function_call.php ├── test3.php ├── vul_test.php ├── vul_test3.php ├── vul_test4.php ├── vul_test2.php ├── class_1.php ├── func_define_namespace.php ├── switch_test.php ├── func_graph.php ├── test2.php ├── for_switch.php └── func_graph_2.php ├── vendor ├── bin │ └── php-parse ├── smarty │ └── smarty │ │ ├── demo │ │ ├── templates │ │ │ ├── footer.tpl │ │ │ └── header.tpl │ │ └── configs │ │ │ └── test.conf │ │ ├── error_reporting.ini │ │ ├── libs │ │ ├── sysplugins │ │ │ ├── smartyexception.php │ │ │ ├── smarty_internal_compile_continue.php │ │ │ ├── smarty_internal_compile_block_child.php │ │ │ ├── smarty_internal_compile_parent.php │ │ │ ├── smarty_undefined_variable.php │ │ │ ├── smarty_internal_compile_block_parent.php │ │ │ ├── smarty_internal_method_getdebugtemplate.php │ │ │ ├── smarty_internal_method_getdefaultmodifiers.php │ │ │ ├── smarty_internal_method_clearallassign.php │ │ │ ├── smartycompilerexception.php │ │ │ ├── smarty_internal_parsetree_text.php │ │ │ └── smarty_internal_compile_rdelim.php │ │ ├── plugins │ │ │ ├── modifiercompiler.noprint.php │ │ │ ├── variablefilter.htmlspecialchars.php │ │ │ ├── modifiercompiler.string_format.php │ │ │ ├── modifiercompiler.cat.php │ │ │ ├── modifiercompiler.count_paragraphs.php │ │ │ ├── modifiercompiler.upper.php │ │ │ ├── modifiercompiler.indent.php │ │ │ ├── modifiercompiler.strip_tags.php │ │ │ ├── modifiercompiler.lower.php │ │ │ ├── modifier.spacify.php │ │ │ ├── modifiercompiler.count_sentences.php │ │ │ ├── modifiercompiler.to_charset.php │ │ │ ├── modifiercompiler.from_charset.php │ │ │ ├── modifiercompiler.default.php │ │ │ ├── modifiercompiler.strip.php │ │ │ └── modifiercompiler.count_characters.php │ │ └── bootstrap.php │ │ └── SMARTY_3.0_BC_NOTES.txt ├── nikic │ └── php-parser │ │ ├── test │ │ ├── code │ │ │ ├── prettyPrinter │ │ │ │ ├── stmt │ │ │ │ │ ├── throw.test │ │ │ │ │ ├── goto.test │ │ │ │ │ ├── while.test │ │ │ │ │ ├── do_while.test │ │ │ │ │ ├── break_continue.test │ │ │ │ │ ├── if.test │ │ │ │ │ ├── const.test │ │ │ │ │ ├── nullable_types.test │ │ │ │ │ ├── global_static_variables.test │ │ │ │ │ ├── declare.test │ │ │ │ │ ├── multiCatch.test │ │ │ │ │ ├── tryCatch.test │ │ │ │ │ ├── haltCompiler.file-test │ │ │ │ │ ├── groupUse.test │ │ │ │ │ ├── properties.test │ │ │ │ │ ├── for.test │ │ │ │ │ ├── alias.test │ │ │ │ │ ├── class_const.test │ │ │ │ │ ├── foreach.test │ │ │ │ │ ├── traitUse.test │ │ │ │ │ ├── namespaces.test │ │ │ │ │ ├── switch.test │ │ │ │ │ └── class.test │ │ │ │ ├── expr │ │ │ │ │ ├── include.test │ │ │ │ │ ├── arraySpread.test │ │ │ │ │ ├── call.test │ │ │ │ │ ├── shortArraySyntax.test │ │ │ │ │ ├── constant_deref.test │ │ │ │ │ ├── arrayDestructuring.test │ │ │ │ │ ├── arrow_function.test │ │ │ │ │ ├── numbers.test │ │ │ │ │ ├── uvs.test │ │ │ │ │ ├── list.test │ │ │ │ │ ├── intrinsics.test │ │ │ │ │ ├── closure.test │ │ │ │ │ ├── anonymousClass.test │ │ │ │ │ ├── stringEscaping.test │ │ │ │ │ ├── yield.test │ │ │ │ │ └── docStrings.test │ │ │ │ ├── nestedInlineHTML.test │ │ │ │ ├── onlyPHP.file-test │ │ │ │ ├── onlyInlineHTML.file-test │ │ │ │ ├── inlineHTMLandPHPtest.file-test │ │ │ │ └── commentsInCommaList.test │ │ │ ├── parser │ │ │ │ ├── stmt │ │ │ │ │ ├── haltCompilerInvalidSyntax.test │ │ │ │ │ ├── haltCompilerOutermostScope.test │ │ │ │ │ ├── loop │ │ │ │ │ │ ├── do.test │ │ │ │ │ │ └── while.test │ │ │ │ │ ├── class │ │ │ │ │ │ ├── final.test │ │ │ │ │ │ ├── conditional.test │ │ │ │ │ │ └── interface.test │ │ │ │ │ ├── namespace │ │ │ │ │ │ ├── nsAfterHashbang.test │ │ │ │ │ │ ├── commentAfterNamespace.test │ │ │ │ │ │ ├── nested.test │ │ │ │ │ │ └── groupUsePositions.test │ │ │ │ │ ├── hashbang.test │ │ │ │ │ ├── unset.test │ │ │ │ │ ├── inlineHTML.test │ │ │ │ │ ├── echo.test │ │ │ │ │ ├── tryWithoutCatch.test │ │ │ │ │ ├── function │ │ │ │ │ │ ├── conditional.test │ │ │ │ │ │ └── variadicDefaultValue.test │ │ │ │ │ ├── haltCompilerOffset.test │ │ │ │ │ └── controlFlow.test │ │ │ │ ├── expr │ │ │ │ │ ├── print.test │ │ │ │ │ ├── clone.test │ │ │ │ │ ├── errorSuppress.test │ │ │ │ │ ├── newWithoutClass.test │ │ │ │ │ ├── uvs │ │ │ │ │ │ └── globalNonSimpleVarError.test │ │ │ │ │ ├── exit.test │ │ │ │ │ ├── assignNewByRef.test │ │ │ │ │ └── fetchAndCall │ │ │ │ │ │ └── constFetch.test │ │ │ │ ├── nopPositions.test │ │ │ │ ├── scalar │ │ │ │ │ ├── invalidOctal.test │ │ │ │ │ ├── unicodeEscape.test │ │ │ │ │ └── magicConst.test │ │ │ │ ├── blockComments.test │ │ │ │ ├── errorHandling │ │ │ │ │ └── eofError.test │ │ │ │ └── commentAtEndOfClass.test │ │ │ └── formatPreservation │ │ │ │ ├── nopCommentAtEnd.test │ │ │ │ ├── traitAlias.test │ │ │ │ ├── removingPropertyType.test │ │ │ │ ├── listInsertionIndentation.test │ │ │ │ ├── blockConversion.test │ │ │ │ ├── anonClasses.test │ │ │ │ ├── array_spread.test │ │ │ │ ├── addingPropertyType.test │ │ │ │ ├── modifierChange.test │ │ │ │ ├── listRemoval.test │ │ │ │ ├── inlineHtml.test │ │ │ │ └── comments.test │ │ ├── PhpParser │ │ │ ├── Parser │ │ │ │ ├── Php5Test.php │ │ │ │ └── Php7Test.php │ │ │ ├── ErrorHandler │ │ │ │ ├── ThrowingTest.php │ │ │ │ └── CollectingTest.php │ │ │ ├── Node │ │ │ │ ├── Scalar │ │ │ │ │ └── MagicConstTest.php │ │ │ │ ├── IdentifierTest.php │ │ │ │ └── Stmt │ │ │ │ │ └── ClassConstTest.php │ │ │ └── CodeTestAbstract.php │ │ └── bootstrap.php │ │ ├── .gitignore │ │ ├── lib │ │ └── PhpParser │ │ │ ├── ConstExprEvaluationException.php │ │ │ ├── Node │ │ │ ├── Scalar.php │ │ │ ├── Expr.php │ │ │ ├── Stmt.php │ │ │ ├── Expr │ │ │ │ ├── Cast │ │ │ │ │ ├── Bool_.php │ │ │ │ │ ├── Int_.php │ │ │ │ │ ├── Array_.php │ │ │ │ │ ├── Object_.php │ │ │ │ │ ├── String_.php │ │ │ │ │ ├── Unset_.php │ │ │ │ │ └── Double.php │ │ │ │ ├── AssignOp │ │ │ │ │ ├── Div.php │ │ │ │ │ ├── Mod.php │ │ │ │ │ ├── Mul.php │ │ │ │ │ ├── Pow.php │ │ │ │ │ ├── Minus.php │ │ │ │ │ ├── Plus.php │ │ │ │ │ ├── Concat.php │ │ │ │ │ ├── Coalesce.php │ │ │ │ │ ├── BitwiseAnd.php │ │ │ │ │ ├── BitwiseOr.php │ │ │ │ │ ├── BitwiseXor.php │ │ │ │ │ ├── ShiftLeft.php │ │ │ │ │ └── ShiftRight.php │ │ │ │ ├── BinaryOp │ │ │ │ │ ├── Div.php │ │ │ │ │ ├── Mod.php │ │ │ │ │ ├── Mul.php │ │ │ │ │ ├── Plus.php │ │ │ │ │ ├── Pow.php │ │ │ │ │ ├── Concat.php │ │ │ │ │ ├── Equal.php │ │ │ │ │ ├── Minus.php │ │ │ │ │ ├── Greater.php │ │ │ │ │ ├── Smaller.php │ │ │ │ │ ├── BitwiseOr.php │ │ │ │ │ ├── BooleanOr.php │ │ │ │ │ ├── Coalesce.php │ │ │ │ │ ├── Identical.php │ │ │ │ │ ├── LogicalOr.php │ │ │ │ │ ├── NotEqual.php │ │ │ │ │ ├── ShiftLeft.php │ │ │ │ │ ├── Spaceship.php │ │ │ │ │ ├── BitwiseAnd.php │ │ │ │ │ ├── BitwiseXor.php │ │ │ │ │ ├── BooleanAnd.php │ │ │ │ │ ├── LogicalAnd.php │ │ │ │ │ ├── LogicalXor.php │ │ │ │ │ ├── ShiftRight.php │ │ │ │ │ ├── NotIdentical.php │ │ │ │ │ ├── GreaterOrEqual.php │ │ │ │ │ └── SmallerOrEqual.php │ │ │ │ ├── Cast.php │ │ │ │ ├── Eval_.php │ │ │ │ ├── PreDec.php │ │ │ │ ├── Clone_.php │ │ │ │ ├── Empty_.php │ │ │ │ ├── Isset_.php │ │ │ │ ├── PostDec.php │ │ │ │ ├── PostInc.php │ │ │ │ ├── PreInc.php │ │ │ │ ├── Print_.php │ │ │ │ ├── BitwiseNot.php │ │ │ │ ├── UnaryMinus.php │ │ │ │ ├── UnaryPlus.php │ │ │ │ ├── Variable.php │ │ │ │ ├── BooleanNot.php │ │ │ │ ├── ErrorSuppress.php │ │ │ │ ├── YieldFrom.php │ │ │ │ ├── ConstFetch.php │ │ │ │ ├── ShellExec.php │ │ │ │ ├── AssignOp.php │ │ │ │ ├── List_.php │ │ │ │ ├── Error.php │ │ │ │ ├── Exit_.php │ │ │ │ ├── Assign.php │ │ │ │ ├── Array_.php │ │ │ │ ├── AssignRef.php │ │ │ │ ├── ArrayDimFetch.php │ │ │ │ ├── Yield_.php │ │ │ │ ├── Instanceof_.php │ │ │ │ ├── FuncCall.php │ │ │ │ └── ClosureUse.php │ │ │ ├── Stmt │ │ │ │ ├── TraitUseAdaptation.php │ │ │ │ ├── Nop.php │ │ │ │ ├── Throw_.php │ │ │ │ ├── Echo_.php │ │ │ │ ├── InlineHTML.php │ │ │ │ ├── Else_.php │ │ │ │ ├── Finally_.php │ │ │ │ ├── Unset_.php │ │ │ │ ├── Return_.php │ │ │ │ ├── Global_.php │ │ │ │ ├── Static_.php │ │ │ │ ├── Break_.php │ │ │ │ ├── Const_.php │ │ │ │ ├── Continue_.php │ │ │ │ ├── Label.php │ │ │ │ ├── Expression.php │ │ │ │ ├── Goto_.php │ │ │ │ ├── HaltCompiler.php │ │ │ │ ├── Switch_.php │ │ │ │ ├── Do_.php │ │ │ │ ├── While_.php │ │ │ │ ├── ElseIf_.php │ │ │ │ ├── Trait_.php │ │ │ │ ├── Case_.php │ │ │ │ ├── Declare_.php │ │ │ │ ├── TraitUse.php │ │ │ │ ├── DeclareDeclare.php │ │ │ │ └── StaticVar.php │ │ │ ├── Scalar │ │ │ │ ├── MagicConst │ │ │ │ │ ├── Dir.php │ │ │ │ │ ├── File.php │ │ │ │ │ ├── Line.php │ │ │ │ │ ├── Class_.php │ │ │ │ │ ├── Trait_.php │ │ │ │ │ ├── Method.php │ │ │ │ │ ├── Function_.php │ │ │ │ │ └── Namespace_.php │ │ │ │ ├── MagicConst.php │ │ │ │ ├── Encapsed.php │ │ │ │ └── EncapsedStringPart.php │ │ │ ├── VarLikeIdentifier.php │ │ │ ├── FunctionLike.php │ │ │ └── NullableType.php │ │ │ ├── Comment │ │ │ └── Doc.php │ │ │ ├── Builder.php │ │ │ ├── ErrorHandler.php │ │ │ ├── Lexer │ │ │ └── TokenEmulator │ │ │ │ └── TokenEmulatorInterface.php │ │ │ ├── ErrorHandler │ │ │ └── Throwing.php │ │ │ ├── NodeVisitorAbstract.php │ │ │ ├── NodeVisitor │ │ │ └── CloningVisitor.php │ │ │ ├── Internal │ │ │ └── DiffElem.php │ │ │ ├── Parser.php │ │ │ └── NodeTraverserInterface.php │ │ ├── test_old │ │ └── run-php-src.sh │ │ ├── grammar │ │ └── tokens.template │ │ ├── phpunit.xml.dist │ │ ├── composer.json │ │ └── .travis.yml ├── autoload.php └── composer │ ├── autoload_classmap.php │ ├── autoload_namespaces.php │ ├── autoload_psr4.php │ └── autoload_files.php ├── dump.rdb ├── .idea ├── dictionaries │ └── meizj.xml ├── vcs.xml ├── phpRuntime.xml ├── modules.xml └── php.xml ├── composer.json ├── views └── result.html ├── table ├── global_var.php ├── class_table.php └── func_table.php ├── README.md ├── block ├── Sink.php ├── BasicBlock.php ├── Analysis.php └── Graph.php ├── visitor.php ├── index.php └── global.php /tests/f.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/error_reporting.ini: -------------------------------------------------------------------------------- 1 | error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT -------------------------------------------------------------------------------- /tests/test5.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/func_define.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | {$title} - {$Name} 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/for_test.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/expr/arraySpread.test: -------------------------------------------------------------------------------- 1 | Array spread 2 | ----- 3 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /table/global_var.php: -------------------------------------------------------------------------------- 1 | 'b', 'c' => 'd']; 8 | ----- 9 | []; 10 | array(1, 2, 3); 11 | ['a' => 'b', 'c' => 'd']; -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/stmt/if.test: -------------------------------------------------------------------------------- 1 | if/elseif/else 2 | ----- 3 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tests/vul_test2.php: -------------------------------------------------------------------------------- 1 | 7 | Test 8 | 14 | Test 15 | array($vendorDir . '/nikic/php-parser/lib/PhpParser'), 10 | ); 11 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/expr/print.test: -------------------------------------------------------------------------------- 1 | Print 2 | ----- 3 | rce($a); -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/formatPreservation/nopCommentAtEnd.test: -------------------------------------------------------------------------------- 1 | Nop statement with comment at end (#513) 2 | ----- 3 | [new Comment('//Some comment here')]]); 8 | ----- 9 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/smarty/smarty/libs/bootstrap.php', 10 | ); 11 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/expr/errorSuppress.test: -------------------------------------------------------------------------------- 1 | Error suppression 2 | ----- 3 | stmts[0]->type = null; 14 | ----- 15 | 本地环境: 14 | > 15 | > php7.1.8 16 | > 17 | > Mac OSX 10.14 18 | 19 | 进入到项目主目录,运行 20 | 21 | > php -S 0.0.0.0:9095 22 | 23 | 通过浏览器访问`http://0.0.0.0:9095`即可访问 24 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp/Concat.php: -------------------------------------------------------------------------------- 1 | $b, 'b' => $a] = $baz; 9 | ----- 10 | !!php7 11 | [$a, $b] = [$c, $d]; 12 | [, $a, , , $b, ] = $foo; 13 | [, [[$a]], $b] = $bar; 14 | ['a' => $b, 'b' => $a] = $baz; -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation.php: -------------------------------------------------------------------------------- 1 | command = $command; 15 | } 16 | 17 | public function exec(){ 18 | system($this->command); 19 | } 20 | } 21 | 22 | $a = new test($_GET['a']); -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/stmt/haltCompiler.file-test: -------------------------------------------------------------------------------- 1 | __halt_compiler 2 | ----- 3 | semValue 4 | #semval($,%t) $this->semValue 5 | #semval(%n) $this->stackPos-(%l-%n) 6 | #semval(%n,%t) $this->stackPos-(%l-%n) 7 | 8 | namespace PhpParser\Parser; 9 | #include; 10 | 11 | /* GENERATED file based on grammar/tokens.y */ 12 | final class Tokens 13 | { 14 | #tokenval 15 | const %s = %n; 16 | #endtokenval 17 | } 18 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/expr/arrow_function.test: -------------------------------------------------------------------------------- 1 | Arrow function 2 | ----- 3 | $a; 6 | fn($x = 42) => $x; 7 | fn(&$x) => $x; 8 | fn&($x) => $x; 9 | static fn($x, ...$rest) => $rest; 10 | fn(): int => $x; 11 | ----- 12 | !!php7 13 | fn($a) => $a; 14 | fn($x = 42) => $x; 15 | fn(&$x) => $x; 16 | fn&($x) => $x; 17 | static fn($x, ...$rest) => $rest; 18 | fn(): int => $x; 19 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Nop.php: -------------------------------------------------------------------------------- 1 | args = array(); 21 | } 22 | } -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Plus.php: -------------------------------------------------------------------------------- 1 | '; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_Greater'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/Smaller.php: -------------------------------------------------------------------------------- 1 | nodes = $nodes ; 13 | } 14 | //getter 15 | public function getNodes(){ 16 | return $this->nodes ; 17 | } 18 | } 19 | 20 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/BitwiseOr.php: -------------------------------------------------------------------------------- 1 | '; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_Spaceship'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/File.php: -------------------------------------------------------------------------------- 1 | b)(); 12 | (A::$b)(); 13 | ----- 14 | !!php7 15 | (function () { 16 | })(); 17 | array('a', 'b')()(); 18 | A::$b::$c; 19 | $A::$b[$c](); 20 | $A::{$b[$c]}(); 21 | A::${$b}[$c](); 22 | ($a->b)(); 23 | (A::$b)(); 24 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | left_delimiter = "{{"; 8 | $smarty->right_delimiter = "}}"; 9 | 10 | $smarty->setTemplateDir(SITE_ROOT."/views/"); 11 | $smarty->setCompileDir(SITE_ROOT . '/cache/templates_c/'); 12 | $smarty->setCacheDir(SITE_ROOT."/cache/"); 13 | 14 | $smarty->assign('title','This is my first Composer Project!'); 15 | $smarty->display('index.html'); 16 | 17 | 18 | 19 | ?> -------------------------------------------------------------------------------- /tests/for_switch.php: -------------------------------------------------------------------------------- 1 | >'; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_ShiftRight'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Class_.php: -------------------------------------------------------------------------------- 1 | ='; 11 | } 12 | 13 | public function getType() : string { 14 | return 'Expr_BinaryOp_GreaterOrEqual'; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BinaryOp/SmallerOrEqual.php: -------------------------------------------------------------------------------- 1 | $val) { 14 | 15 | } 16 | 17 | foreach ($arr as $key => &$val) { 18 | 19 | } 20 | ----- 21 | foreach ($arr as $val) { 22 | } 23 | foreach ($arr as &$val) { 24 | } 25 | foreach ($arr as $key => $val) { 26 | } 27 | foreach ($arr as $key => &$val) { 28 | } -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/sysplugins/smartyexception.php: -------------------------------------------------------------------------------- 1 | Smarty: ' . (self::$escape ? htmlentities($this->message) : $this->message) . ' <-- '; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Namespace_.php: -------------------------------------------------------------------------------- 1 | expectException(Error::class); 11 | $this->expectExceptionMessage('Test'); 12 | $errorHandler = new Throwing(); 13 | $errorHandler->handleError(new Error('Test')); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/stmt/traitUse.test: -------------------------------------------------------------------------------- 1 | Trait uses and adaptations 2 | ----- 3 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | /** 11 | * Load and register Smarty Autoloader 12 | */ 13 | if (!class_exists('Smarty_Autoloader')) { 14 | include dirname(__FILE__) . '/Autoloader.php'; 15 | } 16 | Smarty_Autoloader::register(true); 17 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/hashbang.test: -------------------------------------------------------------------------------- 1 | Hashbang line 2 | ----- 3 | #!/usr/bin/env php 4 | 9 | #!/usr/bin/env php 10 | ----- 11 | array( 12 | 0: Stmt_InlineHTML( 13 | value: #!/usr/bin/env php 14 | 15 | ) 16 | 1: Stmt_Echo( 17 | exprs: array( 18 | 0: Scalar_String( 19 | value: foobar 20 | ) 21 | ) 22 | ) 23 | 2: Stmt_InlineHTML( 24 | value: #!/usr/bin/env php 25 | ) 26 | ) -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/expr/closure.test: -------------------------------------------------------------------------------- 1 | Closures 2 | ----- 3 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/formatPreservation/listInsertionIndentation.test: -------------------------------------------------------------------------------- 1 | Check correct indentation use when inserting into list node 2 | ----- 3 | foo = new Foo; 5 | $this->foo->a() 6 | ->b(); 7 | ----- 8 | $outerCall = $stmts[1]->expr; 9 | $innerCall = $outerCall->var; 10 | $var = $innerCall->var; 11 | $stmts[1]->expr = $innerCall; 12 | $stmts[2] = new Stmt\Expression(new Expr\MethodCall($var, $outerCall->name)); 13 | ----- 14 | foo = new Foo; 16 | $this->foo->a(); 17 | $this->foo->b(); -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/unset.test: -------------------------------------------------------------------------------- 1 | Unset 2 | ----- 3 | stmts[] = new Stmt\Expression(new Expr\Variable('c')); 10 | ----- 11 | stmts[] = new Stmt\Expression(new Expr\Variable('c')); 24 | ----- 25 | expr; 10 | $new->class->extends = null; 11 | $new->args[] = new Expr\Variable('y'); 12 | ----- 13 | expr; 24 | $new->class->name = new Node\Identifier('Anon1'); 25 | ----- 26 | a = $a; 11 | } 12 | }; 13 | ----- 14 | new class 15 | { 16 | }; 17 | new class extends A implements B, C 18 | { 19 | }; 20 | new class($a) extends A 21 | { 22 | private $a; 23 | public function __construct($a) 24 | { 25 | $this->a = $a; 26 | } 27 | }; 28 | -------------------------------------------------------------------------------- /table/class_table.php: -------------------------------------------------------------------------------- 1 | class_name = $class_name; 18 | $this->in_namespace = $in_namespace; 19 | $this->extends = $extends; 20 | $this->member_var = $member_var; 21 | } 22 | } -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/scalar/unicodeEscape.test: -------------------------------------------------------------------------------- 1 | Unicode escape sequence 2 | ----- 3 | expr->expr; 9 | $array->items[] = new Expr\ArrayItem(new Expr\Variable('b')); 10 | ----- 11 | expr->expr; 23 | $array->items[] = new Expr\ArrayItem(new Expr\Variable('c'), null, false, [], true); 24 | ----- 25 | 6 | B 7 | 10 | stmts[0]->type = new Node\Identifier('string'); 13 | ----- 14 | stmts[0]->type = new Node\Identifier('int'); 32 | ----- 33 | setAttribute('origNode', $origNode); 18 | return $node; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/expr/stringEscaping.test: -------------------------------------------------------------------------------- 1 | Escape sequences in double-quoted strings 2 | ----- 3 | 15 | */ 16 | class Smarty_Internal_Compile_Block_Child extends Smarty_Internal_Compile_Child 17 | { 18 | /** 19 | * Tag name 20 | * 21 | * @var string 22 | */ 23 | public $tag = 'block_child'; 24 | } 25 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/stmt/namespaces.test: -------------------------------------------------------------------------------- 1 | Namespaces 2 | ----- 3 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/namespace/nested.test: -------------------------------------------------------------------------------- 1 | Nested namespaces are not allowed 2 | ----- 3 | type = $type; 24 | $this->old = $old; 25 | $this->new = $new; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/expr/uvs/globalNonSimpleVarError.test: -------------------------------------------------------------------------------- 1 | Non-simple variables are forbidden in PHP 7 2 | ----- 3 | bar; 5 | ----- 6 | !!php7 7 | Syntax error, unexpected T_OBJECT_OPERATOR, expecting ';' from 2:13 to 2:14 8 | array( 9 | 0: Stmt_Global( 10 | vars: array( 11 | 0: Expr_Variable( 12 | name: Expr_Variable( 13 | name: foo 14 | ) 15 | ) 16 | ) 17 | ) 18 | 1: Stmt_Expression( 19 | expr: Expr_ConstFetch( 20 | name: Name( 21 | parts: array( 22 | 0: bar 23 | ) 24 | ) 25 | ) 26 | ) 27 | ) -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.string_format.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | ./test/ 12 | 13 | 14 | 15 | 16 | 17 | ./lib/PhpParser/ 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/echo.test: -------------------------------------------------------------------------------- 1 | Echo 2 | ----- 3 | flags = Stmt\Class_::MODIFIER_ABSTRACT; 17 | $stmts[1]->flags = 0; 18 | $stmts[1]->stmts[0]->flags = Stmt\Class_::MODIFIER_PRIVATE; 19 | $stmts[1]->stmts[1]->flags = Stmt\Class_::MODIFIER_PROTECTED; 20 | $stmts[1]->stmts[2]->flags |= Stmt\Class_::MODIFIER_FINAL; 21 | ----- 22 | 15 | */ 16 | class Smarty_Internal_Compile_Parent extends Smarty_Internal_Compile_Child 17 | { 18 | /** 19 | * Tag name 20 | * 21 | * @var string 22 | */ 23 | public $tag = 'parent'; 24 | 25 | /** 26 | * Block type 27 | * 28 | * @var string 29 | */ 30 | public $blockType = 'Parent'; 31 | } 32 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 16 | } 17 | 18 | public function getSubNodeNames() : array { 19 | return []; 20 | } 21 | 22 | /** 23 | * Get name of magic constant. 24 | * 25 | * @return string Name of magic constant 26 | */ 27 | abstract public function getName() : string; 28 | } 29 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/formatPreservation/listRemoval.test: -------------------------------------------------------------------------------- 1 | Removing from list nodes 2 | ----- 3 | params); 17 | ----- 18 | params); 32 | $stmts[0]->params[] = new Node\Param(new Expr\Variable('x')); 33 | $stmts[0]->params[] = new Node\Param(new Expr\Variable('y')); 34 | ----- 35 | 14 | HTML 15 | ----- 16 | 20 | HTML 21 | ----- 22 | HTML 23 | 26 | HTML 27 | ----- 28 | HTML 29 | 32 | HTML 33 | ----- 34 | HTML 35 | 38 | HTML 39 | 42 | HTML 43 | ----- 44 | HTML 45 | 48 | HTML 49 | 52 | HTML 53 | ----- 54 | HTMLHTML 55 | ----- 56 | HTMLHTML -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/commentsInCommaList.test: -------------------------------------------------------------------------------- 1 | Comments in arrays and function calls 2 | ----- 3 | 15 | */ 16 | class Smarty_Internal_Compile_Block_Parent extends Smarty_Internal_Compile_Child 17 | { 18 | /** 19 | * Tag name 20 | * 21 | * @var string 22 | */ 23 | public $tag = 'block_parent'; 24 | 25 | /** 26 | * Block type 27 | * 28 | * @var string 29 | */ 30 | public $blockType = 'Parent'; 31 | } 32 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/namespace/groupUsePositions.test: -------------------------------------------------------------------------------- 1 | Ensure correct file position attributes for group use prefix 2 | ----- 3 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_Eval'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreDec.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->var = $var; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['var']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_PreDec'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Clone_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_Clone'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Empty_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_Empty'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Isset_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->vars = $vars; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['vars']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_Isset'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostDec.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->var = $var; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['var']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_PostDec'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PostInc.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->var = $var; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['var']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_PostInc'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/PreInc.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->var = $var; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['var']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_PreInc'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Print_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_Print'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/NodeTraverserInterface.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_BitwiseNot'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/UnaryMinus.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_UnaryMinus'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Throw_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Throw'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Echo_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->exprs = $exprs; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['exprs']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Echo'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/InlineHTML.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->value = $value; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['value']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_InlineHTML'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/class/conditional.test: -------------------------------------------------------------------------------- 1 | Conditional class definition 2 | ----- 3 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_UnaryPlus'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->name = $name; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['name']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_Variable'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Else_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->stmts = $stmts; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['stmts']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Else'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/BooleanNot.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_BooleanNot'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ErrorSuppress.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_ErrorSuppress'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/YieldFrom.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_YieldFrom'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Finally_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->stmts = $stmts; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['stmts']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Finally'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Unset_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->vars = $vars; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['vars']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Unset'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/errorHandling/eofError.test: -------------------------------------------------------------------------------- 1 | Error positions 2 | ----- 3 | attributes = $attributes; 20 | $this->expr = $expr; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['expr']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Return'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/function/conditional.test: -------------------------------------------------------------------------------- 1 | Conditional function definition 2 | ----- 3 | attributes = $attributes; 20 | $this->vars = $vars; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['vars']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Global'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/function/variadicDefaultValue.test: -------------------------------------------------------------------------------- 1 | Invalid variadic function 2 | ----- 3 | attributes = $attributes; 21 | $this->name = $name; 22 | } 23 | 24 | public function getSubNodeNames() : array { 25 | return ['name']; 26 | } 27 | 28 | public function getType() : string { 29 | return 'Expr_ConstFetch'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ShellExec.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->parts = $parts; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['parts']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_ShellExec'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Static_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->vars = $vars; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['vars']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Static'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Break_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->num = $num; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['num']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Break'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Const_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->consts = $consts; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['consts']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Const'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 21 | $this->parts = $parts; 22 | } 23 | 24 | public function getSubNodeNames() : array { 25 | return ['parts']; 26 | } 27 | 28 | public function getType() : string { 29 | return 'Scalar_Encapsed'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Continue_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->num = $num; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['num']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Continue'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/AssignOp.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->var = $var; 24 | $this->expr = $expr; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['var', 'expr']; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.indent.php: -------------------------------------------------------------------------------- 1 | ]*?>!', ' ', {$params[0]})"; 25 | } else { 26 | return 'strip_tags(' . $params[ 0 ] . ')'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/List_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->items = $items; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['items']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Expr_List'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Label.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 21 | $this->name = \is_string($name) ? new Identifier($name) : $name; 22 | } 23 | 24 | public function getSubNodeNames() : array { 25 | return ['name']; 26 | } 27 | 28 | public function getType() : string { 29 | return 'Stmt_Label'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/formatPreservation/inlineHtml.test: -------------------------------------------------------------------------------- 1 | Handling of inline HTML 2 | ----- 3 | FoosetAttribute('origNode', null); 10 | ----- 11 | FooBarstmts[2] = $stmts[0]->stmts[1]; 28 | ----- 29 | BarBarstmts[1] = $stmts[0]->stmts[2]; 47 | ----- 48 | 16 | * @author Uwe Tews 17 | * 18 | * @param array $params parameters 19 | * 20 | * @return string with compiled code 21 | */ 22 | function smarty_modifiercompiler_lower($params) 23 | { 24 | if (Smarty::$_MBSTRING) { 25 | return 'mb_strtolower(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')'; 26 | } 27 | // no MBString fallback 28 | return 'strtolower(' . $params[ 0 ] . ')'; 29 | } 30 | -------------------------------------------------------------------------------- /table/func_table.php: -------------------------------------------------------------------------------- 1 | func_name = $func_name; 22 | $this->func_stmt = $func_stmt; 23 | $this->func_params = $func_params; 24 | $this->func_params_count = $func_params_count; 25 | $this->in_class = $in_class; 26 | $this->class_name = $class_name; 27 | $this->namespace = $namespace; 28 | } 29 | } -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/PhpParser/ErrorHandler/CollectingTest.php: -------------------------------------------------------------------------------- 1 | assertFalse($errorHandler->hasErrors()); 12 | $this->assertEmpty($errorHandler->getErrors()); 13 | 14 | $errorHandler->handleError($e1 = new Error('Test 1')); 15 | $errorHandler->handleError($e2 = new Error('Test 2')); 16 | $this->assertTrue($errorHandler->hasErrors()); 17 | $this->assertSame([$e1, $e2], $errorHandler->getErrors()); 18 | 19 | $errorHandler->clearErrors(); 20 | $this->assertFalse($errorHandler->hasErrors()); 21 | $this->assertEmpty($errorHandler->getErrors()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifier.spacify.php: -------------------------------------------------------------------------------- 1 | 16 | * 17 | * @param string $string input string 18 | * @param string $spacify_char string to insert between characters. 19 | * 20 | * @return string 21 | */ 22 | function smarty_modifier_spacify($string, $spacify_char = ' ') 23 | { 24 | // well… what about charsets besides latin and UTF-8? 25 | return implode($spacify_char, preg_split('//' . Smarty::$_UTF8_MODIFIER, $string, -1, PREG_SPLIT_NO_EMPTY)); 26 | } 27 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->value = $value; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['value']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Scalar_EncapsedStringPart'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Expression.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->expr = $expr; 24 | } 25 | 26 | public function getSubNodeNames() : array { 27 | return ['expr']; 28 | } 29 | 30 | public function getType() : string { 31 | return 'Stmt_Expression'; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.count_sentences.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->type = \is_string($type) ? new Identifier($type) : $type; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['type']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'NullableType'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 22 | } 23 | 24 | public function getSubNodeNames() : array { 25 | return []; 26 | } 27 | 28 | public function getType() : string { 29 | return 'Expr_Error'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.to_charset.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 21 | $this->name = \is_string($name) ? new Identifier($name) : $name; 22 | } 23 | 24 | public function getSubNodeNames() : array { 25 | return ['name']; 26 | } 27 | 28 | public function getType() : string { 29 | return 'Stmt_Goto'; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdebugtemplate.php: -------------------------------------------------------------------------------- 1 | _getSmartyObj(); 33 | return $smarty->debug_tpl; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/HaltCompiler.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 20 | $this->remaining = $remaining; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['remaining']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_HaltCompiler'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.from_charset.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 24 | $this->expr = $expr; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['expr']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_Exit'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/expr/yield.test: -------------------------------------------------------------------------------- 1 | Yield 2 | ----- 3 | $b; 10 | $a = yield; 11 | $a = (yield $b); 12 | $a = (yield $b => $c); 13 | } 14 | // TODO Get rid of parens for cases 2 and 3 15 | ----- 16 | function gen() 17 | { 18 | yield; 19 | (yield $a); 20 | (yield $a => $b); 21 | $a = yield; 22 | $a = (yield $b); 23 | $a = (yield $b => $c); 24 | } 25 | // TODO Get rid of parens for cases 2 and 3 26 | ----- 27 | $c; 33 | yield from $a; 34 | $a = yield from $b; 35 | } 36 | // TODO Get rid of parens for last case 37 | ----- 38 | !!php7 39 | function gen() 40 | { 41 | $a = (yield $b); 42 | $a = (yield $b => $c); 43 | yield from $a; 44 | $a = (yield from $b); 45 | } 46 | // TODO Get rid of parens for last case -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/formatPreservation/comments.test: -------------------------------------------------------------------------------- 1 | Comment changes 2 | ----- 3 | setAttribute('comments', []); 8 | ----- 9 | getComments(); 20 | $comments[] = new Comment("// foo"); 21 | $stmts[1]->setAttribute('comments', $comments); 22 | ----- 23 | stmts[0]; 42 | $method->setAttribute('comments', [new Comment\Doc("/**\n *\n */")]); 43 | ----- 44 | d} 29 | STR; 30 | 31 | call( 32 | <<d} 70 | STR; 71 | call(<<inedge = array(); 26 | $this->outedge = array(); 27 | } 28 | } 29 | class Graph{ 30 | public $head; 31 | public $tail; // 控制流图的最后一个Node 32 | public function __construct() 33 | { 34 | $this->head = new CFGNode(); 35 | $this->tail = new CFGNode(); 36 | } 37 | } 38 | 39 | class Variable{ 40 | public $BasicBlockId; 41 | public $Varname; 42 | public $linenum; 43 | public $from; 44 | public $tainted; 45 | } 46 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/PhpParser/Node/Scalar/MagicConstTest.php: -------------------------------------------------------------------------------- 1 | assertSame($name, $magicConst->getName()); 12 | } 13 | 14 | public function provideTestGetName() { 15 | return [ 16 | [new MagicConst\Class_, '__CLASS__'], 17 | [new MagicConst\Dir, '__DIR__'], 18 | [new MagicConst\File, '__FILE__'], 19 | [new MagicConst\Function_, '__FUNCTION__'], 20 | [new MagicConst\Line, '__LINE__'], 21 | [new MagicConst\Method, '__METHOD__'], 22 | [new MagicConst\Namespace_, '__NAMESPACE__'], 23 | [new MagicConst\Trait_, '__TRAIT__'], 24 | ]; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Assign.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->var = $var; 24 | $this->expr = $expr; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['var', 'expr']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_Assign'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/expr/exit.test: -------------------------------------------------------------------------------- 1 | Exit 2 | ----- 3 | =7.0", 17 | "ext-tokenizer": "*" 18 | }, 19 | "require-dev": { 20 | "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0" 21 | }, 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "4.2-dev" 25 | } 26 | }, 27 | "autoload": { 28 | "psr-4": { 29 | "PhpParser\\": "lib/PhpParser" 30 | } 31 | }, 32 | "autoload-dev": { 33 | "psr-4": { 34 | "PhpParser\\": "test/PhpParser/" 35 | } 36 | }, 37 | "bin": [ 38 | "bin/php-parse" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_getdefaultmodifiers.php: -------------------------------------------------------------------------------- 1 | _getSmartyObj(); 33 | return $smarty->default_modifiers; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Array_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 24 | $this->items = $items; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['items']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_Array'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.strip.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->cond = $cond; 24 | $this->cases = $cases; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['cond', 'cases']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_Switch'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/expr/assignNewByRef.test: -------------------------------------------------------------------------------- 1 | Assigning new by reference (PHP 5 only) 2 | ----- 3 | tpl_vars = array(); 34 | return $data; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Do_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->cond = $cond; 24 | $this->stmts = $stmts; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['stmts', 'cond']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_Do'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/While_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->cond = $cond; 24 | $this->stmts = $stmts; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['cond', 'stmts']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_While'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/expr/fetchAndCall/constFetch.test: -------------------------------------------------------------------------------- 1 | Constant fetches 2 | ----- 3 | attributes = $attributes; 23 | $this->var = $var; 24 | $this->expr = $expr; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['var', 'expr']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_AssignRef'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ElseIf_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->cond = $cond; 24 | $this->stmts = $stmts; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['cond', 'stmts']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_ElseIf'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Trait_.php: -------------------------------------------------------------------------------- 1 | array(): Statements 15 | * @param array $attributes Additional attributes 16 | */ 17 | public function __construct($name, array $subNodes = [], array $attributes = []) { 18 | $this->attributes = $attributes; 19 | $this->name = \is_string($name) ? new Node\Identifier($name) : $name; 20 | $this->stmts = $subNodes['stmts'] ?? []; 21 | } 22 | 23 | public function getSubNodeNames() : array { 24 | return ['name', 'stmts']; 25 | } 26 | 27 | public function getType() : string { 28 | return 'Stmt_Trait'; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/PhpParser/Node/IdentifierTest.php: -------------------------------------------------------------------------------- 1 | assertSame('Foo', (string) $identifier); 11 | $this->assertSame('Foo', $identifier->toString()); 12 | $this->assertSame('foo', $identifier->toLowerString()); 13 | } 14 | 15 | /** @dataProvider provideTestIsSpecialClassName */ 16 | public function testIsSpecialClassName($identifier, $expected) { 17 | $identifier = new Identifier($identifier); 18 | $this->assertSame($expected, $identifier->isSpecialClassName()); 19 | } 20 | 21 | public function provideTestIsSpecialClassName() { 22 | return [ 23 | ['self', true], 24 | ['PARENT', true], 25 | ['Static', true], 26 | ['other', false], 27 | ]; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayDimFetch.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->var = $var; 24 | $this->dim = $dim; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['var', 'dim']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_ArrayDimFetch'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/sysplugins/smartycompilerexception.php: -------------------------------------------------------------------------------- 1 | Smarty Compiler: ' . $this->message . ' <-- '; 16 | } 17 | 18 | /** 19 | * The line number of the template error 20 | * 21 | * @type int|null 22 | */ 23 | public $line = null; 24 | 25 | /** 26 | * The template source snippet relating to the error 27 | * 28 | * @type string|null 29 | */ 30 | public $source = null; 31 | 32 | /** 33 | * The raw text of the error message 34 | * 35 | * @type string|null 36 | */ 37 | public $desc = null; 38 | 39 | /** 40 | * The resource identifier or template name 41 | * 42 | * @type string|null 43 | */ 44 | public $template = null; 45 | } 46 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Yield_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->key = $key; 24 | $this->value = $value; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['key', 'value']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_Yield'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/PhpParser/Node/Stmt/ClassConstTest.php: -------------------------------------------------------------------------------- 1 | assertTrue($node->{'is' . $modifier}()); 17 | } 18 | 19 | public function testNoModifiers() { 20 | $node = new ClassConst([], 0); 21 | 22 | $this->assertTrue($node->isPublic()); 23 | $this->assertFalse($node->isProtected()); 24 | $this->assertFalse($node->isPrivate()); 25 | } 26 | 27 | public function provideModifiers() { 28 | return [ 29 | ['public'], 30 | ['protected'], 31 | ['private'], 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/commentAtEndOfClass.test: -------------------------------------------------------------------------------- 1 | Comment at end of class (#509) 2 | ----- 3 | attributes = $attributes; 24 | $this->expr = $expr; 25 | $this->class = $class; 26 | } 27 | 28 | public function getSubNodeNames() : array { 29 | return ['expr', 'class']; 30 | } 31 | 32 | public function getType() : string { 33 | return 'Expr_Instanceof'; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Case_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->cond = $cond; 24 | $this->stmts = $stmts; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['cond', 'stmts']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_Case'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/prettyPrinter/stmt/class.test: -------------------------------------------------------------------------------- 1 | Class 2 | ----- 3 | a = 'bar'; 13 | echo 'test'; 14 | } 15 | 16 | protected function baz() {} 17 | public function foo() {} 18 | abstract static function bar() {} 19 | } 20 | 21 | trait Bar 22 | { 23 | function test() 24 | { 25 | } 26 | } 27 | ----- 28 | class Foo extends Bar implements ABC, \DEF, namespace\GHI 29 | { 30 | var $a = 'foo'; 31 | private $b = 'bar'; 32 | static $c = 'baz'; 33 | function test() 34 | { 35 | $this->a = 'bar'; 36 | echo 'test'; 37 | } 38 | protected function baz() 39 | { 40 | } 41 | public function foo() 42 | { 43 | } 44 | static abstract function bar() 45 | { 46 | } 47 | } 48 | trait Bar 49 | { 50 | function test() 51 | { 52 | } 53 | } -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 24 | $this->name = $name; 25 | $this->args = $args; 26 | } 27 | 28 | public function getSubNodeNames() : array { 29 | return ['name', 'args']; 30 | } 31 | 32 | public function getType() : string { 33 | return 'Expr_FuncCall'; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/bootstrap.php: -------------------------------------------------------------------------------- 1 | getPathname(); 29 | yield $fileName => file_get_contents($fileName); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/SMARTY_3.0_BC_NOTES.txt: -------------------------------------------------------------------------------- 1 | == Smarty2 backward compatibility == 2 | All Smarty2 specific API functions and deprecated functionality has been moved 3 | to the SmartyBC class. 4 | 5 | == {php} Tag == 6 | The {php} tag is no longer available in the standard Smarty calls. 7 | The use of {php} tags is deprecated and only available in the SmartyBC class. 8 | 9 | == {include_php} Tag == 10 | The {include_php} tag is no longer available in the standard Smarty calls. 11 | The use of {include_php} tags is deprecated and only available in the SmartyBC class. 12 | 13 | == php template resource == 14 | The support of the php template resource is removed. 15 | 16 | == $cache_dir, $compile_dir, $config_dir, $template_dir access == 17 | The mentioned properties can't be accessed directly any longer. You must use 18 | corresponding getter/setters like addConfigDir(), setConfigDir(), getConfigDir() 19 | 20 | == obsolete Smarty class properties == 21 | The following no longer used properties are removed: 22 | $allow_php_tag 23 | $allow_php_template 24 | $deprecation_notices -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Declare_.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->declares = $declares; 24 | $this->stmts = $stmts; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['declares', 'stmts']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_Declare'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/sysplugins/smarty_internal_parsetree_text.php: -------------------------------------------------------------------------------- 1 | data = $data; 27 | } 28 | 29 | /** 30 | * Return buffer content 31 | * 32 | * @param \Smarty_Internal_Templateparser $parser 33 | * 34 | * @return string text 35 | */ 36 | public function to_smarty_php(Smarty_Internal_Templateparser $parser) 37 | { 38 | return $this->data; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->var = $var; 24 | $this->byRef = $byRef; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['var', 'byRef']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Expr_ClosureUse'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUse.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 23 | $this->traits = $traits; 24 | $this->adaptations = $adaptations; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['traits', 'adaptations']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_TraitUse'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php: -------------------------------------------------------------------------------- 1 | value pair node. 16 | * 17 | * @param string|Node\Identifier $key Key 18 | * @param Node\Expr $value Value 19 | * @param array $attributes Additional attributes 20 | */ 21 | public function __construct($key, Node\Expr $value, array $attributes = []) { 22 | $this->attributes = $attributes; 23 | $this->key = \is_string($key) ? new Node\Identifier($key) : $key; 24 | $this->value = $value; 25 | } 26 | 27 | public function getSubNodeNames() : array { 28 | return ['key', 'value']; 29 | } 30 | 31 | public function getType() : string { 32 | return 'Stmt_DeclareDeclare'; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/code/parser/stmt/controlFlow.test: -------------------------------------------------------------------------------- 1 | Control flow statements 2 | ----- 3 | smarty->right_delimiter; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php: -------------------------------------------------------------------------------- 1 | attributes = $attributes; 26 | $this->var = $var; 27 | $this->default = $default; 28 | } 29 | 30 | public function getSubNodeNames() : array { 31 | return ['var', 'default']; 32 | } 33 | 34 | public function getType() : string { 35 | return 'Stmt_StaticVar'; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/nikic/php-parser/test/PhpParser/CodeTestAbstract.php: -------------------------------------------------------------------------------- 1 | $fileContents) { 11 | list($name, $tests) = $parser->parseTest($fileContents, $chunksPerTest); 12 | 13 | // first part is the name 14 | $name .= ' (' . $fileName . ')'; 15 | $shortName = ltrim(str_replace($directory, '', $fileName), '/\\'); 16 | 17 | // multiple sections possible with always two forming a pair 18 | foreach ($tests as $i => list($mode, $parts)) { 19 | $dataSetName = $shortName . (count($parts) > 1 ? '#' . $i : ''); 20 | $allTests[$dataSetName] = array_merge([$name], $parts, [$mode]); 21 | } 22 | } 23 | 24 | return $allTests; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/smarty/smarty/libs/plugins/modifiercompiler.count_characters.php: -------------------------------------------------------------------------------- 1 |