⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
www
/
script
/
vendor
/
opis
/
closure
/
src
/
Edit File: Analyzer.php
<?php /* =========================================================================== * Copyright (c) 2018-2019 Zindex Software * * Licensed under the MIT License * =========================================================================== */ namespace Opis\Closure; use Closure; use SuperClosure\Analyzer\ClosureAnalyzer; class Analyzer extends ClosureAnalyzer { /** * Analyzer a given closure. * * @param Closure $closure * * @return array */ public function analyze(Closure $closure) { $reflection = new ReflectionClosure($closure); $scope = $reflection->getClosureScopeClass(); $data = [ 'reflection' => $reflection, 'code' => $reflection->getCode(), 'hasThis' => $reflection->isBindingRequired(), 'context' => $reflection->getUseVariables(), 'hasRefs' => false, 'binding' => $reflection->getClosureThis(), 'scope' => $scope ? $scope->getName() : null, 'isStatic' => $reflection->isStatic(), ]; return $data; } /** * @param array $data * @return mixed */ protected function determineCode(array &$data) { return null; } /** * @param array $data * @return mixed */ protected function determineContext(array &$data) { return null; } }
Simpan