]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ReversedFileReader.php
Function renamed
[friendica.git] / src / Util / ReversedFileReader.php
index cda78ad0abb0b76037f6cfccf22eb308de262ef5..fdd15bec90520cdf6fa266b4cf29e6d0b70ca5bd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -60,7 +60,7 @@ class ReversedFileReader implements \Iterator
                $this->fh = fopen($filename, 'r');
                if (!$this->fh) {
                        // this should use a custom exception.
-                       throw \Exception("Unable to open $filename");
+                       throw new \Exception("Unable to open $filename");
                }
                $this->filesize = filesize($filename);
                $this->pos      = -1;
@@ -158,7 +158,7 @@ class ReversedFileReader implements \Iterator
        }
 
        /**
-        * Checks if current iterator value is valid, that is, we readed all lines in files
+        * Checks if current iterator value is valid, that is, we read all lines in files
         *
         * @see Iterator::valid()
         * @return bool