Skip to content

Conversation

@PLoic
Copy link
Contributor

@PLoic PLoic commented Aug 9, 2017

No description provided.

@PLoic PLoic requested review from mike1796 and quentinus95 August 9, 2017 08:08
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

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.

4 participants