Skip to content

Commit

Permalink
コード整理
Browse files Browse the repository at this point in the history
マーキング漏れを追加
  • Loading branch information
ryuring committed Oct 9, 2023
1 parent 610664c commit d9d6e4a
Show file tree
Hide file tree
Showing 60 changed files with 441 additions and 622 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
* @license https://basercms.net/license/index.html MIT License
*/

namespace BaserCore\Middleware;
namespace Middleware;

use BaserCore\Middleware\Configure;
use BaserCore\Middleware\View;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
Expand Down
4 changes: 4 additions & 0 deletions plugins/baser-core/src/Command/ComposerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ComposerCommand extends Command
*
* @param \Cake\Console\ConsoleOptionParser $parser
* @return \Cake\Console\ConsoleOptionParser
* @checked
* @noTodo
*/
protected function buildOptionParser(\Cake\Console\ConsoleOptionParser $parser): \Cake\Console\ConsoleOptionParser
{
Expand All @@ -49,6 +51,8 @@ protected function buildOptionParser(\Cake\Console\ConsoleOptionParser $parser):
* @param Arguments $args
* @param ConsoleIo $io
* @return int|void|null
* @checked
* @noTodo
*/
public function execute(Arguments $args, ConsoleIo $io)
{
Expand Down
14 changes: 14 additions & 0 deletions plugins/baser-core/src/Command/CreateReleaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class CreateReleaseCommand extends Command
*
* @param \Cake\Console\ConsoleOptionParser $parser
* @return \Cake\Console\ConsoleOptionParser
* @checked
* @noTodo
*/
protected function buildOptionParser(\Cake\Console\ConsoleOptionParser $parser): \Cake\Console\ConsoleOptionParser
{
Expand All @@ -50,6 +52,8 @@ protected function buildOptionParser(\Cake\Console\ConsoleOptionParser $parser):
* @param Arguments $args
* @param ConsoleIo $io
* @return int|void|null
* @checked
* @noTodo
*/
public function execute(Arguments $args, ConsoleIo $io)
{
Expand Down Expand Up @@ -89,6 +93,8 @@ public function execute(Arguments $args, ConsoleIo $io)
* composer.json を配布用にセットアップする
*
* @param string $packagePath
* @checked
* @noTodo
*/
public function setupComposer(string $packagePath)
{
Expand All @@ -108,6 +114,8 @@ public function setupComposer(string $packagePath)
* パッケージを GitHub よりクローンする
*
* @param string $packagePath
* @checked
* @noTodo
*/
public function clonePackage(string $packagePath, string $branch)
{
Expand All @@ -122,6 +130,8 @@ public function clonePackage(string $packagePath, string $branch)
*
* インストール時、 composer で vendor に配置するため
* @param string $packagePath
* @checked
* @noTodo
*/
public function deletePlugins(string $packagePath)
{
Expand All @@ -139,6 +149,8 @@ public function deletePlugins(string $packagePath)
* Zip ファイルに固める
*
* @param string $packagePath
* @checked
* @noTodo
*/
public function createZip(string $packagePath)
{
Expand All @@ -154,6 +166,8 @@ public function createZip(string $packagePath)
* 配布用に不要なファイルを削除する
*
* @param string $packagePath
* @checked
* @noTodo
*/
public function deleteExcludeFiles(string $packagePath)
{
Expand Down
2 changes: 2 additions & 0 deletions plugins/baser-core/src/Command/SetupInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class SetupInstallCommand extends Command
* @param Arguments $args
* @param ConsoleIo $io
* @return int|void|null
* @checked
* @noTodo
*/
public function execute(Arguments $args, ConsoleIo $io)
{
Expand Down
2 changes: 2 additions & 0 deletions plugins/baser-core/src/Command/SetupTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class SetupTestCommand extends Command
* @param Arguments $args
* @param ConsoleIo $io
* @return int|void|null
* @checked
* @noTodo
*/
public function execute(Arguments $args, ConsoleIo $io)
{
Expand Down
4 changes: 4 additions & 0 deletions plugins/baser-core/src/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class UpdateCommand extends Command
*
* @param \Cake\Console\ConsoleOptionParser $parser
* @return \Cake\Console\ConsoleOptionParser
* @checked
* @noTodo
*/
protected function buildOptionParser(\Cake\Console\ConsoleOptionParser $parser): \Cake\Console\ConsoleOptionParser
{
Expand All @@ -53,6 +55,8 @@ protected function buildOptionParser(\Cake\Console\ConsoleOptionParser $parser):
* @param Arguments $args
* @param ConsoleIo $io
* @return int|void|null
* @checked
* @noTodo
*/
public function execute(Arguments $args, ConsoleIo $io)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public function initialize(): void
* Before Filter
* @param EventInterface $event
* @return Response|void|null
* @checked
* @noTodo
*/
public function beforeFilter(EventInterface $event)
{
Expand Down Expand Up @@ -109,6 +111,8 @@ public function beforeRender(EventInterface $event): void
* 初回アクセスメッセージ用のフラグを更新する
*
* @return void
* @checked
* @noTodo
*/
private function __updateFirstAccess()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ public function isAdminApiEnabled()
* ない場合は、 true を返却する
*
* @return bool
* @noTodo
* @checked
*/
public function isAvailableUser(): bool
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public function index(ContentsServiceInterface $service)
*
* @param ContentsService $service
* @return void
* @checked
* @noTodo
*/
public function index_trash(ContentsServiceInterface $service)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class JwksController extends BcAdminApiController

/**
* Initialize
* @checked
* @noTodo
*/
public function initialize(): void
{
Expand All @@ -37,6 +39,8 @@ public function initialize(): void
*
* # PHPでの検証コード例
* JWT::decode($jwt, JWK::parseKeySet($keys), [Configure::read('Jwt.algorithm')])
* @checked
* @noTodo
*/
public function index()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ public function batch(PluginsServiceInterface $service)
* 取得可能なコアのバージョン情報を取得
*
* @param PluginsServiceInterface $service
* @checked
* @noTodo
*/
public function get_available_core_version_info(PluginsServiceInterface $service)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public function view(SiteConfigsServiceInterface $service) {
/**
* システム基本設定を編集する
* @param SiteConfigsServiceInterface $service
* @checked
* @noTodo
*/
public function edit(SiteConfigsServiceInterface $service)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function copy(ThemesServiceInterface $service, $theme)
* [API] テーマの初期データを読み込むAPIを実装
* @param ThemesServiceInterface $service
* @noTodo
* @checked
*/
public function load_default_data(ThemesServiceInterface $service)
{
Expand Down
2 changes: 2 additions & 0 deletions plugins/baser-core/src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ public function beforeFilter(EventInterface $event)
* 現在アクセスしているURLについて権限があるかどうかを確認する。
*
* @return bool
* @noTodo
* @checked
*/
private function checkPermission()
{
Expand Down
Loading

0 comments on commit d9d6e4a

Please sign in to comment.