Passed
Push — master ( 350d02...42b98d )
by Joas
23:24 queued 09:28
created
lib/private/Preview/Postscript.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
25 25
 
26 26
 //.eps
27 27
 class Postscript extends Bitmap {
28
-	/**
29
-	 * {@inheritDoc}
30
-	 */
31
-	public function getMimeType(): string {
32
-		return '/application\/postscript/';
33
-	}
28
+    /**
29
+     * {@inheritDoc}
30
+     */
31
+    public function getMimeType(): string {
32
+        return '/application\/postscript/';
33
+    }
34 34
 }
Please login to merge, or discard this patch.
lib/private/Preview/GIF.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 namespace OC\Preview;
24 24
 
25 25
 class GIF extends Image {
26
-	/**
27
-	 * {@inheritDoc}
28
-	 */
29
-	public function getMimeType(): string {
30
-		return '/image\/gif/';
31
-	}
26
+    /**
27
+     * {@inheritDoc}
28
+     */
29
+    public function getMimeType(): string {
30
+        return '/image\/gif/';
31
+    }
32 32
 }
Please login to merge, or discard this patch.
lib/private/Preview/SVG.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 			$content = stream_get_contents($file->fopen('r'));
48 48
 			if (substr($content, 0, 5) !== '<?xml') {
49
-				$content = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . $content;
49
+				$content = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'.$content;
50 50
 			}
51 51
 
52 52
 			// Do not parse SVG files with references
Please login to merge, or discard this patch.
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -32,50 +32,50 @@
 block discarded – undo
32 32
 use OCP\ILogger;
33 33
 
34 34
 class SVG extends ProviderV2 {
35
-	/**
36
-	 * {@inheritDoc}
37
-	 */
38
-	public function getMimeType(): string {
39
-		return '/image\/svg\+xml/';
40
-	}
35
+    /**
36
+     * {@inheritDoc}
37
+     */
38
+    public function getMimeType(): string {
39
+        return '/image\/svg\+xml/';
40
+    }
41 41
 
42
-	/**
43
-	 * {@inheritDoc}
44
-	 */
45
-	public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
46
-		try {
47
-			$svg = new \Imagick();
48
-			$svg->setBackgroundColor(new \ImagickPixel('transparent'));
42
+    /**
43
+     * {@inheritDoc}
44
+     */
45
+    public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
46
+        try {
47
+            $svg = new \Imagick();
48
+            $svg->setBackgroundColor(new \ImagickPixel('transparent'));
49 49
 
50
-			$content = stream_get_contents($file->fopen('r'));
51
-			if (substr($content, 0, 5) !== '<?xml') {
52
-				$content = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . $content;
53
-			}
50
+            $content = stream_get_contents($file->fopen('r'));
51
+            if (substr($content, 0, 5) !== '<?xml') {
52
+                $content = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . $content;
53
+            }
54 54
 
55
-			// Do not parse SVG files with references
56
-			if (stripos($content, 'xlink:href') !== false) {
57
-				return null;
58
-			}
55
+            // Do not parse SVG files with references
56
+            if (stripos($content, 'xlink:href') !== false) {
57
+                return null;
58
+            }
59 59
 
60
-			$svg->readImageBlob($content);
61
-			$svg->setImageFormat('png32');
62
-		} catch (\Exception $e) {
63
-			\OC::$server->getLogger()->logException($e, [
64
-				'level' => ILogger::ERROR,
65
-				'app' => 'core',
66
-			]);
67
-			return null;
68
-		}
60
+            $svg->readImageBlob($content);
61
+            $svg->setImageFormat('png32');
62
+        } catch (\Exception $e) {
63
+            \OC::$server->getLogger()->logException($e, [
64
+                'level' => ILogger::ERROR,
65
+                'app' => 'core',
66
+            ]);
67
+            return null;
68
+        }
69 69
 
70
-		//new image object
71
-		$image = new \OC_Image();
72
-		$image->loadFromData((string) $svg);
73
-		//check if image object is valid
74
-		if ($image->valid()) {
75
-			$image->scaleDownToFit($maxX, $maxY);
70
+        //new image object
71
+        $image = new \OC_Image();
72
+        $image->loadFromData((string) $svg);
73
+        //check if image object is valid
74
+        if ($image->valid()) {
75
+            $image->scaleDownToFit($maxX, $maxY);
76 76
 
77
-			return $image;
78
-		}
79
-		return null;
80
-	}
77
+            return $image;
78
+        }
79
+        return null;
80
+    }
81 81
 }
Please login to merge, or discard this patch.
lib/private/Preview/XBitmap.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 namespace OC\Preview;
24 24
 
25 25
 class XBitmap extends Image {
26
-	/**
27
-	 * {@inheritDoc}
28
-	 */
29
-	public function getMimeType(): string {
30
-		return '/image\/x-xbitmap/';
31
-	}
26
+    /**
27
+     * {@inheritDoc}
28
+     */
29
+    public function getMimeType(): string {
30
+        return '/image\/x-xbitmap/';
31
+    }
32 32
 }
Please login to merge, or discard this patch.
lib/private/Preview/PNG.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 namespace OC\Preview;
24 24
 
25 25
 class PNG extends Image {
26
-	/**
27
-	 * {@inheritDoc}
28
-	 */
29
-	public function getMimeType(): string {
30
-		return '/image\/png/';
31
-	}
26
+    /**
27
+     * {@inheritDoc}
28
+     */
29
+    public function getMimeType(): string {
30
+        return '/image\/png/';
31
+    }
32 32
 }
Please login to merge, or discard this patch.
lib/private/Preview/MSOffice2003.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 
24 24
 //.docm, .dotm, .xls(m), .xlt(m), .xla(m), .ppt(m), .pot(m), .pps(m), .ppa(m)
25 25
 class MSOffice2003 extends Office {
26
-	/**
27
-	 * {@inheritDoc}
28
-	 */
29
-	public function getMimeType(): string {
30
-		return '/application\/vnd.ms-.*/';
31
-	}
26
+    /**
27
+     * {@inheritDoc}
28
+     */
29
+    public function getMimeType(): string {
30
+        return '/application\/vnd.ms-.*/';
31
+    }
32 32
 }
Please login to merge, or discard this patch.
lib/private/Preview/JPEG.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 namespace OC\Preview;
24 24
 
25 25
 class JPEG extends Image {
26
-	/**
27
-	 * {@inheritDoc}
28
-	 */
29
-	public function getMimeType(): string {
30
-		return '/image\/jpeg/';
31
-	}
26
+    /**
27
+     * {@inheritDoc}
28
+     */
29
+    public function getMimeType(): string {
30
+        return '/image\/jpeg/';
31
+    }
32 32
 }
Please login to merge, or discard this patch.
apps/files/templates/appnavigation.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,12 @@
 block discarded – undo
15 15
 					<p><?php p($l->t('%s used', [$_['usage']])); ?></p>
16 16
 				</a>
17 17
 			</li>
18
-		<?php else: ?>
18
+		<?php else {
19
+    : ?>
19 20
 			<li id="quota" class="has-tooltip pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>"
20
-				title="<?php p($l->t('%s%% of %s used', [$_['usage_relative'], $_['total_space']])); ?>">
21
+				title="<?php p($l->t('%s%% of %s used', [$_['usage_relative'], $_['total_space']]));
22
+}
23
+?>">
21 24
 				<a href="#" class="icon-quota svg">
22 25
 					<p id="quotatext"><?php p($l->t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?></p>
23 26
 					<div class="quota-container">
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@  discard block
 block discarded – undo
6 6
 
7 7
 		<?php
8 8
 
9
-		$pinned = 0;
10
-		foreach ($_['navigationItems'] as $item) {
11
-			$pinned = NavigationListElements($item, $l, $pinned);
12
-		}
13
-		?>
9
+        $pinned = 0;
10
+        foreach ($_['navigationItems'] as $item) {
11
+            $pinned = NavigationListElements($item, $l, $pinned);
12
+        }
13
+        ?>
14 14
 
15 15
 		<?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
16 16
 			<li id="quota" class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>">
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
  * @return int Returns the pinned value
72 72
  */
73 73
 function NavigationListElements($item, $l, $pinned) {
74
-	strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : ''; ?>
74
+    strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : ''; ?>
75 75
 	<li
76 76
 		data-id="<?php p($item['id']) ?>"
77 77
 		<?php if (isset($item['dir'])) { ?> data-dir="<?php p($item['dir']); ?>" <?php } ?>
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
 		<?php if (isset($item['expandedState'])) { ?> data-expandedstate="<?php p($item['expandedState']); ?>" <?php } ?>
80 80
 		class="nav-<?php p($item['id']) ?>
81 81
 		<?php if (isset($item['classes'])) {
82
-		p($item['classes']);
83
-	} ?>
82
+        p($item['classes']);
83
+    } ?>
84 84
 		<?php p($pinned === 1 ? 'first-pinned' : '') ?>
85 85
 		<?php if (isset($item['defaultExpandedState']) && $item['defaultExpandedState']) { ?> open<?php } ?>"
86 86
 		<?php if (isset($item['folderPosition'])) { ?> folderposition="<?php p($item['folderPosition']); ?>" <?php } ?>>
@@ -90,26 +90,26 @@  discard block
 block discarded – undo
90 90
 
91 91
 
92 92
 		<?php
93
-		NavigationElementMenu($item);
94
-	if (isset($item['sublist'])) {
95
-		?>
93
+        NavigationElementMenu($item);
94
+    if (isset($item['sublist'])) {
95
+        ?>
96 96
 			<button class="collapse app-navigation-noclose"
97 97
 				aria-label="<?php p($l->t('Toggle %1$s sublist', $item['name'])) ?>"
98 98
 				<?php if (sizeof($item['sublist']) == 0) { ?> style="display: none" <?php } ?>>
99 99
 			</button>
100 100
 			<ul id="sublist-<?php p($item['id']); ?>">
101 101
 				<?php
102
-				foreach ($item['sublist'] as $item) {
103
-					$pinned = NavigationListElements($item, $l, $pinned);
104
-				} ?>
102
+                foreach ($item['sublist'] as $item) {
103
+                    $pinned = NavigationListElements($item, $l, $pinned);
104
+                } ?>
105 105
 			</ul>
106 106
 		<?php
107
-	} ?>
107
+    } ?>
108 108
 	</li>
109 109
 
110 110
 
111 111
 	<?php
112
-	return $pinned;
112
+    return $pinned;
113 113
 }
114 114
 
115 115
 /**
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
  * @return void
121 121
  */
122 122
 function NavigationElementMenu($item) {
123
-	if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') {
124
-		?>
123
+    if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') {
124
+        ?>
125 125
 		<div id="dotmenu-<?php p($item['id']); ?>"
126 126
 			 class="app-navigation-entry-utils" <?php if (isset($item['enableMenuButton']) && $item['enableMenuButton'] === 0) { ?> style="display: none"<?php } ?>>
127 127
 			<ul>
@@ -137,5 +137,5 @@  discard block
 block discarded – undo
137 137
 			</ul>
138 138
 		</div>
139 139
 	<?php
140
-	}
140
+    }
141 141
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Events/ARemoteWipeEvent.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,16 +31,16 @@
 block discarded – undo
31 31
 
32 32
 abstract class ARemoteWipeEvent extends Event {
33 33
 
34
-	/** @var IToken */
35
-	private $token;
34
+    /** @var IToken */
35
+    private $token;
36 36
 
37
-	public function __construct(IToken $token) {
38
-		parent::__construct();
39
-		$this->token = $token;
40
-	}
37
+    public function __construct(IToken $token) {
38
+        parent::__construct();
39
+        $this->token = $token;
40
+    }
41 41
 
42
-	public function getToken(): IToken {
43
-		return $this->token;
44
-	}
42
+    public function getToken(): IToken {
43
+        return $this->token;
44
+    }
45 45
 
46 46
 }
Please login to merge, or discard this patch.