]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/Intercept.php
Merge pull request #12928 from jsoref/spelling
[friendica.git] / tests / Util / Intercept.php
index 9435a5950b39ddecfc540666f65337ea077b6148..27b558fc5e0a109667d1da07250f4abdf34b9c31 100644 (file)
@@ -1,11 +1,30 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2023, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Test\Util;
 
 use php_user_filter;
 
 /**
- * Output Interceptor for STDOUT to prevent outputing to the console
+ * Output Interceptor for STDOUT to prevent outputting to the console
  * Instead the $cache variable will get filled with the output
  *
  * @package Friendica\Test\Util
@@ -17,6 +36,7 @@ class Intercept extends php_user_filter
         */
        public static $cache = '';
 
+       /** @noinspection PhpMissingParentCallCommonInspection */
        public function filter($in, $out, &$consumed, $closing)
        {
                while ($bucket = stream_bucket_make_writeable($in)) {