Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psr4 #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Psr4 #37

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 27 additions & 22 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
{
"name": "gorriecoe/silverstripe-link",
"description": "Adds a Link Object that can be link to a URL, Email, Phone number, an internal Page or File.",
"type": "silverstripe-vendormodule",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Gorrie Coe",
"email": "[email protected]"
"name": "gorriecoe/silverstripe-link",
"description": "Adds a Link Object that can be link to a URL, Email, Phone number, an internal Page or File.",
"type": "silverstripe-vendormodule",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Gorrie Coe",
"email": "[email protected]"
}
],
"keywords": [
"silverstripe",
"link"
],
"homepage": "https://gorriecoe.github.io/silverstripe-link/en/",
"require": {
"silverstripe/framework": "^4 || ^5",
"unclecheese/display-logic": "^2 || ^3",
"giggsey/libphonenumber-for-php": "^8.0"
},
"extra": {
"installer-name": "link"
},
"autoload": {
"psr-4": {
"gorriecoe\\Link\\": "src/"
}
}
],
"keywords": [
"silverstripe",
"link"
],
"homepage": "https://gorriecoe.github.io/silverstripe-link/en/",
"require": {
"silverstripe/framework": "^4 || ^5",
"unclecheese/display-logic": "^2 || ^3",
"giggsey/libphonenumber-for-php": "^8.0"
},
"extra": {
"installer-name": "link"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
* Adds methods to DBString to help manipulate the output suitable for links
*
* @package silverstripe-link
* @property \SilverStripe\ORM\FieldType\DBString&\gorriecoe\Link\Extensions\DBStringLink $owner
*/
class DBStringLink extends DataExtension
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
/**
* Add sitetree type to link object
*
* @package silverstripe-link
*
* @property Link|$this owner
* @property int SiteTreeID
* @method SiteTree SiteTree()
* @property \gorriecoe\Link\Models\Link&\gorriecoe\Link\Extensions\LinkSiteTree $owner
* @property string $Anchor
* @property int $SiteTreeID
* @method \SilverStripe\CMS\Model\SiteTree SiteTree()
*/
class LinkSiteTree extends DataExtension
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Fixes duplicate link in SiteTree
*
* @package silverstripe-link
* @property \SilverStripe\CMS\Model\SiteTree&\gorriecoe\Link\Extensions\SiteTreeLink $owner
*/
class SiteTreeLink extends DataExtension
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 14 additions & 13 deletions src/models/Link.php → src/Models/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,20 @@
/**
* Link
*
* @package silverstripe
* @subpackage silverstripe-link
*
* @property string Title
* @property string Type
* @property string URL
* @property string Email
* @property string Phone
* @property bool OpenInNewWindow
* @property string SelectedStyle
* @property int FileID
* @method File File()
* @mixin LinkSiteTree
* @property string $Anchor
* @property string $Title
* @property string $Type
* @property string $URL
* @property string $Email
* @property string $Phone
* @property bool $OpenInNewWindow
* @property string $SelectedStyle
* @property int $SiteTreeID
* @property int $FileID
* @method \SilverStripe\CMS\Model\SiteTree SiteTree()
* @method \SilverStripe\Assets\File File()
* @mixin \gorriecoe\Link\Extensions\LinkSiteTree
* @mixin \gorriecoe\LinkField\Extensions\LinkExtension
*/
class Link extends DataObject
{
Expand Down
File renamed without changes.