This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0f331b
commit 5789aec
Showing
19 changed files
with
182 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2018 TDE | ||
Copyright (c) 2024 On Your Marks | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="OYM"> | ||
<description>The OYM coding standard.</description> | ||
<rule ref="PSR12"> | ||
<exclude name="Generic.Files.LineLength"/> | ||
</rule> | ||
|
||
<file>src/</file> | ||
|
||
<exclude-pattern type="relative-root">*.js</exclude-pattern> | ||
<exclude-pattern type="relative-root">deprecated.php</exclude-pattern> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<?php | ||
|
||
namespace tde\craft\geoaddress { | ||
spl_autoload_register( | ||
static function (string $className) { | ||
$old = 'tde\\craft\\geoaddress\\'; | ||
$new = 'oym\\craft\\geoaddress\\'; | ||
|
||
if (0 !== strpos($className, $old)) { | ||
return; | ||
} | ||
|
||
$newName = substr_replace($className, $new, 0, strlen($old)); | ||
class_alias($newName, $className); | ||
}, | ||
true, | ||
false, | ||
); | ||
|
||
if (!\class_exists(GeoAddress::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\GeoAddress */ | ||
class GeoAddress | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\assetbundles\geoaddressfield { | ||
if (!\class_exists(GeoAddressFieldAsset::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\assetbundles\geoaddressfield\GeoAddressFieldAsset */ | ||
class GeoAddressFieldAsset | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\fields { | ||
if (!\class_exists(GeoAddressField::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\fields\GeoAddressField */ | ||
class GeoAddressField | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\gql\types { | ||
if (!\class_exists(AddressType::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\gql\types\AddressType */ | ||
class AddressType | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\migrations { | ||
if (!\class_exists(m220516_144416_update_field_handle::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\migrations\m220516_144416_update_field_handle */ | ||
class m220516_144416_update_field_handle | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\models { | ||
if (!\class_exists(GeoAddressModel::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\models\GeoAddressModel */ | ||
class GeoAddressModel | ||
{ | ||
} | ||
} | ||
|
||
if (!\class_exists(GeoAddressSettingsModel::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\models\GeoAddressSettingsModel */ | ||
class GeoAddressSettingsModel | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\services { | ||
if (!\class_exists(GeoAddressService::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\services\GeoAddressService */ | ||
class GeoAddressService | ||
{ | ||
} | ||
} | ||
} | ||
|
||
namespace tde\craft\geoaddress\twigextensions { | ||
if (!\class_exists(GeoAddressTwigExtension::class)) { | ||
/** @deprecated this is an alias for \oym\craft\geoaddress\twigextensions\GeoAddressTwigExtension */ | ||
class GeoAddressTwigExtension | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.