mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix a few code standards errors.
This commit is contained in:
parent
ff35762e92
commit
a24aca6ffc
4 changed files with 4 additions and 5 deletions
|
@ -134,7 +134,7 @@ class ShellDispatcher {
|
|||
include_once CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'Console' . DS . 'Templates' . DS . 'skel' . DS . 'Config' . DS . 'core.php';
|
||||
App::build();
|
||||
}
|
||||
|
||||
|
||||
$this->setErrorHandlers();
|
||||
|
||||
if (!defined('FULL_BASE_URL')) {
|
||||
|
|
|
@ -1168,7 +1168,7 @@ class DboSource extends DataSource {
|
|||
* @return mixed
|
||||
* @throws CakeException when results cannot be created.
|
||||
*/
|
||||
public function queryAssociation(Model $model, &$linkModel, $type, $association, $assocData, &$queryData, $external = false, &$resultSet, $recursive, $stack) {
|
||||
public function queryAssociation(Model $model, &$linkModel, $type, $association, $assocData, &$queryData, $external, &$resultSet, $recursive, $stack) {
|
||||
if ($query = $this->generateAssociationQuery($model, $linkModel, $type, $association, $assocData, $queryData, $external, $resultSet)) {
|
||||
if (!is_array($resultSet)) {
|
||||
throw new CakeException(__d('cake_dev', 'Error in Model %s', get_class($model)));
|
||||
|
@ -1453,7 +1453,7 @@ class DboSource extends DataSource {
|
|||
* @param array $resultSet
|
||||
* @return mixed
|
||||
*/
|
||||
public function generateAssociationQuery(Model $model, $linkModel, $type, $association = null, $assocData = array(), &$queryData, $external = false, &$resultSet) {
|
||||
public function generateAssociationQuery(Model $model, $linkModel, $type, $association, $assocData, &$queryData, $external, &$resultSet) {
|
||||
$queryData = $this->_scrubQueryData($queryData);
|
||||
$assocData = $this->_scrubQueryData($assocData);
|
||||
$modelAlias = $model->alias;
|
||||
|
|
|
@ -496,7 +496,6 @@ class CakeEmail {
|
|||
return $this->headerCharset = $charset;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set email
|
||||
*
|
||||
|
|
|
@ -454,7 +454,7 @@ podeís adquirirla.</span></p>
|
|||
$result = $this->Text->highlight($text, $phrases, array('format' => '<b>\1</b>'));
|
||||
$expected = '<b>This</b> is a test <b>text</b>';
|
||||
$this->assertEquals($expected, $result);
|
||||
|
||||
|
||||
$phrases = array('is', 'text');
|
||||
$result = $this->Text->highlight($text, $phrases, array('format' => '<b>\1</b>', 'regex' => "|\b%s\b|iu"));
|
||||
$expected = 'This <b>is</b> a test <b>text</b>';
|
||||
|
|
Loading…
Reference in a new issue