Passed
Push — master ( 2d07c5...6788e6 )
by Joas
12:08 queued 10s
created
lib/private/Files/AppData/AppData.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			throw new \RuntimeException('no instance id!');
76 76
 		}
77 77
 
78
-		return 'appdata_' . $instanceId;
78
+		return 'appdata_'.$instanceId;
79 79
 	}
80 80
 
81 81
 	private function getAppDataRootFolder(): Folder {
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 			$name = $this->getAppDataFolderName();
104 104
 
105 105
 			try {
106
-				$this->folder = $this->rootFolder->get($name . '/' . $this->appId);
106
+				$this->folder = $this->rootFolder->get($name.'/'.$this->appId);
107 107
 			} catch (NotFoundException $e) {
108 108
 				$appDataRootFolder = $this->getAppDataRootFolder();
109 109
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 					try {
114 114
 						$this->folder = $appDataRootFolder->newFolder($this->appId);
115 115
 					} catch (NotPermittedException $e) {
116
-						throw new \RuntimeException('Could not get appdata folder for ' . $this->appId);
116
+						throw new \RuntimeException('Could not get appdata folder for '.$this->appId);
117 117
 					}
118 118
 				}
119 119
 			}
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	}
124 124
 
125 125
 	public function getFolder(string $name): ISimpleFolder {
126
-		$key = $this->appId . '/' . $name;
126
+		$key = $this->appId.'/'.$name;
127 127
 		if ($cachedFolder = $this->folders->get($key)) {
128 128
 			if ($cachedFolder instanceof \Exception) {
129 129
 				throw $cachedFolder;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 			}
133 133
 		}
134 134
 		try {
135
-			$path = $this->getAppDataFolderName() . '/' . $this->appId . '/' . $name;
135
+			$path = $this->getAppDataFolderName().'/'.$this->appId.'/'.$name;
136 136
 			$node = $this->rootFolder->get($path);
137 137
 		} catch (NotFoundException $e) {
138 138
 			$this->folders->set($key, $e);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	}
147 147
 
148 148
 	public function newFolder(string $name): ISimpleFolder {
149
-		$key = $this->appId . '/' . $name;
149
+		$key = $this->appId.'/'.$name;
150 150
 		$folder = $this->getAppDataFolder()->newFolder($name);
151 151
 
152 152
 		$simpleFolder = new SimpleFolder($folder);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	public function getDirectoryListing(): array {
158 158
 		$listing = $this->getAppDataFolder()->getDirectoryListing();
159 159
 
160
-		$fileListing = array_map(function (Node $folder) {
160
+		$fileListing = array_map(function(Node $folder) {
161 161
 			if ($folder instanceof Folder) {
162 162
 				return new SimpleFolder($folder);
163 163
 			}
Please login to merge, or discard this patch.