Failed Conditions
Pull Request — master (#356)
by Sander
09:02
created
controller/iconcontroller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 			$path = explode('passman/', $iconPath);
125 125
 			$mime = mime_content_type($iconPath);
126 126
 			//print_r($path);
127
-			if($mime !== 'directory') {
127
+			if ($mime !== 'directory') {
128 128
 				$icon = [];
129 129
 				$icon['mimetype'] = mime_content_type($iconPath);
130 130
 				$icon['url'] = $this->urlGenerator->linkTo('passman', $path[1]);
Please login to merge, or discard this patch.
lib/Utility/Utils.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,20 +55,20 @@
 block discarded – undo
55 55
 	 * @param $uid
56 56
 	 * @return string
57 57
 	 */
58
-	public static function getNameByUid($uid){
58
+	public static function getNameByUid($uid) {
59 59
 		$um = \OC::$server->getUserManager();
60 60
 		$u = $um->get($uid);
61 61
 		return $u->getDisplayName();
62 62
 	}
63 63
 
64
-	public static function getDirContents($dir, &$results = array()){
64
+	public static function getDirContents($dir, &$results = array()) {
65 65
 		$files = scandir($dir);
66 66
 
67
-		foreach($files as $key => $value){
68
-			$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
69
-			if(!is_dir($path)) {
67
+		foreach ($files as $key => $value) {
68
+			$path = realpath($dir . DIRECTORY_SEPARATOR . $value);
69
+			if (!is_dir($path)) {
70 70
 				$results[] = $path;
71
-			} else if($value != "." && $value != "..") {
71
+			} else if ($value != "." && $value != "..") {
72 72
 				Utils::getDirContents($path, $results);
73 73
 				$results[] = $path;
74 74
 			}
Please login to merge, or discard this patch.