From: Ap.Muthu Date: Mon, 8 Apr 2013 15:46:02 +0000 (+0530) Subject: Replaced all "=&$var" with "= &$var" to standardize for later removal of deprecated... X-Git-Tag: whats-been-changed~351 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/aa519085fb073b4d0d6293f17b9c4ad00ce7aa84 Replaced all "=&$var" with "= &$var" to standardize for later removal of deprecated pass by reference --- diff --git a/controllers/C_Document.class.php b/controllers/C_Document.class.php index 8c14072a4..5032c9680 100644 --- a/controllers/C_Document.class.php +++ b/controllers/C_Document.class.php @@ -962,12 +962,12 @@ class C_Document extends Controller { $rnode = new HTML_TreeNode(array("id" => $id, 'text' => $this->tree->get_node_name($id), 'link' => $this->_link("upload") . "parent_id=" . $id . "&", 'icon' => $icon, 'expandedIcon' => $expandedIcon, 'expanded' => false)); $this->_last_node = &$rnode; $node = &$rnode; - $current_node =&$rnode; + $current_node = &$rnode; } else { //echo "p:" . $this->tree->get_node_name($id) . "
"; $this->_last_node = &$node->addItem(new HTML_TreeNode(array("id" => $id, 'text' => $this->tree->get_node_name($id), 'link' => $this->_link("upload") . "parent_id=" . $id . "&", 'icon' => $icon, 'expandedIcon' => $expandedIcon))); - $current_node =&$this->_last_node; + $current_node = &$this->_last_node; } $this->_array_recurse($ar,$categories); diff --git a/library/html2pdf/_fpdf/fpdf.php b/library/html2pdf/_fpdf/fpdf.php index 51f5d598a..06504de2e 100644 --- a/library/html2pdf/_fpdf/fpdf.php +++ b/library/html2pdf/_fpdf/fpdf.php @@ -416,7 +416,7 @@ function GetStringWidth($s) { //Get width of a string in the current font $s=(string)$s; - $cw=&$this->CurrentFont['cw']; + $cw = &$this->CurrentFont['cw']; $w=0; $l=strlen($s); for($i=0;$i<$l;$i++) @@ -555,7 +555,7 @@ function SetFont($family, $style='', $size=0) $this->FontStyle=$style; $this->FontSizePt=$size; $this->FontSize=$size/$this->k; - $this->CurrentFont=&$this->fonts[$fontkey]; + $this->CurrentFont = &$this->fonts[$fontkey]; if($this->page>0) $this->_out(sprintf('BT /F%d %.2F Tf ET',$this->CurrentFont['i'],$this->FontSizePt)); } @@ -694,7 +694,7 @@ function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false) { //Output text with automatic or explicit line breaks - $cw=&$this->CurrentFont['cw']; + $cw = &$this->CurrentFont['cw']; if($w==0) $w=$this->w-$this->rMargin-$this->x; $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; @@ -807,7 +807,7 @@ function MultiCell($w, $h, $txt, $border=0, $align='J', $fill=false) function Write($h, $txt, $link='') { //Output text in flowing mode - $cw=&$this->CurrentFont['cw']; + $cw = &$this->CurrentFont['cw']; $w=$this->w-$this->rMargin-$this->x; $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; $s=str_replace("\r",'',$txt); @@ -1530,7 +1530,7 @@ function _putfonts() $this->_out('endobj'); //Widths $this->_newobj(); - $cw=&$font['cw']; + $cw = &$font['cw']; $s='['; for($i=32;$i<=255;$i++) $s.=$cw[chr($i)].' '; diff --git a/phpmyadmin/libraries/tcpdf/tcpdf.php b/phpmyadmin/libraries/tcpdf/tcpdf.php index 3173c6df6..8f6963e49 100644 --- a/phpmyadmin/libraries/tcpdf/tcpdf.php +++ b/phpmyadmin/libraries/tcpdf/tcpdf.php @@ -2711,7 +2711,7 @@ if(!class_exists('TCPDF')) { $this->_out('endobj'); //Widths $this->_newobj(); - $cw=&$font['cw']; + $cw = &$font['cw']; $s='['; for($i=32;$i<=255;$i++) { $s.=$cw[chr($i)].' ';