Skip to content

Commit 1614471

Browse files
committed
Reorder the functions
1 parent c9385ac commit 1614471

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/OpenLocationCode.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ public function decode(): CodeArea
253253
);
254254
}
255255

256+
public function __toString(): string
257+
{
258+
return $this->code;
259+
}
260+
256261
/**
257262
* Returns short Open Location Code from the full Open Location Code created by removing four or six digits,
258263
* depending on the provided reference poi9nt. It removes as many digits as possible.
@@ -447,11 +452,6 @@ public static function isValidCode(?string $code): bool
447452
return true;
448453
}
449454

450-
public function __toString(): string
451-
{
452-
return $this->code;
453-
}
454-
455455
/**
456456
* Returns whether this Open Location code is valid.
457457
* @return bool True if it is a valid full or short code.

0 commit comments

Comments
 (0)