Skip to content

Commit

Permalink
Improved code climate
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed May 16, 2016
1 parent 0fac026 commit 8dbd870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resource/Domain/Model/Resource/AbstractResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ protected function callPartMethod(array $partMethod, array $arguments)
* @param array $arguments Part method arguments
* @return mixed Getter result
*/
protected function callGetterPartMethod($partMethod, array $arguments) {
protected function callGetterPartMethod($partMethod, array $arguments)
{
$subparts = $this->partPath(count($arguments) ? $arguments[0] : '/');
return $this->part()->delegate($partMethod, $subparts, []);
}
Expand All @@ -252,7 +253,8 @@ protected function callGetterPartMethod($partMethod, array $arguments) {
* @param array $arguments Part method arguments
* @return AbstractResource Self reference
*/
protected function callNonGetterPartMethod($partMethod, array $arguments) {
protected function callNonGetterPartMethod($partMethod, array $arguments)
{
$subparts = $this->partPath((count($arguments) > 1) ? $arguments[1] : '/');
$this->part = $this->part()->delegate($partMethod, $subparts, array_slice($arguments, 0, 1));
return $this;
Expand Down

0 comments on commit 8dbd870

Please sign in to comment.