回答編集履歴
2
apply php-cs-fixer fix
test
CHANGED
@@ -56,9 +56,9 @@
|
|
56
56
|
|
57
57
|
|
58
58
|
|
59
|
-
include
|
59
|
+
include 'myconf.php';
|
60
60
|
|
61
|
-
require
|
61
|
+
require 'autoload.php';
|
62
62
|
|
63
63
|
use Abraham\TwitterOAuth\TwitterOAuth;
|
64
64
|
|
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
'q' => $query,
|
76
76
|
|
77
|
-
'count' => 5
|
77
|
+
'count' => 5,
|
78
78
|
|
79
79
|
);
|
80
80
|
|
@@ -84,7 +84,7 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
|
87
|
-
foreach($searchResult->statuses as $res) {
|
87
|
+
foreach ($searchResult->statuses as $res) {
|
88
88
|
|
89
89
|
$name = $res->user->name;
|
90
90
|
|
@@ -92,7 +92,7 @@
|
|
92
92
|
|
93
93
|
$content = $res->text;
|
94
94
|
|
95
|
-
$createdAt = date(
|
95
|
+
$createdAt = date('Y-m-d H:i:s', strtotime($res->created_at));
|
96
96
|
|
97
97
|
|
98
98
|
|
@@ -109,8 +109,6 @@
|
|
109
109
|
echo '</p>';
|
110
110
|
|
111
111
|
}
|
112
|
-
|
113
|
-
?>
|
114
112
|
|
115
113
|
```
|
116
114
|
|
1
コード:出力部分の改行を追加
test
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
echo "${name}:<br>";
|
104
104
|
|
105
|
-
echo $content;
|
105
|
+
echo "${content}<br>";
|
106
106
|
|
107
107
|
echo "<small>${createdAt}</small>";
|
108
108
|
|