Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed May 16, 2016
1 parent 1f88fad commit bbe1d98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion code/command/mixin/mixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function getMixableMethods($exclude = array())
/**
* Get the priority of the handler
*
* @return integer The handler priority
* @return integer The handler priority
*/
public function getPriority()
{
Expand Down
12 changes: 6 additions & 6 deletions code/dispatcher/abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ public function getController()
/**
* Method to set a controller object attached to the dispatcher
*
* @param mixed $controller An object that implements ControllerInterface, ObjectIdentifier object
* or valid identifier string
* @param mixed $controller An object that implements ControllerInterface, ObjectIdentifier object
* or valid identifier string
* @param array $config An optional associative array of configuration options
* @return $this
*/
Expand All @@ -182,9 +182,9 @@ public function setController($controller, $config = array())
$controller = StringInflector::singularize($controller);
}

$identifier = $this->getIdentifier()->toArray();
$identifier['path'] = array('controller');
$identifier['name'] = $controller;
$identifier = $this->getIdentifier()->toArray();
$identifier['path'] = array('controller');
$identifier['name'] = $controller;

$identifier = $this->getIdentifier($identifier);
}
Expand Down Expand Up @@ -301,7 +301,7 @@ protected function _actionRedirect(DispatcherContextInterface $context)
* Handle errors and exceptions
*
* @throws \InvalidArgumentException If the action parameter is not an instance of Exception or ExceptionError
* @param DispatcherContextInterface $context A dispatcher context object
* @param DispatcherContextInterface $context A dispatcher context object
*/
protected function _actionFail(DispatcherContextInterface $context)
{
Expand Down

0 comments on commit bbe1d98

Please sign in to comment.