]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/php/Image.php
old boot.php functions replaced in various places
[friendica.git] / view / theme / frio / php / Image.php
index c18c32d11a655a237194cf5dd978de741fa706a8..e3bae20048072389e4b7df8a793dc472b0b1396b 100644 (file)
@@ -1,6 +1,22 @@
 <?php
 /**
- * @file view/theme/frio/php/Image.php
+ * @copyright Copyright (C) 2010-2022, 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/>.
+ *
  * contain methods to deal with images
  */
 
@@ -15,10 +31,9 @@ class Image
         * Give all available options for the background image
         *
         * @param array $arr Array with the present user settings
-        *
         * @return array Array with the immage options
         */
-       public static function get_options($arr)
+       public static function get_options(array $arr): array
        {
                $bg_image_options = [
                        'stretch' => ['frio_bg_image_option', DI::l10n()->t('Top Banner'), 'stretch', DI::l10n()->t('Resize image to the width of the screen and show background color below on long pages.'), ($arr['bg_image_option'] == 'stretch')],