@@ -85,7 +85,7 @@ public function create($org, $url, $contentType = 'form', $secret = null, $insec
8585 // Build the request path.
8686 $ path = "/orgs/ $ org/hooks " ;
8787
88- if (false == in_array ($ contentType , array ('form ' , 'json ' )))
88+ if (false == \ in_array ($ contentType , array ('form ' , 'json ' )))
8989 {
9090 throw new \UnexpectedValueException ('Content type must be either "form" or "json". ' );
9191 }
@@ -112,7 +112,7 @@ public function create($org, $url, $contentType = 'form', $secret = null, $insec
112112 // Check to ensure all events are in the allowed list
113113 foreach ($ events as $ event )
114114 {
115- if (!in_array ($ event , $ this ->hookEvents ))
115+ if (!\ in_array ($ event , $ this ->hookEvents ))
116116 {
117117 throw new \RuntimeException ('Your events array contains an unauthorized event. ' );
118118 }
@@ -157,7 +157,7 @@ public function edit($org, $url, $contentType = null, $secret = null, $insecureS
157157
158158 if ($ contentType )
159159 {
160- if (false == in_array ($ contentType , array ('form ' , 'json ' )))
160+ if (false == \ in_array ($ contentType , array ('form ' , 'json ' )))
161161 {
162162 throw new \UnexpectedValueException ('Content type must be either "form" or "json". ' );
163163 }
@@ -189,7 +189,7 @@ public function edit($org, $url, $contentType = null, $secret = null, $insecureS
189189 // Check to ensure all events are in the allowed list
190190 foreach ($ events as $ event )
191191 {
192- if (!in_array ($ event , $ this ->hookEvents ))
192+ if (!\ in_array ($ event , $ this ->hookEvents ))
193193 {
194194 throw new \RuntimeException ('Your events array contains an unauthorized event. ' );
195195 }
0 commit comments