Browse code

added appinfo/info.xml appinfo/signature.json CHANGELOG.txt lib/AppInfo/Application.php css/style.css providers/Plivo

DoubleBastionAdmin authored on 05/11/2025 13:35:09
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+namespace GuzzleHttp;
4
+
5
+use Psr\Http\Message\MessageInterface;
6
+
7
+final class BodySummarizer implements BodySummarizerInterface
8
+{
9
+    /**
10
+     * @var int|null
11
+     */
12
+    private $truncateAt;
13
+
14
+    public function __construct(?int $truncateAt = null)
15
+    {
16
+        $this->truncateAt = $truncateAt;
17
+    }
18
+
19
+    /**
20
+     * Returns a summarized message body.
21
+     */
22
+    public function summarize(MessageInterface $message): ?string
23
+    {
24
+        return $this->truncateAt === null
25
+            ? Psr7\Message::bodySummary($message)
26
+            : Psr7\Message::bodySummary($message, $this->truncateAt);
27
+    }
28
+}
Browse code

removed appinfo/info.xml appinfo/signature.json CHANGELOG.txt lib/AppInfo/Application.php css/style.css providers/Plivo

DoubleBastionAdmin authored on 05/11/2025 13:12:22
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,28 +0,0 @@
1
-<?php
2
-
3
-namespace GuzzleHttp;
4
-
5
-use Psr\Http\Message\MessageInterface;
6
-
7
-final class BodySummarizer implements BodySummarizerInterface
8
-{
9
-    /**
10
-     * @var int|null
11
-     */
12
-    private $truncateAt;
13
-
14
-    public function __construct(int $truncateAt = null)
15
-    {
16
-        $this->truncateAt = $truncateAt;
17
-    }
18
-
19
-    /**
20
-     * Returns a summarized message body.
21
-     */
22
-    public function summarize(MessageInterface $message): ?string
23
-    {
24
-        return $this->truncateAt === null
25
-            ? \GuzzleHttp\Psr7\Message::bodySummary($message)
26
-            : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);
27
-    }
28
-}
Browse code

Added README.md appinfo/info.xml appinfo/signature.json lib/Controller/AuthorApiController.php and the providers directory

DoubleBastionAdmin authored on 20/08/2022 16:33:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+namespace GuzzleHttp;
4
+
5
+use Psr\Http\Message\MessageInterface;
6
+
7
+final class BodySummarizer implements BodySummarizerInterface
8
+{
9
+    /**
10
+     * @var int|null
11
+     */
12
+    private $truncateAt;
13
+
14
+    public function __construct(int $truncateAt = null)
15
+    {
16
+        $this->truncateAt = $truncateAt;
17
+    }
18
+
19
+    /**
20
+     * Returns a summarized message body.
21
+     */
22
+    public function summarize(MessageInterface $message): ?string
23
+    {
24
+        return $this->truncateAt === null
25
+            ? \GuzzleHttp\Psr7\Message::bodySummary($message)
26
+            : \GuzzleHttp\Psr7\Message::bodySummary($message, $this->truncateAt);
27
+    }
28
+}