JetBrains Fleet 1.30 Help

List of PHP live templates

This table summarizes the live templates that you can use with your PHP code.

Abbreviation

Description

Template text

classFQN

current class FQN

$CLASS_FQN$
className

current class name

$CLASS_NAME$
eco

'echo' statement

echo "$END$";
fore

foreach(iterable_expr as $value) {...}

foreach ($ITERABLE$ as $VAR_VALUE$) { $END$ }
forek

foreach(iterable_expr as $key => $value) {...}

foreach ($ITERABLE$ as $VAR_KEY$ => $VAR_VALUE$) { $END$ }
fori

Create iteration loop

for($INDEX$ = 0; $INDEX$ < $LIMIT$; $INDEX$++) { $END$ }
fun

function

function $NAME$($PARAMETERS$){ $END$ }
inc

'include' statement

include "$END$";
inco

'include_once' statement

include_once "$END$";
prif

private function

private function $NAME$($PARAMETERS$){ $END$ }
prisf

private static function

private static function $NAME$($PARAMETERS$){ $END$ }
prof

protected function

protected function $NAME$($PARAMETERS$){ $END$ }
prosf

protected static function

protected static function $NAME$($PARAMETERS$){ $END$ }
pubf

public function

public function $NAME$($PARAMETERS$){ $END$ }
pubsf

public static function

public static function $NAME$($PARAMETERS$){ $END$ }
rqr

'require' statement

require "$END$";
rqro

'require_once' statement

require_once "$END$";
thr

throw new

throw new $END$
Last modified: 26 February 2024