Changeset 1882

Show
Ignore:
Timestamp:
10/07/08 14:38:56 (1 month ago)
Author:
richi
Message:

coding standard: fixed issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework/trunk/src/main/php/net/stubbles/ipo/request/broker/annotations/stubDateFilterAnnotation.php

    r1867 r1882  
    8888            $minDate = new stubDate($minDate); 
    8989        } 
    90          
     90 
    9191        $this->minDate = $minDate; 
    9292    } 
     
    132132            $maxDate = new stubDate($maxDate); 
    133133        } 
    134          
     134 
    135135        $this->maxDate = $maxDate; 
    136136    } 
     
    159159     * sets the error id to use in case max date validation fails 
    160160     * 
    161      * @param  string  $maxErrorId 
     161     * @param  string  $maxDateErrorId 
    162162     */ 
    163163    public function setMaxDateErrorId($maxDateErrorId) 
     
    190190            $this->setMaxDate($this->getDateFromProvider($this->maxDateProviderClass, $this->maxDateProviderMethod)); 
    191191        } 
    192          
     192 
    193193        if (null !== $this->minDate || null !== $this->maxDate) { 
    194194            $filter = new stubPeriodFilterDecorator($filter, $this->createRVEFactory()); 
     
    196196                $filter->setMinDate($this->minDate, $this->minDateErrorId); 
    197197            } 
    198              
     198 
    199199            if (null !== $this->maxDate) { 
    200200                $filter->setMaxDate($this->maxDate, $this->maxDateErrorId); 
    201201            } 
    202              
     202 
    203203            if (null != $this->dateFormat) { 
    204204                $filter->setDateFormat($this->dateFormat); 
    205205            } 
    206206        } 
    207          
     207 
    208208        return $filter; 
    209209    } 
     
    222222            return $method->invoke(null); 
    223223        } 
    224          
     224 
    225225        return $method->invoke($providerClass->newInstance()); 
    226226    } 
  • framework/trunk/src/main/php/net/stubbles/ipo/request/filter/stubPeriodFilterDecorator.php

    r1863 r1882  
    107107     * 
    108108     * @param  stubDate  $maxDate 
    109      * @param  string    $maxLengthErrorId  optional  error id to use in case validation fails 
     109     * @param  string    $maxDateErrorId  optional  error id to use in case validation fails 
    110110     */ 
    111111    public function setMaxDate(stubDate $maxDate, $maxDateErrorId = null) 
     
    169169            return null; 
    170170        } 
    171          
     171 
    172172        if (null != $this->minDate && $this->minDate->isAfter($value) === true) { 
    173173            throw new stubFilterException($this->rveFactory->create($this->minDateErrorId)->setValues(array('earliestDate' => $this->minDate->format($this->dateFormat)))); 
     
    175175            throw new stubFilterException($this->rveFactory->create($this->maxDateErrorId)->setValues(array('latestDate' => $this->maxDate->format($this->dateFormat)))); 
    176176        } 
    177          
     177 
    178178        return $value; 
    179179    } 
  • framework/trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisPatTemplate.php

    r1879 r1882  
    3838     * constructor 
    3939     * 
    40      * @param  string  $baseDir     directory where template files can be found 
    41      * @param  array   $namespaces  optional  namespaces for patTemplate tags, default patTemplate 
    42      * @param  array   $options     optional  configuration options for patTemplate 
     40     * @param   string  $baseDir     directory where template files can be found 
     41     * @param   array   $namespaces  optional  namespaces for patTemplate tags, default patTemplate 
     42     * @param   array   $options     optional  configuration options for patTemplate 
     43     * @throws  stubConfigurationException 
    4344     */ 
    4445    public function __construct($baseDir, array $namespaces = array(), array $options = array()) 
     
    5051                throw new stubConfigurationException('The registry entry net.php-tools.path is not configured.'); 
    5152            } 
    52              
     53 
    5354            stubClassLoader::load('net::stubbles::util::ext::stubPhpToolsClassLoader'); 
    5455            $patClassLoader = new stubPhpToolsClassLoader(stubRegistry::getConfig('net.php-tools.path')); 
     
    5859            self::$initialized = true; 
    5960        } 
    60          
     61 
    6162        if (count($namespaces) === 0) { 
    6263            $namespaces = array('patTemplate'); 
    6364        } 
    64          
     65 
    6566        if (isset($options['componentExtension']) === false) { 
    6667            $options['componentExtension'] = '.tmpl'; 
    6768        } 
    68          
     69 
    6970        $this->template = new patTemplate(); 
    7071        $this->template->setBasedir($baseDir); 
     
    8182     * stubConfig::getCachePath() . '/patTemplate'. The default prefix will be 
    8283     * 'tmpl_', the default patTemplate cache driver used will be the File driver. 
    83      *  
     84     * 
    8485     * @param  string  $cacheDir  optional  directory to put cache files into 
    8586     * @param  string  $prefix    optional  prefix for cache files 
     
    9192            $cacheDir = stubConfig::getCachePath() . '/patTemplate'; 
    9293        } 
    93          
     94 
    9495        $this->template->useTemplateCache($type, array('cacheFolder' => $cacheDir, 
    9596                                                       'prefix'      => $prefix 
     
    114115            throw new stubException($return->getMessage()); 
    115116        } 
    116          
     117 
    117118        return $return; 
    118119    } 
     
    197198            throw new stubException($return->getMessage()); 
    198199        } 
    199          
     200 
    200201        return $return; 
    201202    } 
     
    217218                throw new stubException($return->getMessage()); 
    218219            } 
    219              
     220 
    220221            return $return; 
    221222        } 
    222          
     223 
    223224        $backtrace = debug_backtrace(); 
    224225        throw new stubIllegalAccessException('Method patTemplate::' . $method . ' called in ' . $backtrace[2]['class'] . '::' . $backtrace[2]['function'] . '() on line ' . $backtrace[2]['line'] . ' does not exist.');