]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Photo.php
Merge pull request #4243 from MrPetovan/task/switch-to-array-new-style
[friendica.git] / src / Model / Photo.php
index 62b6088d974bcbc6c8240b075f8815a26f26332b..ef59eee7e9aa932ce09808c40273521d2f992e37 100644 (file)
@@ -171,7 +171,7 @@ class Photo
                        $micro = System::baseUrl() . '/images/person-48.jpg';
                }
 
-               return array($image_url, $thumb, $micro);
+               return [$image_url, $thumb, $micro];
        }
 
        /**
@@ -184,9 +184,9 @@ class Photo
                $degrees = count($exifCoord) > 0 ? self::gps2Num($exifCoord[0]) : 0;
                $minutes = count($exifCoord) > 1 ? self::gps2Num($exifCoord[1]) : 0;
                $seconds = count($exifCoord) > 2 ? self::gps2Num($exifCoord[2]) : 0;
-       
+
                $flip = ($hemi == 'W' || $hemi == 'S') ? -1 : 1;
-       
+
                return floatval($flip * ($degrees + ($minutes / 60) + ($seconds / 3600)));
        }
 
@@ -197,15 +197,15 @@ class Photo
        private static function gps2Num($coordPart)
        {
                $parts = explode('/', $coordPart);
-       
+
                if (count($parts) <= 0) {
                        return 0;
                }
-       
+
                if (count($parts) == 1) {
                        return $parts[0];
                }
-       
+
                return floatval($parts[0]) / floatval($parts[1]);
        }