@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * Default value for new users |
| 19 | 19 | */ |
| 20 | - const DEFAULT_DISPLAY = true; |
|
| 20 | + const DEFAULT_DISPLAY = true; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * phpBB will treat the time from the Exif data like UTC. |
@@ -26,13 +26,13 @@ discard block |
||
| 26 | 26 | * |
| 27 | 27 | * Offset must be set in seconds. |
| 28 | 28 | */ |
| 29 | - const TIME_OFFSET = 0; |
|
| 29 | + const TIME_OFFSET = 0; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Constants for the status of the Exif data. |
| 33 | 33 | */ |
| 34 | - const UNAVAILABLE = 0; |
|
| 35 | - const AVAILABLE = 1; |
|
| 34 | + const UNAVAILABLE = 0; |
|
| 35 | + const AVAILABLE = 1; |
|
| 36 | 36 | const UNKNOWN = 2; |
| 37 | 37 | const DBSAVED = 3; |
| 38 | 38 | |
@@ -44,28 +44,28 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * Exif data array with all allowed groups and keys. |
| 46 | 46 | */ |
| 47 | - public $data = array(); |
|
| 47 | + public $data = array(); |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * Filtered data array. We don't have empty or invalid values here. |
| 51 | 51 | */ |
| 52 | - public $prepared_data = array(); |
|
| 52 | + public $prepared_data = array(); |
|
| 53 | 53 | |
| 54 | 54 | /** |
| 55 | 55 | * Does the image have exif data? |
| 56 | 56 | * Values see constant declaration at the beginning of the class. |
| 57 | 57 | */ |
| 58 | - public $status = 2; |
|
| 58 | + public $status = 2; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Full data array, but serialized to a string |
| 62 | 62 | */ |
| 63 | - public $serialized = ''; |
|
| 63 | + public $serialized = ''; |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Full link to the image-file |
| 67 | 67 | */ |
| 68 | - public $file = ''; |
|
| 68 | + public $file = ''; |
|
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Original status of the Exif data. |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | /** |
| 76 | 76 | * Image-ID, just needed to update the Exif status |
| 77 | 77 | */ |
| 78 | - public $image_id = false; |
|
| 78 | + public $image_id = false; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Constructor |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | else if ($num) |
| 208 | 208 | { |
| 209 | - $exif_exposure = ' 1/' . $den / $num ; |
|
| 209 | + $exif_exposure = ' 1/' . $den / $num; |
|
| 210 | 210 | } |
| 211 | 211 | if ($exif_exposure) |
| 212 | 212 | { |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | } |
| 250 | 250 | if (isset($this->data["EXIF"]["ExposureBiasValue"])) |
| 251 | 251 | { |
| 252 | - list($num,$den) = explode("/", $this->data["EXIF"]["ExposureBiasValue"]); |
|
| 252 | + list($num, $den) = explode("/", $this->data["EXIF"]["ExposureBiasValue"]); |
|
| 253 | 253 | if ($den) |
| 254 | 254 | { |
| 255 | 255 | if (($num / $den) == 0) |
@@ -323,12 +323,12 @@ discard block |
||
| 323 | 323 | * There are lots of possible Exif Groups and Values. |
| 324 | 324 | * But you will never heard of the missing ones. so we just allow the most common ones. |
| 325 | 325 | */ |
| 326 | - static private $allowed_groups = array( |
|
| 326 | + static private $allowed_groups = array( |
|
| 327 | 327 | 'EXIF', |
| 328 | 328 | 'IFD0', |
| 329 | 329 | ); |
| 330 | 330 | |
| 331 | - static private $allowed_keys = array( |
|
| 331 | + static private $allowed_keys = array( |
|
| 332 | 332 | 'DateTimeOriginal', |
| 333 | 333 | 'FocalLength', |
| 334 | 334 | 'ExposureTime', |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | protected $reports_table; |
| 65 | 65 | |
| 66 | 66 | public function __construct(\phpbbgallery\core\log $gallery_log, \phpbbgallery\core\auth\auth $gallery_auth, \phpbb\user $user, |
| 67 | - \phpbb\language\language $language, \phpbb\db\driver\driver_interface $db, \phpbb\user_loader $user_loader, |
|
| 67 | + \phpbb\language\language $language, \phpbb\db\driver\driver_interface $db, \phpbb\user_loader $user_loader, |
|
| 68 | 68 | \phpbbgallery\core\album\album $album, \phpbb\template\template $template, \phpbb\controller\helper $helper, |
| 69 | 69 | \phpbbgallery\core\config $gallery_config, \phpbb\pagination $pagination, \phpbbgallery\core\notification\helper $notification_helper, |
| 70 | 70 | $images_table, $reports_table) |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | 'REPORT_TIME' => $this->user->format_date($VAR['report_time']), |
| 364 | 364 | )); |
| 365 | 365 | unset($album_tmp); |
| 366 | - $reported_images_count ++; |
|
| 366 | + $reported_images_count++; |
|
| 367 | 367 | } |
| 368 | 368 | $this->template->assign_vars(array( |
| 369 | 369 | 'TOTAL_IMAGES_REPORTED' => $status == 1 ? $this->language->lang('WAITING_REPORTED_IMAGE', (int) $count) : $this->language->lang('WAITING_REPORTED_DONE', (int) $count), |