Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mcaskill/php-html-build-attributes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: mcaskill/php-html-build-attributes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.1.0
Choose a head ref
  • 7 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 24, 2017

  1. Add branch-alias

    mcaskill committed Nov 24, 2017
    Configuration menu
    Copy the full SHA
    40c3331 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2021

  1. Configuration menu
    Copy the full SHA
    af13e66 View commit details
    Browse the repository at this point in the history
  2. Improve attribute value handling

    Changed:
    - Replaced `array_map()` with `foreach` to maintain support for array keys while allowing easy exclusion of attributes.
    
    Fixed:
    - Superfluous spaces by ignoring NULL values.
    - Support for boolean values from callable values.
    - Support for numeric (integer and float) values not always rendering.
    mcaskill committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    320b509 View commit details
    Browse the repository at this point in the history
  3. Improve attribute name handling

    Added:
    - Condition to trim leading and trailing whitespace from the array key.
    - Condition to ignore any empty array key.
    mcaskill committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    da9fcf4 View commit details
    Browse the repository at this point in the history
  4. Add support for attributes as an object

    Fixed:
    - Lack of support for objects as affirmed in the README.
    mcaskill committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    1a68b93 View commit details
    Browse the repository at this point in the history
  5. Change internal function calls

    Changed:
    - Removed unnecessary call to `jsonSerialize()` method when directly used with `json_encode()`
    - Replaced `call_user_func()` with direct calling of `$callback`
    mcaskill committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    334deef View commit details
    Browse the repository at this point in the history
  6. Update README

    Changed:
    - Hard-wrapped lines to ~80 characters for consistent reading.
    - Updated version information to indicate function is compatible with PHP 7 and PHP 8.
    - Improved description of parameters and return values.
    - Replaced inline links with reference links.
    mcaskill committed Mar 2, 2021
    Configuration menu
    Copy the full SHA
    39a8f37 View commit details
    Browse the repository at this point in the history
Loading