Development

Changeset 9189

You must first sign up to be able to contribute.

Changeset 9189

Show
Ignore:
Timestamp:
05/22/08 19:39:35 (4 months ago)
Author:
FabianLange
Message:

fixed coding standards. refs #3605

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/helper/TextHelper.php

    r8392 r9189  
    9595    if ($excerpt_space) 
    9696    { 
    97       //only cut off at ends where $exceprt_string is added 
     97      // only cut off at ends where $exceprt_string is added 
    9898      if($prefix) 
    9999      { 
  • branches/1.0/lib/helper/sfRichTextEditorFCK.class.php

    r8823 r9189  
    8787    $content = $fckeditor->CreateHtml(); 
    8888 
    89     //fix for http://trac.symfony-project.com/ticket/732 
    90     //fields need to be of type text to be picked up by fillin. they are hidden by inline css anyway: 
    91     //<input type="hidden" id="name" name="name" style="display:none" value="&lt;p&gt;default&lt;/p&gt;"> 
     89    // fix for http://trac.symfony-project.com/ticket/732 
     90    // fields need to be of type text to be picked up by fillin. they are hidden by inline css anyway: 
     91    // <input type="hidden" id="name" name="name" style="display:none" value="&lt;p&gt;default&lt;/p&gt;"> 
    9292    $content = str_replace('type="hidden"','type="text"',$content); 
    9393 
  • branches/1.0/lib/i18n/util.php

    r2757 r9189  
    152152    if ($from != 'UTF-8') 
    153153    { 
    154       $s = iconv($from,'UTF-8',$string); //to UTF-8 
    155       return $s !== false ? $s : $string; //it could return false 
     154      $s = iconv($from,'UTF-8',$string);  // to UTF-8 
     155 
     156      return $s !== false ? $s : $string; // it could return false 
    156157    } 
    157158 
     
    171172    { 
    172173      $s = iconv('UTF-8', $to, $string); 
     174 
    173175      return $s !== false ? $s : $string; 
    174176    } 
  • branches/1.0/lib/util/sfFillInForm.class.php

    r8716 r9189  
    4747    $noHead = strpos($html,'<head>') === false; 
    4848    if ($noHead){ 
    49       //loadHTML needs the conent-type meta for the charset 
     49      // loadHTML needs the conent-type meta for the charset 
    5050      $html = '<meta http-equiv="Content-Type" content="text/html; charset='.sfConfig::get('sf_charset').'"/>'.$html; 
    5151    } 
     
    5555 
    5656    if($noHead){ 
    57       //remove the head element that was created by adding the meta tag. 
     57      // remove the head element that was created by adding the meta tag. 
    5858      $headElement = $dom->getElementsByTagName('head')->item(0); 
    5959      if ($headElement) 
     
    173173      else if ($element->nodeName == 'select') 
    174174      { 
    175         //if the name contains [] it is part of an array that needs to be shifted 
     175        // if the name contains [] it is part of an array that needs to be shifted 
    176176        $value    = $this->getValue($values, $name, strpos($name,'[]') !== false); 
    177177        $multiple = $element->hasAttribute('multiple'); 
     
    207207  } 
    208208 
    209   //use reference to values so that arrays can be shifted. 
     209  // use reference to values so that arrays can be shifted. 
    210210  protected function getValue(&$values, $name, $shiftArray = false) 
    211211  { 
     
    215215      if ($shiftArray && is_array($return)) 
    216216      { 
    217         //we need to remove the first element from the array. Therefore we need a reference 
     217        // we need to remove the first element from the array. Therefore we need a reference 
    218218        $arrayRef = &$values[$name]; 
    219219        $return = array_shift($arrayRef);