Skip to content

Commit

Permalink
Change method visibility from public to protected
Browse files Browse the repository at this point in the history
  • Loading branch information
chinpei215 committed Dec 28, 2016
1 parent 3c56b12 commit 5ab3f67
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Mailer/MailerAwareTrait.php
Expand Up @@ -35,7 +35,7 @@ trait MailerAwareTrait
* @return \Cake\Mailer\Mailer
* @throws \Cake\Mailer\Exception\MissingMailerException if undefined mailer class.
*/
public function getMailer($name, Email $email = null)
protected function getMailer($name, Email $email = null)
{
if ($email === null) {
$email = new Email();
Expand Down
2 changes: 1 addition & 1 deletion src/View/CellTrait.php
Expand Up @@ -55,7 +55,7 @@ trait CellTrait
* @throws \Cake\View\Exception\MissingCellException If Cell class was not found.
* @throws \BadMethodCallException If Cell class does not specified cell action.
*/
public function cell($cell, array $data = [], array $options = [])
protected function cell($cell, array $data = [], array $options = [])
{
$parts = explode('::', $cell);

Expand Down
4 changes: 3 additions & 1 deletion src/View/View.php
Expand Up @@ -73,7 +73,9 @@
class View implements EventDispatcherInterface
{

use CellTrait;
use CellTrait {
cell as public;
}
use EventDispatcherTrait;
use LogTrait;
use RequestActionTrait;
Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/Mailer/MailerAwareTraitTest.php
Expand Up @@ -23,7 +23,9 @@
class Stub
{

use MailerAwareTrait;
use MailerAwareTrait {
getMailer as public;
}
}

/**
Expand Down

0 comments on commit 5ab3f67

Please sign in to comment.