@@ -100,7 +100,7 @@ public function convertFile(string $iniFile): void
100100 $ iniString = file_get_contents ($ iniFile );
101101
102102 if ($ iniString === false ) {
103- throw new ErrorReadingFileException ('an error occured while converting the local file into the cache ' );
103+ throw new ErrorReadingFileException ('an error occurred while converting the local file into the cache ' );
104104 }
105105
106106 $ this ->convertString ($ iniString );
@@ -116,7 +116,7 @@ public function convertString(string $iniString): void
116116 try {
117117 $ cachedVersion = $ this ->cache ->getItem ('browscap.version ' , false , $ success );
118118 } catch (InvalidArgumentException $ e ) {
119- $ this ->logger ->error (new \InvalidArgumentException ('an error occured while reading the data version from the cache ' , 0 , $ e ));
119+ $ this ->logger ->error (new \InvalidArgumentException ('an error occurred while reading the data version from the cache ' , 0 , $ e ));
120120
121121 return ;
122122 }
@@ -161,7 +161,7 @@ public function fetch(string $file, string $remoteFile = IniLoaderInterface::PHP
161161 } catch (GuzzleException $ e ) {
162162 throw new FetcherException (
163163 sprintf (
164- 'an error occured while fetching remote data from URI %s ' ,
164+ 'an error occurred while fetching remote data from URI %s ' ,
165165 $ uri ,
166166 ),
167167 0 ,
@@ -172,7 +172,7 @@ public function fetch(string $file, string $remoteFile = IniLoaderInterface::PHP
172172 if ($ response ->getStatusCode () !== 200 ) {
173173 throw new FetcherException (
174174 sprintf (
175- 'an error occured while fetching remote data from URI %s: StatusCode was %d ' ,
175+ 'an error occurred while fetching remote data from URI %s: StatusCode was %d ' ,
176176 $ uri ,
177177 $ response ->getStatusCode (),
178178 ),
@@ -182,7 +182,7 @@ public function fetch(string $file, string $remoteFile = IniLoaderInterface::PHP
182182 try {
183183 $ content = $ response ->getBody ()->getContents ();
184184 } catch (Throwable $ e ) {
185- throw new FetcherException ('an error occured while fetching remote data ' , 0 , $ e );
185+ throw new FetcherException ('an error occurred while fetching remote data ' , 0 , $ e );
186186 }
187187
188188 if (empty ($ content )) {
@@ -194,7 +194,7 @@ public function fetch(string $file, string $remoteFile = IniLoaderInterface::PHP
194194
195195 throw FetcherException::httpError (
196196 $ uri ,
197- 'an error occured while fetching remote data, but no error was raised ' ,
197+ 'an error occurred while fetching remote data, but no error was raised ' ,
198198 );
199199 }
200200
@@ -212,7 +212,7 @@ public function fetch(string $file, string $remoteFile = IniLoaderInterface::PHP
212212 try {
213213 $ fs ->dumpFile ($ file , $ content );
214214 } catch (IOException $ exception ) {
215- throw new FetcherException ('an error occured while writing fetched data to local file ' , 0 , $ exception );
215+ throw new FetcherException ('an error occurred while writing fetched data to local file ' , 0 , $ exception );
216216 }
217217 }
218218
@@ -253,7 +253,7 @@ public function update(string $remoteFile = IniLoaderInterface::PHP_INI): void
253253 } catch (GuzzleException $ e ) {
254254 throw new FetcherException (
255255 sprintf (
256- 'an error occured while fetching remote data from URI %s ' ,
256+ 'an error occurred while fetching remote data from URI %s ' ,
257257 $ uri ,
258258 ),
259259 0 ,
@@ -264,7 +264,7 @@ public function update(string $remoteFile = IniLoaderInterface::PHP_INI): void
264264 if ($ response ->getStatusCode () !== 200 ) {
265265 throw new FetcherException (
266266 sprintf (
267- 'an error occured while fetching remote data from URI %s: StatusCode was %d ' ,
267+ 'an error occurred while fetching remote data from URI %s: StatusCode was %d ' ,
268268 $ uri ,
269269 $ response ->getStatusCode (),
270270 ),
@@ -274,7 +274,7 @@ public function update(string $remoteFile = IniLoaderInterface::PHP_INI): void
274274 try {
275275 $ content = $ response ->getBody ()->getContents ();
276276 } catch (Throwable $ e ) {
277- throw new FetcherException ('an error occured while fetching remote data ' , 0 , $ e );
277+ throw new FetcherException ('an error occurred while fetching remote data ' , 0 , $ e );
278278 }
279279
280280 if (empty ($ content )) {
@@ -309,7 +309,7 @@ public function checkUpdate(): ?int
309309 try {
310310 $ cachedVersion = $ this ->cache ->getItem ('browscap.version ' , false , $ success );
311311 } catch (InvalidArgumentException $ e ) {
312- throw new ErrorCachedVersionException ('an error occured while reading the data version from the cache ' , 0 , $ e );
312+ throw new ErrorCachedVersionException ('an error occurred while reading the data version from the cache ' , 0 , $ e );
313313 }
314314
315315 assert ($ cachedVersion === null || is_int ($ cachedVersion ));
@@ -327,7 +327,7 @@ public function checkUpdate(): ?int
327327 } catch (GuzzleException $ e ) {
328328 throw new FetcherException (
329329 sprintf (
330- 'an error occured while fetching version data from URI %s ' ,
330+ 'an error occurred while fetching version data from URI %s ' ,
331331 $ uri ,
332332 ),
333333 0 ,
@@ -338,7 +338,7 @@ public function checkUpdate(): ?int
338338 if ($ response ->getStatusCode () !== 200 ) {
339339 throw new FetcherException (
340340 sprintf (
341- 'an error occured while fetching version data from URI %s: StatusCode was %d ' ,
341+ 'an error occurred while fetching version data from URI %s: StatusCode was %d ' ,
342342 $ uri ,
343343 $ response ->getStatusCode (),
344344 ),
@@ -350,7 +350,7 @@ public function checkUpdate(): ?int
350350 } catch (Throwable $ e ) {
351351 throw new FetcherException (
352352 sprintf (
353- 'an error occured while fetching version data from URI %s: StatusCode was %d ' ,
353+ 'an error occurred while fetching version data from URI %s: StatusCode was %d ' ,
354354 $ uri ,
355355 $ response ->getStatusCode (),
356356 ),
0 commit comments