Skip to content

Commit 57857a9

Browse files
committed
Rename the function to 'isMemoryLimitValid'
1 parent d6dadd2 commit 57857a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PHPCtags.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ public function export($file, $options)
228228
// if the memory limit option is set and is valid, adjust memory
229229
if (isset($options['memory'])) {
230230
$memory_limit = trim($options['memory']);
231-
if ($this->testValidMemoryLimit($memory_limit)) {
231+
if ($this->isMemoryLimitValid($memory_limit)) {
232232
ini_set('memory_limit', $memory_limit);
233233
}
234234
}
@@ -238,7 +238,7 @@ public function export($file, $options)
238238
echo $this->render($structs, $options);
239239
}
240240

241-
private static function testValidMemoryLimit($memory_limit) {
241+
private static function isMemoryLimitValid($memory_limit) {
242242
if ($memory_limit == "-1") {
243243
// no memory limit
244244
return true;

0 commit comments

Comments
 (0)