Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7458527
BeforeAnalyzeFileCapability.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
886 B
Referenced Files
None
Subscribers
None
BeforeAnalyzeFileCapability.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\PluginV3
;
use
ast\Node
;
use
Phan\CodeBase
;
use
Phan\Language\Context
;
/**
* BeforeAnalyzeFileCapability is used when you want to perform checks before analyzing a file
* NOTE: This does not run on empty files.
*/
interface
BeforeAnalyzeFileCapability
{
/**
* This method is called before analyzing a file.
*
* @param CodeBase $code_base
* The code base in which the node exists
*
* @param Context $context
* A context with the file name for $file_contents and the scope before analyzing $node.
*
* @param string $file_contents the unmodified file contents
* @param Node $node the node parsed from $file_contents
*/
public
function
beforeAnalyzeFile
(
CodeBase
$code_base
,
Context
$context
,
string
$file_contents
,
Node
$node
):
void
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 01:29 (2 d, 17 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f9/09/ebe5bd6d71a8e3c7a7914900cc03
Default Alt Text
BeforeAnalyzeFileCapability.php (886 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment