Completed
Pull Request — master (#21)
by
unknown
02:52
created
src/File.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 	/**
77 77
 	 * Moves file to new location / rename
78 78
 	 * @param string $destination path
79
-	 * @return bool
79
+	 * @return boolean|null
80 80
 	 * @throws Exception
81 81
 	 */
82 82
 	function move($destination)
Please login to merge, or discard this patch.
src/Driver/ComDriver.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@
 block discarded – undo
22 22
 	{
23 23
 		// Use the Windows COM interface
24 24
 		$fsobj = new \COM('Scripting.FileSystemObject');
25
-		if (dirname($path) == '.')
26
-			$this->path = ((substr(getcwd(), -1) == DIRECTORY_SEPARATOR) ? getcwd() . basename($path) : getcwd() . DIRECTORY_SEPARATOR . basename($path));
25
+		if (dirname($path) == '.') {
26
+					$this->path = ((substr(getcwd(), -1) == DIRECTORY_SEPARATOR) ? getcwd() . basename($path) : getcwd() . DIRECTORY_SEPARATOR . basename($path));
27
+		}
27 28
 		$f = $fsobj->GetFile($path);
28 29
 		return BigInteger::of($f->Size);
29 30
 	}
Please login to merge, or discard this patch.
src/Driver/ExecDriver.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	 * Convert string into integer
47 47
 	 * Must be precise number, otherwise you will see and exception.
48 48
 	 *
49
-	 * @param $valueAsString
49
+	 * @param string $valueAsString
50 50
 	 * @return BigInteger
51 51
 	 * @throws Exception
52 52
 	 */
@@ -65,6 +65,9 @@  discard block
 block discarded – undo
65 65
 
66 66
 	}
67 67
 
68
+	/**
69
+	 * @param string $path
70
+	 */
68 71
 	private function getFileSizeWindows($path)
69 72
 	{
70 73
 		$escapedPath = escapeshellarg($path);
@@ -73,6 +76,9 @@  discard block
 block discarded – undo
73 76
 		);
74 77
 	}
75 78
 
79
+	/**
80
+	 * @param string $path
81
+	 */
76 82
 	private function getFileSizeLinux($path)
77 83
 	{
78 84
 		$escapedPath = escapeshellarg($path);
@@ -81,6 +87,9 @@  discard block
 block discarded – undo
81 87
 		);
82 88
 	}
83 89
 
90
+	/**
91
+	 * @param string $path
92
+	 */
84 93
 	private function getFileSizeMac($path)
85 94
 	{
86 95
 		$escapedPath = escapeshellarg($path);
Please login to merge, or discard this patch.