Skip to content

Commit

Permalink
Cleanup unused references
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Aug 9, 2020
1 parent 8e74d7c commit a6cd174
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function provideAttributesAssignment()
'pattern.attribute_pattern',
'pattern.boolean_attribute_pattern',
function ($attrMapping, $mergeAttr, $pattern, $escape, $attr, $bool) {
return function () use ($attrMapping, $mergeAttr, $pattern, $escape, $attr, $bool) {
return function () use ($attrMapping, $mergeAttr, $pattern, $attr, $bool) {
$attributes = call_user_func_array($mergeAttr, func_get_args());
$code = '';
foreach ($attributes as $originalName => $value) {
Expand Down
2 changes: 1 addition & 1 deletion src/Phug/Renderer/Renderer/Profiler/ProfilerModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function attachEvents()
parent::attachEvents();
$formatter = $this->getContainer();
if ($formatter instanceof Formatter) {
$formatter->setOption('patterns.debug_comment', function ($nodeId) use ($formatter) {
$formatter->setOption('patterns.debug_comment', function ($nodeId) {
return "\n".(
$nodeId !== ''
? '\\'.static::class.'::recordProfilerDisplayEvent('.
Expand Down
6 changes: 2 additions & 4 deletions tests/Phug/AbstractRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ protected function setUp()

return $engine->parse($contents);
};
$coffee = function ($contents, $options) use ($uglify) {
$coffee = function ($contents, $options) {
$engine = new CoffeeScript($contents, false);
$result = $engine->getResult();

if (isset($options['minify']) && $options['minify']) {
// @TODO fix it when https://github.com/pugjs/pug/issues/2829 answered
return "\n(function(){}).call(this);\n";

//return $uglify($result);
}

return "\n".$result."\n";
Expand Down

0 comments on commit a6cd174

Please sign in to comment.