Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
TODO整理、不要なコードを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Apr 16, 2023
1 parent 6af1265 commit 6bdafd9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions plugins/baser-core/src/Model/Table/ContentFoldersTable.php
Expand Up @@ -87,7 +87,7 @@ public function validationDefault(Validator $validator): Validator
* @param EventInterface $event
* @param EntityInterface $entity
* @param ArrayObject $options
* @return bool
* @return void
* @checked
* @noTodo
* @unitTest
Expand All @@ -99,7 +99,6 @@ public function beforeSave(EventInterface $event, EntityInterface $entity, Array
$this->isMovableTemplate = false;
$this->setBeforeRecord($entity->id);
}
return parent::beforeSave($event, $entity, $options);
}

/**
Expand Down
3 changes: 1 addition & 2 deletions plugins/baser-core/src/Model/Table/ContentsTable.php
Expand Up @@ -433,7 +433,7 @@ public function getUniqueName($name, $parentId, $contentId = null)
* @param EventInterface $event
* @param EntityInterface $entity
* @param ArrayObject $options
* @return bool
* @return void
* @checked
* @noTodo
* @unitTest
Expand All @@ -446,7 +446,6 @@ public function beforeSave(EventInterface $event, EntityInterface $entity, Array
if (!empty($entity->name)) {
$entity->name = $this->urlEncode(mb_substr(rawurldecode($entity->name), 0, 230, 'UTF-8'));
}
return parent::beforeSave($event, $entity, $options);
}

/**
Expand Down
Expand Up @@ -128,7 +128,6 @@ public function setTreeScope(int $tableId): void
*/
public function beforeSave(EventInterface $event, EntityInterface $entity, ArrayObject $options)
{
parent::beforeSave($event, $entity, $options);
if ($entity->isNew()) {
$entity->name = $this->getUniqueName($entity->name, $entity->custom_table_id);
}
Expand Down

0 comments on commit 6bdafd9

Please sign in to comment.