回答編集履歴

2

phpdoc

2019/03/27 19:11

投稿

mpyw
mpyw

スコア5223

test CHANGED
@@ -92,6 +92,8 @@
92
92
 
93
93
  * @return mixed
94
94
 
95
+ * @throws AccessDeniedHttpException
96
+
95
97
  */
96
98
 
97
99
  public function handle(Request $request, Closure $next)

1

phpdoc

2019/03/27 19:11

投稿

mpyw
mpyw

スコア5223

test CHANGED
@@ -42,6 +42,8 @@
42
42
 
43
43
  use GuzzleHttp\Client as Guzzle;
44
44
 
45
+ use GuzzleHttp\Exception\GuzzleException;
46
+
45
47
  use Illuminate\Http\Request;
46
48
 
47
49
  use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
@@ -110,7 +112,13 @@
110
112
 
111
113
  /**
112
114
 
115
+ * Fetch possible IP ranges from GitHub API.
116
+
117
+ *
118
+
113
- * @return array
119
+ * @return string[]
120
+
121
+ * @throws GuzzleException
114
122
 
115
123
  */
116
124
 
@@ -126,6 +134,10 @@
126
134
 
127
135
  /**
128
136
 
137
+ * Check if a given ip is in networks.
138
+
139
+ *
140
+
129
141
  * @param string $ip
130
142
 
131
143
  * @param string[] $ranges