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: mlocati/ip-lib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.18.1
Choose a base ref
...
head repository: mlocati/ip-lib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.19.0
Choose a head ref
  • 2 commits
  • 8 files changed
  • 2 contributors

Commits on Dec 10, 2024

  1. Check PHP syntax (#92)

    mlocati authored Dec 10, 2024
    Configuration menu
    Copy the full SHA
    67ce14c View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2025

  1. Add split and getNetworkPrefix to IP ranges (#93)

    * [feat] add method split to range ips, to convert range smaller range
    
    * [refactor] change split method to array
    
    * [style]
    
    * [refactor] delete interface split
    
    * [test] add test
    
    * [style]
    
    * [test] php 5.3, 5.4, 5.5 compatibility
    
    * Describe the type of the result of the split method
    
    * Be sure that we receive an int as the argument of the split method
    
    * Always run all tests
    
    * Fix and simplify tests
    
    * Use Coveralls only for the mlocati's repo
    
    * Simplify "if" statements
    
    * Document that split() can throw a \RuntimeException
    
    * Optimization + accept a network prefix that's the same as the range's one
    
    * Use OutOfBoundsException if $networkPrefix is invalid
    
    * Check maximum range sizes for 32-bit systems
    
    * Fix running Coveralls
    
    * [feat] handle pattern range and update DocBlock
    
    * [fix] move split method to single class
    
    * [fix] fix class pattern
    
    * [chore] update return type
    
    * [test] add single test and pattern test
    
    * [style] add readme
    
    * [style]
    
    * Add getNetworkPrefix() to RangeInterface
    
    This implies checking $networkPrefix for Single::split() too, without efforts
    
    * Add $forceSubnet parameter, test overflow for 64-bit systems too
    
    * Fix coding style
    
    * Improve documentation about the split() method
    
    * Add @SInCE to split()
    
    ---------
    
    Co-authored-by: Michele Locati <michele@locati.it>
    alissn and mlocati authored Feb 4, 2025
    Configuration menu
    Copy the full SHA
    86ec0cf View commit details
    Browse the repository at this point in the history
Loading