Skip to content

Commit d2659e5

Browse files
committed
code conventions
1 parent 9706aa5 commit d2659e5

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

src/DebugBar/JavascriptRenderer.php

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -717,12 +717,13 @@ public function renderHead()
717717

718718
/**
719719
* Register shutdown to display the debug bar
720-
*
720+
*
721721
* @param boolean $here Set position of HTML. True if is to current position or false for end file
722722
* @param boolean $initialize Whether to render the de bug bar initialization code
723723
* @return string Return "{--DEBUGBAR_OB_START_REPLACE_ME--}" or return an empty string if $here == false
724724
*/
725-
public function renderOnShutdown($here = true, $initialize = true, $renderStackedData = true, $head = false) {
725+
public function renderOnShutdown($here = true, $initialize = true, $renderStackedData = true, $head = false)
726+
{
726727
register_shutdown_function(array($this, "replaceTagInBuffer"), $here, $initialize, $renderStackedData, $head);
727728

728729
if (ob_get_level() === 0) {
@@ -732,18 +733,29 @@ public function renderOnShutdown($here = true, $initialize = true, $renderStacke
732733
return ($here) ? self::REPLACEABLE_TAG : "";
733734
}
734735

735-
public function renderOnShutdownWithHead($here = true, $initialize = true, $renderStackedData = true) {
736+
/**
737+
* Same as renderOnShutdown() with $head = true
738+
*
739+
* @param boolean $here
740+
* @param boolean $initialize
741+
* @param boolean $renderStackedData
742+
* @return string
743+
*/
744+
public function renderOnShutdownWithHead($here = true, $initialize = true, $renderStackedData = true)
745+
{
736746
return $this->renderOnShutdown($here, $initialize, $renderStackedData, true);
737747
}
738748

739749
/**
740750
* Is callback function for register_shutdown_function(...)
741-
*
751+
*
742752
* @param boolean $here Set position of HTML. True if is to current position or false for end file
743753
* @param boolean $initialize Whether to render the de bug bar initialization code
744754
*/
745-
public function replaceTagInBuffer($here = true, $initialize = true, $renderStackedData = true, $head = false) {
746-
$render = (($head)?$this->renderHead():"").$this->render($initialize, $renderStackedData);
755+
public function replaceTagInBuffer($here = true, $initialize = true, $renderStackedData = true, $head = false)
756+
{
757+
$render = ($head ? $this->renderHead() : "")
758+
. $this->render($initialize, $renderStackedData);
747759

748760
$current = ($here && ob_get_level() > 0) ? ob_get_clean() : self::REPLACEABLE_TAG;
749761

0 commit comments

Comments
 (0)