mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
PHP Coding Standards Fixer > fix coding standard
This commit is contained in:
@@ -34,6 +34,16 @@ class Sortable
|
||||
$this->position = $position;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns representation of object as string
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return sprintf('%s (position: %d)', self::class, $this->getPosition());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns position used while sorting
|
||||
*
|
||||
@@ -53,14 +63,4 @@ class Sortable
|
||||
{
|
||||
$this->position = $position;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns representation of object as string
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return sprintf('%s (position: %d)', self::class, $this->getPosition());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user