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

Add metadata location #23

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

Add metadata location #23

wants to merge 5 commits into from

Conversation

PLoic
Copy link
Contributor

@PLoic PLoic commented Aug 9, 2017

No description provided.

Copy link
Member

@quentinus95 quentinus95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer you to use a location resource (with a one to one between metadata and location) with two latitude/ longitude fields to have a standardised way to store the locations

Copy link
Member

@quentinus95 quentinus95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some issues with the code style

*/
class Location
{

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the blank line


/**
*
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the two empty lines

*/
protected $latitude;


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove one blank line


/**
*
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the two blank lines

*/
protected $longitude;


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the blank line

private $metadata;

/**
* @return Metadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all the annotation blocks from the methods

{
$this->longitude = $longitude;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the blank line

@@ -103,4 +111,17 @@ public function setFormat(string $format): Metadata

return $this;
}

public function getLocation()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return type is missing (here it should be ?Location)

Copy link
Member

@mike1796 mike1796 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also use php-cs-fixer to correct differents problems for the validity of your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants