Skip to content

Commit

Permalink
Merge pull request #163 from maxmind/horgh/lint
Browse files Browse the repository at this point in the history
Fix lints
  • Loading branch information
faktas2 authored Sep 25, 2023
2 parents 60ad8c7 + 9ad1928 commit 1aab757
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ The MaxMind DB Reader PHP API uses [Semantic Versioning](https://semver.org/).

## Copyright and License ##

This software is Copyright (c) 2014-2021 by MaxMind, Inc.
This software is Copyright (c) 2014-2023 by MaxMind, Inc.

This is free software, licensed under the Apache License, Version 2.0.
2 changes: 1 addition & 1 deletion autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function mmdb_autoload($class): void
$path = str_replace('\\', '/', $path);

// and finally, add the PHP file extension to the result.
$path = $path . '.php';
$path .= '.php';

// $path should now contain the path to a PHP file defining $class
if (file_exists($path)) {
Expand Down
2 changes: 1 addition & 1 deletion src/MaxMind/Db/Reader/Decoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private function decodePointer(int $ctrlByte, int $offset): array
$pointerSize = (($ctrlByte >> 3) & 0x3) + 1;

$buffer = Util::read($this->fileStream, $offset, $pointerSize);
$offset = $offset + $pointerSize;
$offset += $pointerSize;

switch ($pointerSize) {
case 1:
Expand Down

0 comments on commit 1aab757

Please sign in to comment.