Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 16, 2011
  1. @Howard3

    Validator: Fixed a condition where 'format' wasn't being properly app…

    Howard3 authored
    …lied to validators with
    
    multiple format options. It was effectively always 'any' regardless of what it was set to.
        1: Fixing a condition where a null format passed to __callStatic would not be overridden with 'any'
        2: Removed the extract statement for readability.
        3: Fixed $options['all'] being dependent on $format being 'all' as opposed to it's actual
        value of 'any'
        4: Removed superfluous key extraction then rematching for the loop - foreach now just
        iterates over $rules instead of extracting the keys then piecing it back together.
        5: Added a continue statement for elements not in the formats array when $options['all'] is
        false.
        6: Removed format assignment, not necessary.
    
    ValidatorTest: Added some assertFalse tests for format when applied to validator arrays with
    formats. Previously only assertTrue was run, this led to a problem not being caught where fiormat
     wasn't being applied, any format could be readily swapped and it would still have validated as
     true.
Commits on Jun 12, 2011
  1. @Howard3
Something went wrong with that request. Please try again.