From 7229434fa0f72841da34598cb453dc00b748b6fe Mon Sep 17 00:00:00 2001 From: Akex Date: Thu, 4 Apr 2024 16:13:58 +0500 Subject: [PATCH 1/2] first attempt --- app/fakeDir/fakeFile.txt | 1 + app/index.php | 9 +++++++++ app/repository/ReadLogFile.php | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 app/fakeDir/fakeFile.txt create mode 100644 app/repository/ReadLogFile.php diff --git a/app/fakeDir/fakeFile.txt b/app/fakeDir/fakeFile.txt new file mode 100644 index 0000000..f584548 --- /dev/null +++ b/app/fakeDir/fakeFile.txt @@ -0,0 +1 @@ +Hello World!!! \ No newline at end of file diff --git a/app/index.php b/app/index.php index e69de29..e5a7bc7 100644 --- a/app/index.php +++ b/app/index.php @@ -0,0 +1,9 @@ +getMessage(); +} \ No newline at end of file diff --git a/app/repository/ReadLogFile.php b/app/repository/ReadLogFile.php new file mode 100644 index 0000000..4e5f0e9 --- /dev/null +++ b/app/repository/ReadLogFile.php @@ -0,0 +1,15 @@ + Date: Thu, 4 Apr 2024 16:51:28 +0500 Subject: [PATCH 2/2] first attempt --- app/fakeDir/fakeFile.txt | 8 +++++++- app/index.php | 6 ++++-- .../{ReadLogFile.php => ReadFileLineByLine.php} | 13 +++++++++---- 3 files changed, 20 insertions(+), 7 deletions(-) rename app/repository/{ReadLogFile.php => ReadFileLineByLine.php} (51%) diff --git a/app/fakeDir/fakeFile.txt b/app/fakeDir/fakeFile.txt index f584548..77feca4 100644 --- a/app/fakeDir/fakeFile.txt +++ b/app/fakeDir/fakeFile.txt @@ -1 +1,7 @@ -Hello World!!! \ No newline at end of file +Hello World!!! +Hello World!!!! +Hello World!!!! +Hello World!!!!! +Hello World!!!!!! +Hello World!!!!!!! +Конец \ No newline at end of file diff --git a/app/index.php b/app/index.php index e5a7bc7..9d40809 100644 --- a/app/index.php +++ b/app/index.php @@ -1,9 +1,11 @@ getMessage(); } \ No newline at end of file diff --git a/app/repository/ReadLogFile.php b/app/repository/ReadFileLineByLine.php similarity index 51% rename from app/repository/ReadLogFile.php rename to app/repository/ReadFileLineByLine.php index 4e5f0e9..e17fac1 100644 --- a/app/repository/ReadLogFile.php +++ b/app/repository/ReadFileLineByLine.php @@ -1,15 +1,20 @@