summaryrefslogtreecommitdiff
path: root/static/classes/UploadedFile.class.php
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2016-05-25 05:15:11 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2016-05-25 05:15:11 +0200
commit52a6916abe3a9fe74c4d86bee5536557c7a6fa5d (patch)
tree5f835ab56b22623532408f6dd243f099fae97a84 /static/classes/UploadedFile.class.php
parentc5c588311bf6da7979a67e405563c3d2fba95094 (diff)
parent4606553f38909b483bc06674f9558ede1a9ff1f6 (diff)
Merge branch 'wub/php-improve-comments'
- Extend and improve PHP code comments (PHPDoc) - Add Pantsu.cat copyright year 2016 for recent change - UploadedFile: Fix typo SHA1 to SHA-1 - Response: Clarify what http_response_code(200); is Reviewed-by: Austin Gillmann <alucard@cuntflaps.me>
Diffstat (limited to 'static/classes/UploadedFile.class.php')
-rw-r--r--static/classes/UploadedFile.class.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/static/classes/UploadedFile.class.php b/static/classes/UploadedFile.class.php
index 99020ce..20d42b3 100644
--- a/static/classes/UploadedFile.class.php
+++ b/static/classes/UploadedFile.class.php
@@ -1,7 +1,11 @@
<?php
/**
- * Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com>
+ * Returns information about uploaded files.
+ *
+ * @copyright Copyright (c) 2013, 2014 Peter Lejeck <peter.lejeck@gmail.com>
+ * @copyright Copyright (c) 2016 the Pantsu.cat developers
+ * <hostmaster@pantsu.cat>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -31,14 +35,18 @@ class UploadedFile
public $tempfile;
public $error;
- /* Cached checksums */
+ /**
+ * SHA-1 checksum
+ *
+ * @var string 40 digit hexadecimal hash (160 bits)
+ */
private $sha1;
/**
- * Generates the SHA1 or returns the cached SHA1 hash for the file.
+ * Generates the SHA-1 or returns the cached SHA-1 hash for the file.
*
* @deprecated 2.1.0 To be replaced with SHA-256 hashing.
- * @return string
+ * @return string|false $sha1
*/
public function get_sha1()
{