This file is indexed.

/usr/share/php/kohana2/modules/kodoc/views/kodoc/method.php is in libkohana2-modules-php 2.3.4-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php defined('SYSPATH') OR die('No direct access allowed.');

// Recreate method declaration
$declaration = implode('', array
(
	$abstract   ? html::anchor('http://www.php.net/manual/language.oop5.abstract.php', 'abstract').' ' : '',
	$final      ? html::anchor('http://www.php.net/manual/language.oop5.final.php', 'final').' ' : '',
	html::anchor('http://www.php.net/manual/language.oop5.visibility.php', $visibility).' ',
	$static     ? html::anchor('http://www.php.net/manual/language.oop5.static.php', 'static').' ' : '',
	'function ',
	$name
));

?>
<h4><?php echo $class ?><?php echo $static ? ' :: ' : ' -> ' ?><?php echo $name ?></h4>

<code class="declaration"><?php echo $declaration ?></code>

<?php

if ( ! empty($comment['about'])):

	echo arr::remove('about', $comment);

endif;
if ( ! empty($parameters)):

?>
<p class="parameters"><strong>Parameters:</strong></p>
<dl>
<?php

	foreach ($parameters as $i => $param):

	if ( ! empty($comment['param'][$i])):

		// Extract the type and information
		list ($type, $info) = explode(' ', $comment['param'][$i], 2);

		$type = Kodoc::humanize_type($type).' ';
		$info = trim($info);

	else:

		$type = '';
		$info = '';

	endif;

?>
<dt><?php echo $type, $param['name'] ?></dt>
<dd><?php

	if (array_key_exists('default', $param)):

		// Parameter default value
		echo '<tt>('.Kodoc::humanize_value($param['default']).')</tt> ';

	endif;

	// Parameter information
	echo $info;

?></dd>

<?php

	endforeach;

	if (isset($comment['param']))
	{
		// Remove parameter information from the comment
		unset($comment['param']);
	}

?>
</dl>
<?php

endif;
if ( ! empty($comment)):
	foreach ($comment as $tag => $vals):

		switch ($tag):
			case 'throws':
			case 'return':
				foreach ($vals as $i => $val):
					if (strpos($val, ' ') !== FALSE):

						// Extract the type from the val
						list ($type, $val) = explode(' ', $val, 2);

						// Add the type to the val
						$val = Kodoc::humanize_type($type).' '.$val;
					else:
						$val = '<tt>'.$val.'</tt>';
					endif;

					// Put the val back into the array
					$vals[$i] = $val;

				endforeach;
			break;
		endswitch;

?>
<p class="<?php echo $tag ?>"><strong><?php echo ucfirst($tag) ?>:</strong><?php


		if (count($vals) === 1):

?> <?php echo current($vals) ?></p>
<?php

		else:

?></p>
<ul>
<li><?php echo implode("</li>\n<li>", $vals) ?></li>
</ul>
<?php

		endif;


	endforeach;
endif;

// echo Kohana::debug($comment);

?>
<hr/>