Permalink
Browse files

fIx CS and wrong function calls

  • Loading branch information...
antograssiot committed Jan 10, 2017
1 parent 56200bb commit 3d00d40c1f45fd57b9e72601cb38248f55820014
@@ -583,7 +583,7 @@ public function renderAs(Controller $controller, $type, array $options = [])
if ($viewClass) {
$controller->viewClass = $viewClass;
$builder->getClassName($viewClass);
$builder->setClassName($viewClass);
} else {
if (!$this->_renderType) {
$builder->setTemplatePath($builder->getTemplatePath() . DIRECTORY_SEPARATOR . $type);
@@ -176,7 +176,7 @@ protected function _joinCondition($options)
if (count($foreignKey) !== count($bindingKey)) {
if (empty($bindingKey)) {
$msg = 'The "%s" table does not define a primary key. Please set one.';
throw new RuntimeException(sprintf($msg, $this->setTarget()->getTable()));
throw new RuntimeException(sprintf($msg, $this->getTarget()->getTable()));
}
$msg = 'Cannot match provided foreignKey for "%s", got "(%s)" but expected foreign key for "(%s)"';
@@ -1084,7 +1084,7 @@ protected function junctionConditions()
*/
public function find($type = null, array $options = [])
{
$type = $type ?: $this->getFinder() ;
$type = $type ?: $this->getFinder();
list($type, $opts) = $this->_extractFinder($type);
$query = $this->getTarget()
->find($type, $options + $opts)
@@ -53,7 +53,7 @@ public function email($new = false)
{
if ($new || !$this->_email) {
$this->_email = new Email();
$this->_email->getProfile(['transport' => 'debug'] + $this->_email->getProfile());
$this->_email->setProfile(['transport' => 'debug'] + $this->_email->getProfile());
}
return $this->_email;

0 comments on commit 3d00d40

Please sign in to comment.