Skip to content

Commit

Permalink
phpcs、phpmdエラー修正
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Jan 15, 2017
1 parent 88326b0 commit 5dab2db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Model/Behavior/AddM17nBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class AddM17nBehavior extends ModelBehavior {
* @throws InternalErrorException
*/
public function saveTranslation(Model $model) {
$dataSource = ConnectionManager::getDataSource($model->useDbConfig);
$tables = $dataSource->listSources();
//$dataSource = ConnectionManager::getDataSource($model->useDbConfig);
//$tables = $dataSource->listSources();

// if (! in_array($model->tablePrefix . $model->useTable, $tables)) {
// return false;
// }
//if (! in_array($model->tablePrefix . $model->useTable, $tables)) {
// return false;
//}

return true;
}
Expand Down

0 comments on commit 5dab2db

Please sign in to comment.