From 9b6bf57b3dfd07b830672a4e5c119ba0af48456c Mon Sep 17 00:00:00 2001 From: apple-x-co Date: Fri, 26 May 2023 18:42:41 +0900 Subject: [PATCH] chore: format README --- README.ja.md | 5 +++-- README.md | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.ja.md b/README.ja.md index 85e3e6bc..794e3ca9 100644 --- a/README.ja.md +++ b/README.ja.md @@ -67,7 +67,7 @@ protected function configure(): void new MediaQueryModule( Queries::fromDir('/path/to/queryInterface'),[ new DbQueryConfig('/path/to/sql'), - new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.exmaple.com']) + new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.example.com']) ], ), ); @@ -112,7 +112,7 @@ interface TodoItemInterface } ``` -* 結果がrow`(`array>`)の場合は`type:'row'`を指定します。`row_list`(`array>>`)にはtype指定は不要です。 +* 結果が `row`(`array`)の場合は`type:'row'`を指定します。`row_list`(`array>`)にはtype指定は不要です。 * SQLファイルには複数のSQL文が記述できます。その場合には最後の行のSELECTが戻り値になります。 #### Entity @@ -205,6 +205,7 @@ final class TodoEntityFactory return new Todo($id, $this->helper($name)); } } +``` ### Web API diff --git a/README.md b/README.md index 8031cd50..8eaba3a5 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ protected function configure(): void new MediaQueryModule( Queries::fromDir('/path/to/queryInterface'),[ new DbQueryConfig('/path/to/sql'), - new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.exmaple.com']) + new WebQueryConfig('/path/to/web_query.json', ['domain' => 'api.example.com']) ], ), ); @@ -123,7 +123,7 @@ interface TodoItemInterface } ``` -* If the result is a `row`(`array>`), specify `type:'row'`. The type is not necessary for `row_list`(`array>`). +* If the result is a `row`(`array`), specify `type:'row'`. The type is not necessary for `row_list`(`array>`). * SQL files can contain multiple SQL statements. In that case, the return value is the last line of the SELECT. #### Entity