for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace h4kuna\Upload\Store;
use Nette\Http;
class Filename
{
/**
* @param Http\FileUpload $fileUpload
* @param string $name - name of Upload service
* @return string
*/
public function createUniqueName(Http\FileUpload $fileUpload, $name)
$name
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$ext = pathinfo($fileUpload->getName(), PATHINFO_EXTENSION);
return sha1(microtime(true) . '.' . $fileUpload->getName()) . '.' . $ext;
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.