Skip to content

Commit fa811f5

Browse files
committed
Merge pull request #16 from Yousha/master
style: minor improvment in "save()" method.
2 parents 1ade40b + efe440f commit fa811f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Flow/Basic.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static function save($destination, $config, RequestInterface $request = n
2424
'tempDir' => $config,
2525
));
2626
}
27+
2728
$file = new File($config, $request);
2829

2930
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
@@ -46,8 +47,8 @@ public static function save($destination, $config, RequestInterface $request = n
4647

4748
if ($file->validateFile() && $file->save($destination)) {
4849
return true;
49-
} else {
50-
return false;
5150
}
51+
52+
return false;
5253
}
5354
}

0 commit comments

Comments
 (0)