Completed
Push — master ( f5f5a0...25ef41 )
by
unknown
26:47 queued 06:22
created
core/Command/Info/File.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -59,43 +59,43 @@  discard block
 block discarded – undo
59 59
 		}
60 60
 
61 61
 		$output->writeln($node->getName());
62
-		$output->writeln('  fileid: ' . $node->getId());
63
-		$output->writeln('  mimetype: ' . $node->getMimetype());
64
-		$output->writeln('  modified: ' . (string)$this->l10n->l('datetime', $node->getMTime()));
62
+		$output->writeln('  fileid: '.$node->getId());
63
+		$output->writeln('  mimetype: '.$node->getMimetype());
64
+		$output->writeln('  modified: '.(string) $this->l10n->l('datetime', $node->getMTime()));
65 65
 
66 66
 		if ($node instanceof OCPFile && $node->isEncrypted()) {
67
-			$output->writeln('  ' . 'server-side encrypted: yes');
67
+			$output->writeln('  '.'server-side encrypted: yes');
68 68
 			$keyPath = $this->encryptionUtil->getFileKeyDir('', $node->getPath());
69 69
 			if ($this->rootView->file_exists($keyPath)) {
70
-				$output->writeln('    encryption key at: ' . $keyPath);
70
+				$output->writeln('    encryption key at: '.$keyPath);
71 71
 			} else {
72
-				$output->writeln('    <error>encryption key not found</error> should be located at: ' . $keyPath);
72
+				$output->writeln('    <error>encryption key not found</error> should be located at: '.$keyPath);
73 73
 			}
74 74
 		}
75 75
 
76 76
 		if ($node instanceof Folder && $node->isEncrypted() || $node instanceof OCPFile && $node->getParent()->isEncrypted()) {
77
-			$output->writeln('  ' . 'end-to-end encrypted: yes');
77
+			$output->writeln('  '.'end-to-end encrypted: yes');
78 78
 		}
79 79
 
80
-		$output->writeln('  size: ' . Util::humanFileSize($node->getSize()));
81
-		$output->writeln('  etag: ' . $node->getEtag());
82
-		$output->writeln('  permissions: ' . $this->fileUtils->formatPermissions($node->getType(), $node->getPermissions()));
80
+		$output->writeln('  size: '.Util::humanFileSize($node->getSize()));
81
+		$output->writeln('  etag: '.$node->getEtag());
82
+		$output->writeln('  permissions: '.$this->fileUtils->formatPermissions($node->getType(), $node->getPermissions()));
83 83
 		if ($node instanceof Folder) {
84 84
 			$children = $node->getDirectoryListing();
85
-			$childSize = array_sum(array_map(function (Node $node) {
85
+			$childSize = array_sum(array_map(function(Node $node) {
86 86
 				return $node->getSize();
87 87
 			}, $children));
88 88
 			if ($childSize != $node->getSize()) {
89
-				$output->writeln('    <error>warning: folder has a size of ' . Util::humanFileSize($node->getSize()) . " but it's children sum up to " . Util::humanFileSize($childSize) . '</error>.');
90
-				$output->writeln('    Run <info>occ files:scan --path ' . $node->getPath() . '</info> to attempt to resolve this.');
89
+				$output->writeln('    <error>warning: folder has a size of '.Util::humanFileSize($node->getSize())." but it's children sum up to ".Util::humanFileSize($childSize).'</error>.');
90
+				$output->writeln('    Run <info>occ files:scan --path '.$node->getPath().'</info> to attempt to resolve this.');
91 91
 			}
92 92
 			if ($showChildren) {
93
-				$output->writeln('  children: ' . count($children) . ':');
93
+				$output->writeln('  children: '.count($children).':');
94 94
 				foreach ($children as $child) {
95
-					$output->writeln('  - ' . $child->getName());
95
+					$output->writeln('  - '.$child->getName());
96 96
 				}
97 97
 			} else {
98
-				$output->writeln('  children: ' . count($children) . ' (use <info>--children</info> option to list)');
98
+				$output->writeln('  children: '.count($children).' (use <info>--children</info> option to list)');
99 99
 			}
100 100
 		}
101 101
 		$this->outputStorageDetails($node->getMountPoint(), $node, $input, $output);
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
 		foreach ($filesPerUser as $user => $files) {
108 108
 			$output->writeln("$user:");
109 109
 			foreach ($files as $userFile) {
110
-				$output->writeln('  ' . $userFile->getPath() . ': ' . $this->fileUtils->formatPermissions($userFile->getType(), $userFile->getPermissions()));
110
+				$output->writeln('  '.$userFile->getPath().': '.$this->fileUtils->formatPermissions($userFile->getType(), $userFile->getPermissions()));
111 111
 				$mount = $userFile->getMountPoint();
112
-				$output->writeln('    ' . $this->fileUtils->formatMountType($mount));
112
+				$output->writeln('    '.$this->fileUtils->formatMountType($mount));
113 113
 			}
114 114
 		}
115 115
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 			return;
127 127
 		}
128 128
 		if (!$storage->instanceOfStorage(IHomeStorage::class)) {
129
-			$output->writeln('  mounted at: ' . $mountPoint->getMountPoint());
129
+			$output->writeln('  mounted at: '.$mountPoint->getMountPoint());
130 130
 		}
131 131
 		if ($storage->instanceOfStorage(ObjectStoreStorage::class)) {
132 132
 			/** @var ObjectStoreStorage $storage */
@@ -134,9 +134,9 @@  discard block
 block discarded – undo
134 134
 			$parts = explode(':', $objectStoreId);
135 135
 			/** @var string $bucket */
136 136
 			$bucket = array_pop($parts);
137
-			$output->writeln('  bucket: ' . $bucket);
137
+			$output->writeln('  bucket: '.$bucket);
138 138
 			if ($node instanceof \OC\Files\Node\File) {
139
-				$output->writeln('  object id: ' . $storage->getURN($node->getId()));
139
+				$output->writeln('  object id: '.$storage->getURN($node->getId()));
140 140
 				try {
141 141
 					$fh = $node->fopen('r');
142 142
 					if (!$fh) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 					$stat = fstat($fh);
146 146
 					fclose($fh);
147 147
 					if ($stat['size'] !== $node->getSize()) {
148
-						$output->writeln('  <error>warning: object had a size of ' . $stat['size'] . ' but cache entry has a size of ' . $node->getSize() . '</error>. This should have been automatically repaired');
148
+						$output->writeln('  <error>warning: object had a size of '.$stat['size'].' but cache entry has a size of '.$node->getSize().'</error>. This should have been automatically repaired');
149 149
 					}
150 150
 				} catch (\Exception $e) {
151 151
 					$output->writeln('  <error>warning: object not found in bucket</error>');
@@ -158,19 +158,19 @@  discard block
 block discarded – undo
158 158
 		}
159 159
 		if ($mountPoint instanceof ExternalMountPoint) {
160 160
 			$storageConfig = $mountPoint->getStorageConfig();
161
-			$output->writeln('  external storage id: ' . $storageConfig->getId());
162
-			$output->writeln('  external type: ' . $storageConfig->getBackend()->getText());
161
+			$output->writeln('  external storage id: '.$storageConfig->getId());
162
+			$output->writeln('  external type: '.$storageConfig->getBackend()->getText());
163 163
 		} elseif ($mountPoint instanceof GroupMountPoint) {
164
-			$output->writeln('  groupfolder id: ' . $mountPoint->getFolderId());
164
+			$output->writeln('  groupfolder id: '.$mountPoint->getFolderId());
165 165
 		}
166 166
 		if ($input->getOption('storage-tree')) {
167 167
 			$storageTmp = $storage;
168
-			$storageClass = get_class($storageTmp) . ' (cache:' . get_class($storageTmp->getCache()) . ')';
168
+			$storageClass = get_class($storageTmp).' (cache:'.get_class($storageTmp->getCache()).')';
169 169
 			while ($storageTmp instanceof \OC\Files\Storage\Wrapper\Wrapper) {
170 170
 				$storageTmp = $storageTmp->getWrapperStorage();
171
-				$storageClass .= "\n\t" . '> ' . get_class($storageTmp) . ' (cache:' . get_class($storageTmp->getCache()) . ')';
171
+				$storageClass .= "\n\t".'> '.get_class($storageTmp).' (cache:'.get_class($storageTmp->getCache()).')';
172 172
 			}
173
-			$output->writeln('  storage wrapping: ' . $storageClass);
173
+			$output->writeln('  storage wrapping: '.$storageClass);
174 174
 		}
175 175
 
176 176
 	}
Please login to merge, or discard this patch.