Completed
Branch develop (a57190)
by Michael
05:52 queued 01:37
created
src/UploadedFile.php 1 patch
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -20,86 +20,86 @@
 block discarded – undo
20 20
  */
21 21
 class UploadedFile implements UploadedFileInterface
22 22
 {
23
-	/** @var string The name */
24
-	private $name;
23
+    /** @var string The name */
24
+    private $name;
25 25
 
26
-	/** @var string The type. */
27
-	private $type;
26
+    /** @var string The type. */
27
+    private $type;
28 28
 
29
-	/** @var string The tmp name. */
30
-	private $tmpName;
29
+    /** @var string The tmp name. */
30
+    private $tmpName;
31 31
 
32
-	/** @var int The error. */
33
-	private $error;
32
+    /** @var int The error. */
33
+    private $error;
34 34
 
35
-	/** @var int The size. */
36
-	private $size;
35
+    /** @var int The size. */
36
+    private $size;
37 37
 
38
-	/**
39
-	 * Construct a Stream object with the given name, type, tmp name, error and size.
40
-	 *
41
-	 * @param string $name
42
-	 * @param string $type
43
-	 * @param string $tmpName
44
-	 * @param int $error
45
-	 * @param int $size
46
-	 */
47
-	public function __construct($name, $type, $tmpName, $error, $size)
48
-	{
49
-		$this->name = $name;
50
-		$this->type = $type;
51
-		$this->tmpName = $tmpName;
52
-		$this->error = $error;
53
-		$this->size = $size;
54
-	}
38
+    /**
39
+     * Construct a Stream object with the given name, type, tmp name, error and size.
40
+     *
41
+     * @param string $name
42
+     * @param string $type
43
+     * @param string $tmpName
44
+     * @param int $error
45
+     * @param int $size
46
+     */
47
+    public function __construct($name, $type, $tmpName, $error, $size)
48
+    {
49
+        $this->name = $name;
50
+        $this->type = $type;
51
+        $this->tmpName = $tmpName;
52
+        $this->error = $error;
53
+        $this->size = $size;
54
+    }
55 55
 
56
-	/**
57
-	 * {@inheritdoc}
58
-	 */
59
-	public function getStream()
60
-	{
61
-		return new Stream(fopen($this->tmpName, 'r'));
62
-	}
56
+    /**
57
+     * {@inheritdoc}
58
+     */
59
+    public function getStream()
60
+    {
61
+        return new Stream(fopen($this->tmpName, 'r'));
62
+    }
63 63
 
64
-	/**
65
-	 * {@inheritdoc}
66
-	 */
67
-	public function moveTo($targetPath)
68
-	{
69
-		if ($this->getError() != UPLOAD_ERR_OK || !is_uploaded_file($this->tmpName) || !move_uploaded_file($this->tmpName, $targetPath)) {
70
-			throw new \RuntimeException('Can\'t move the file');
71
-		}
72
-	}
64
+    /**
65
+     * {@inheritdoc}
66
+     */
67
+    public function moveTo($targetPath)
68
+    {
69
+        if ($this->getError() != UPLOAD_ERR_OK || !is_uploaded_file($this->tmpName) || !move_uploaded_file($this->tmpName, $targetPath)) {
70
+            throw new \RuntimeException('Can\'t move the file');
71
+        }
72
+    }
73 73
 
74
-	/**
75
-	 * {@inheritdoc}
76
-	 */
77
-	public function getSize()
78
-	{
79
-		return $this->size;
80
-	}
74
+    /**
75
+     * {@inheritdoc}
76
+     */
77
+    public function getSize()
78
+    {
79
+        return $this->size;
80
+    }
81 81
 
82
-	/**
83
-	 * {@inheritdoc}
84
-	 */
85
-	public function getError()
86
-	{
87
-		return $this->error;
88
-	}
82
+    /**
83
+     * {@inheritdoc}
84
+     */
85
+    public function getError()
86
+    {
87
+        return $this->error;
88
+    }
89 89
 
90
-	/**
91
-	 * {@inheritdoc}
92
-	 */
93
-	public function getClientFilename()
94
-	{
95
-		return $this->name;
96
-	}
90
+    /**
91
+     * {@inheritdoc}
92
+     */
93
+    public function getClientFilename()
94
+    {
95
+        return $this->name;
96
+    }
97 97
 
98
-	/**
99
-	 * {@inheritdoc}
100
-	 */
101
-	public function getClientMediaType()
102
-	{
103
-		return $this->type;
104
-	}
98
+    /**
99
+     * {@inheritdoc}
100
+     */
101
+    public function getClientMediaType()
102
+    {
103
+        return $this->type;
104
+    }
105 105
 }
Please login to merge, or discard this patch.