Skip to content

Commit

Permalink
fixed function closing in jsCode #122
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Aug 28, 2016
1 parent 35c91fd commit d2bd13b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Utils/JsFunctionsScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function getFunctions()
$functions[] = array_shift($bufferFunctions);
}

$this->upStatus();
$buffer = '';
continue 3;
}
Expand Down Expand Up @@ -169,8 +170,6 @@ public function getFunctions()
}
}

var_dump($functions);

return $functions;
}

Expand Down
1 change: 0 additions & 1 deletion tests/AssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ public function testJs2Code()
$translations = static::get('jscode2/input', 'JsCode');
$countTranslations = 3;
$countHeaders = 8;
return;

$this->assertCount($countTranslations, $translations);
$this->assertCount($countHeaders, $translations->getHeaders());
Expand Down
3 changes: 1 addition & 2 deletions tests/assets/jscode2/input.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/*
gettext("some message");
pgettext("some context", "some message in a context");
ngettext("%s message", "%s messages", 2);
*/

(function(){
var foo = ["string1", "string2", "string3"];
})();

0 comments on commit d2bd13b

Please sign in to comment.