Lines Matching defs:commandArgs
109 $commandArgs = preg_split("/\s*,\s*/", $signature);
113 $commandArgs = array_map(
115 $commandArgs,
116 array_fill(0, sizeof($commandArgs), self::SPACE_CHARACTER)
121 $commandArgs = array_map(
123 $commandArgs,
124 array_fill(0, sizeof($commandArgs), $charactersToTrimFromCommand)
130 $message = self::replace($commandArgs, $message);
133 $message = self::head($commandArgs, $message);
136 $message = self::tail($commandArgs, $message);
139 $message = self::concat($commandArgs, $message, "right");
142 $message = self::concat($commandArgs, $message, "left");
145 $message = self::cut($commandArgs, $message);
154 $message = self::format($commandArgs, $message);
164 private static function replace(array $commandArgs, $value)
166 $search = $commandArgs[0];
167 $replace = $commandArgs[1];
172 * @param array $commandArgs
177 public static function head(array $commandArgs, $value)
179 $length = $commandArgs[0];
195 $tail = $commandArgs[1] ?? null;
204 static function concat(array $commandArgs, $value, $side): string
206 $string = $commandArgs[0];
221 static function tail(array $commandArgs, $value)
223 $length = $commandArgs[0];
228 static function cut(array $commandArgs, $value)
230 $pattern = $commandArgs[0];
233 $selector = $commandArgs[1];
272 static function format(array $commandArgs, $value): string
284 $size = sizeof($commandArgs);
291 $pattern = $commandArgs[0];
295 $pattern = $commandArgs[0];
296 $locale = $commandArgs[1];