Skip to content

Commit 1aab757

Browse files
authored
Merge pull request #163 from maxmind/horgh/lint
Fix lints
2 parents 60ad8c7 + 9ad1928 commit 1aab757

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,6 @@ The MaxMind DB Reader PHP API uses [Semantic Versioning](https://semver.org/).
180180

181181
## Copyright and License ##
182182

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

185185
This is free software, licensed under the Apache License, Version 2.0.

autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function mmdb_autoload($class): void
3535
$path = str_replace('\\', '/', $path);
3636

3737
// and finally, add the PHP file extension to the result.
38-
$path = $path . '.php';
38+
$path .= '.php';
3939

4040
// $path should now contain the path to a PHP file defining $class
4141
if (file_exists($path)) {

src/MaxMind/Db/Reader/Decoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ private function decodePointer(int $ctrlByte, int $offset): array
265265
$pointerSize = (($ctrlByte >> 3) & 0x3) + 1;
266266

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

270270
switch ($pointerSize) {
271271
case 1:

0 commit comments

Comments
 (0)