⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.217
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
styleage_v3
/
core
/
vendor
/
opis
/
closure
/
src
/
View File Name :
Analyzer.php
<?php /* =========================================================================== * Copyright (c) 2018-2021 Zindex Software * * Licensed under the MIT License * =========================================================================== */ namespace Opis\Closure; use Closure; use SuperClosure\Analyzer\ClosureAnalyzer; /** * @deprecated We'll remove this class */ 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; } }