Lines Matching refs:replacements
139 $replacements = $this->actionReplacements($options);
145 $replacements['@@PLUGIN_COMPONENT_NAME@@'] = $class;
146 $replacements['@@SYNTAX_COMPONENT_NAME@@'] = $self;
147 $this->loadSkeleton($type . '.php', $path, $replacements);
168 $replacements = ['@@TEST@@' => $test];
169 $this->loadSkeleton('_test/StandardTest.php', '_test/' . $test . 'Test.php', $replacements);
210 * Prepare the string replacements
212 * @param array $replacements override defaults
215 protected function prepareReplacements($replacements = [])
230 return array_merge($data, $replacements);
265 * Load a skeleton file, do the replacements and add it to the list of files
269 * @param array $replacements Non-default replacements to use
271 protected function loadSkeleton($skel, $target = '', $replacements = [])
273 $replacements = $this->prepareReplacements($replacements);
283 array_keys($replacements),
284 array_values($replacements),