Passed
Push — master ( 5ad730...5c1154 )
by John
13:07 queued 13s
created
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/HEIC.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 			$bp->setFormat('jpg');
60 60
 		} catch (\Exception $e) {
61 61
 			\OC::$server->getLogger()->logException($e, [
62
-				'message' => 'File: ' . $file->getPath() . ' Imagick says:',
62
+				'message' => 'File: '.$file->getPath().' Imagick says:',
63 63
 				'level' => ILogger::ERROR,
64 64
 				'app' => 'core',
65 65
 			]);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 		$bp = new \Imagick();
94 94
 
95 95
 		// Layer 0 contains either the bitmap or a flat representation of all vector layers
96
-		$bp->readImage($tmpPath . '[0]');
96
+		$bp->readImage($tmpPath.'[0]');
97 97
 
98 98
 		$bp->setImageFormat('jpg');
99 99
 
Please login to merge, or discard this patch.
Indentation   +105 added lines, -105 removed lines patch added patch discarded remove patch
@@ -40,110 +40,110 @@
 block discarded – undo
40 40
  * @package OC\Preview
41 41
  */
42 42
 class HEIC extends ProviderV2 {
43
-	/**
44
-	 * {@inheritDoc}
45
-	 */
46
-	public function getMimeType(): string {
47
-		return '/image\/hei(f|c)/';
48
-	}
49
-
50
-	/**
51
-	 * {@inheritDoc}
52
-	 */
53
-	public function isAvailable(FileInfo $file): bool {
54
-		return in_array('HEIC', \Imagick::queryFormats("HEI*"));
55
-	}
56
-
57
-	/**
58
-	 * {@inheritDoc}
59
-	 */
60
-	public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
61
-		if (!$this->isAvailable($file)) {
62
-			return null;
63
-		}
64
-
65
-		$tmpPath = $this->getLocalFile($file);
66
-
67
-		// Creates \Imagick object from the heic file
68
-		try {
69
-			$bp = $this->getResizedPreview($tmpPath, $maxX, $maxY);
70
-			$bp->setFormat('jpg');
71
-		} catch (\Exception $e) {
72
-			\OC::$server->getLogger()->logException($e, [
73
-				'message' => 'File: ' . $file->getPath() . ' Imagick says:',
74
-				'level' => ILogger::ERROR,
75
-				'app' => 'core',
76
-			]);
77
-			return null;
78
-		}
79
-
80
-		$this->cleanTmpFiles();
81
-
82
-		//new bitmap image object
83
-		$image = new \OC_Image();
84
-		$image->loadFromData((string) $bp);
85
-		//check if image object is valid
86
-		return $image->valid() ? $image : null;
87
-	}
88
-
89
-	/**
90
-	 * Returns a preview of maxX times maxY dimensions in JPG format
91
-	 *
92
-	 *    * The default resolution is already 72dpi, no need to change it for a bitmap output
93
-	 *    * It's possible to have proper colour conversion using profileimage().
94
-	 *    ICC profiles are here: http://www.color.org/srgbprofiles.xalter
95
-	 *    * It's possible to Gamma-correct an image via gammaImage()
96
-	 *
97
-	 * @param string $tmpPath the location of the file to convert
98
-	 * @param int $maxX
99
-	 * @param int $maxY
100
-	 *
101
-	 * @return \Imagick
102
-	 */
103
-	private function getResizedPreview($tmpPath, $maxX, $maxY) {
104
-		$bp = new \Imagick();
105
-
106
-		// Layer 0 contains either the bitmap or a flat representation of all vector layers
107
-		$bp->readImage($tmpPath . '[0]');
108
-
109
-		$bp->setImageFormat('jpg');
110
-
111
-		$bp = $this->resize($bp, $maxX, $maxY);
43
+    /**
44
+     * {@inheritDoc}
45
+     */
46
+    public function getMimeType(): string {
47
+        return '/image\/hei(f|c)/';
48
+    }
49
+
50
+    /**
51
+     * {@inheritDoc}
52
+     */
53
+    public function isAvailable(FileInfo $file): bool {
54
+        return in_array('HEIC', \Imagick::queryFormats("HEI*"));
55
+    }
56
+
57
+    /**
58
+     * {@inheritDoc}
59
+     */
60
+    public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
61
+        if (!$this->isAvailable($file)) {
62
+            return null;
63
+        }
64
+
65
+        $tmpPath = $this->getLocalFile($file);
66
+
67
+        // Creates \Imagick object from the heic file
68
+        try {
69
+            $bp = $this->getResizedPreview($tmpPath, $maxX, $maxY);
70
+            $bp->setFormat('jpg');
71
+        } catch (\Exception $e) {
72
+            \OC::$server->getLogger()->logException($e, [
73
+                'message' => 'File: ' . $file->getPath() . ' Imagick says:',
74
+                'level' => ILogger::ERROR,
75
+                'app' => 'core',
76
+            ]);
77
+            return null;
78
+        }
79
+
80
+        $this->cleanTmpFiles();
81
+
82
+        //new bitmap image object
83
+        $image = new \OC_Image();
84
+        $image->loadFromData((string) $bp);
85
+        //check if image object is valid
86
+        return $image->valid() ? $image : null;
87
+    }
88
+
89
+    /**
90
+     * Returns a preview of maxX times maxY dimensions in JPG format
91
+     *
92
+     *    * The default resolution is already 72dpi, no need to change it for a bitmap output
93
+     *    * It's possible to have proper colour conversion using profileimage().
94
+     *    ICC profiles are here: http://www.color.org/srgbprofiles.xalter
95
+     *    * It's possible to Gamma-correct an image via gammaImage()
96
+     *
97
+     * @param string $tmpPath the location of the file to convert
98
+     * @param int $maxX
99
+     * @param int $maxY
100
+     *
101
+     * @return \Imagick
102
+     */
103
+    private function getResizedPreview($tmpPath, $maxX, $maxY) {
104
+        $bp = new \Imagick();
105
+
106
+        // Layer 0 contains either the bitmap or a flat representation of all vector layers
107
+        $bp->readImage($tmpPath . '[0]');
108
+
109
+        $bp->setImageFormat('jpg');
110
+
111
+        $bp = $this->resize($bp, $maxX, $maxY);
112 112
 		
113
-		return $bp;
114
-	}
115
-
116
-	/**
117
-	 * Returns a resized \Imagick object
118
-	 *
119
-	 * If you want to know more on the various methods available to resize an
120
-	 * image, check out this link : @link https://stackoverflow.com/questions/8517304/what-the-difference-of-sample-resample-scale-resize-adaptive-resize-thumbnail-im
121
-	 *
122
-	 * @param \Imagick $bp
123
-	 * @param int $maxX
124
-	 * @param int $maxY
125
-	 *
126
-	 * @return \Imagick
127
-	 */
128
-	private function resize($bp, $maxX, $maxY) {
129
-		[$previewWidth, $previewHeight] = array_values($bp->getImageGeometry());
130
-
131
-		// We only need to resize a preview which doesn't fit in the maximum dimensions
132
-		if ($previewWidth > $maxX || $previewHeight > $maxY) {
133
-			// If we want a small image (thumbnail) let's be most space- and time-efficient
134
-			if ($maxX <= 500 && $maxY <= 500) {
135
-				$bp->thumbnailImage($maxY, $maxX, true);
136
-				$bp->stripImage();
137
-			} else {
138
-				// A bigger image calls for some better resizing algorithm
139
-				// According to http://www.imagemagick.org/Usage/filter/#lanczos
140
-				// the catrom filter is almost identical to Lanczos2, but according
141
-				// to https://www.php.net/manual/en/imagick.resizeimage.php it is
142
-				// significantly faster
143
-				$bp->resizeImage($maxX, $maxY, \Imagick::FILTER_CATROM, 1, true);
144
-			}
145
-		}
146
-
147
-		return $bp;
148
-	}
113
+        return $bp;
114
+    }
115
+
116
+    /**
117
+     * Returns a resized \Imagick object
118
+     *
119
+     * If you want to know more on the various methods available to resize an
120
+     * image, check out this link : @link https://stackoverflow.com/questions/8517304/what-the-difference-of-sample-resample-scale-resize-adaptive-resize-thumbnail-im
121
+     *
122
+     * @param \Imagick $bp
123
+     * @param int $maxX
124
+     * @param int $maxY
125
+     *
126
+     * @return \Imagick
127
+     */
128
+    private function resize($bp, $maxX, $maxY) {
129
+        [$previewWidth, $previewHeight] = array_values($bp->getImageGeometry());
130
+
131
+        // We only need to resize a preview which doesn't fit in the maximum dimensions
132
+        if ($previewWidth > $maxX || $previewHeight > $maxY) {
133
+            // If we want a small image (thumbnail) let's be most space- and time-efficient
134
+            if ($maxX <= 500 && $maxY <= 500) {
135
+                $bp->thumbnailImage($maxY, $maxX, true);
136
+                $bp->stripImage();
137
+            } else {
138
+                // A bigger image calls for some better resizing algorithm
139
+                // According to http://www.imagemagick.org/Usage/filter/#lanczos
140
+                // the catrom filter is almost identical to Lanczos2, but according
141
+                // to https://www.php.net/manual/en/imagick.resizeimage.php it is
142
+                // significantly faster
143
+                $bp->resizeImage($maxX, $maxY, \Imagick::FILTER_CATROM, 1, true);
144
+            }
145
+        }
146
+
147
+        return $bp;
148
+    }
149 149
 }
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/Bitmap.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 			$bp = $this->getResizedPreview($tmpPath, $maxX, $maxY);
50 50
 		} catch (\Exception $e) {
51 51
 			\OC::$server->getLogger()->logException($e, [
52
-				'message' => 'File: ' . $file->getPath() . ' Imagick says:',
52
+				'message' => 'File: '.$file->getPath().' Imagick says:',
53 53
 				'level' => ILogger::ERROR,
54 54
 				'app' => 'core',
55 55
 			]);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 		$bp = new Imagick();
84 84
 
85 85
 		// Layer 0 contains either the bitmap or a flat representation of all vector layers
86
-		$bp->readImage($tmpPath . '[0]');
86
+		$bp->readImage($tmpPath.'[0]');
87 87
 
88 88
 		$bp = $this->resize($bp, $maxX, $maxY);
89 89
 
Please login to merge, or discard this patch.
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -38,81 +38,81 @@
 block discarded – undo
38 38
  */
39 39
 abstract class Bitmap extends ProviderV2 {
40 40
 
41
-	/**
42
-	 * {@inheritDoc}
43
-	 */
44
-	public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
45
-		$tmpPath = $this->getLocalFile($file);
41
+    /**
42
+     * {@inheritDoc}
43
+     */
44
+    public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
45
+        $tmpPath = $this->getLocalFile($file);
46 46
 
47
-		// Creates \Imagick object from bitmap or vector file
48
-		try {
49
-			$bp = $this->getResizedPreview($tmpPath, $maxX, $maxY);
50
-		} catch (\Exception $e) {
51
-			\OC::$server->getLogger()->logException($e, [
52
-				'message' => 'File: ' . $file->getPath() . ' Imagick says:',
53
-				'level' => ILogger::ERROR,
54
-				'app' => 'core',
55
-			]);
56
-			return null;
57
-		}
47
+        // Creates \Imagick object from bitmap or vector file
48
+        try {
49
+            $bp = $this->getResizedPreview($tmpPath, $maxX, $maxY);
50
+        } catch (\Exception $e) {
51
+            \OC::$server->getLogger()->logException($e, [
52
+                'message' => 'File: ' . $file->getPath() . ' Imagick says:',
53
+                'level' => ILogger::ERROR,
54
+                'app' => 'core',
55
+            ]);
56
+            return null;
57
+        }
58 58
 
59
-		$this->cleanTmpFiles();
59
+        $this->cleanTmpFiles();
60 60
 
61
-		//new bitmap image object
62
-		$image = new \OC_Image();
63
-		$image->loadFromData((string) $bp);
64
-		//check if image object is valid
65
-		return $image->valid() ? $image : null;
66
-	}
61
+        //new bitmap image object
62
+        $image = new \OC_Image();
63
+        $image->loadFromData((string) $bp);
64
+        //check if image object is valid
65
+        return $image->valid() ? $image : null;
66
+    }
67 67
 
68
-	/**
69
-	 * Returns a preview of maxX times maxY dimensions in PNG format
70
-	 *
71
-	 *    * The default resolution is already 72dpi, no need to change it for a bitmap output
72
-	 *    * It's possible to have proper colour conversion using profileimage().
73
-	 *    ICC profiles are here: http://www.color.org/srgbprofiles.xalter
74
-	 *    * It's possible to Gamma-correct an image via gammaImage()
75
-	 *
76
-	 * @param string $tmpPath the location of the file to convert
77
-	 * @param int $maxX
78
-	 * @param int $maxY
79
-	 *
80
-	 * @return \Imagick
81
-	 */
82
-	private function getResizedPreview($tmpPath, $maxX, $maxY) {
83
-		$bp = new Imagick();
68
+    /**
69
+     * Returns a preview of maxX times maxY dimensions in PNG format
70
+     *
71
+     *    * The default resolution is already 72dpi, no need to change it for a bitmap output
72
+     *    * It's possible to have proper colour conversion using profileimage().
73
+     *    ICC profiles are here: http://www.color.org/srgbprofiles.xalter
74
+     *    * It's possible to Gamma-correct an image via gammaImage()
75
+     *
76
+     * @param string $tmpPath the location of the file to convert
77
+     * @param int $maxX
78
+     * @param int $maxY
79
+     *
80
+     * @return \Imagick
81
+     */
82
+    private function getResizedPreview($tmpPath, $maxX, $maxY) {
83
+        $bp = new Imagick();
84 84
 
85
-		// Layer 0 contains either the bitmap or a flat representation of all vector layers
86
-		$bp->readImage($tmpPath . '[0]');
85
+        // Layer 0 contains either the bitmap or a flat representation of all vector layers
86
+        $bp->readImage($tmpPath . '[0]');
87 87
 
88
-		$bp = $this->resize($bp, $maxX, $maxY);
88
+        $bp = $this->resize($bp, $maxX, $maxY);
89 89
 
90
-		$bp->setImageFormat('png');
90
+        $bp->setImageFormat('png');
91 91
 
92
-		return $bp;
93
-	}
92
+        return $bp;
93
+    }
94 94
 
95
-	/**
96
-	 * Returns a resized \Imagick object
97
-	 *
98
-	 * If you want to know more on the various methods available to resize an
99
-	 * image, check out this link : @link https://stackoverflow.com/questions/8517304/what-the-difference-of-sample-resample-scale-resize-adaptive-resize-thumbnail-im
100
-	 *
101
-	 * @param \Imagick $bp
102
-	 * @param int $maxX
103
-	 * @param int $maxY
104
-	 *
105
-	 * @return \Imagick
106
-	 */
107
-	private function resize($bp, $maxX, $maxY) {
108
-		[$previewWidth, $previewHeight] = array_values($bp->getImageGeometry());
95
+    /**
96
+     * Returns a resized \Imagick object
97
+     *
98
+     * If you want to know more on the various methods available to resize an
99
+     * image, check out this link : @link https://stackoverflow.com/questions/8517304/what-the-difference-of-sample-resample-scale-resize-adaptive-resize-thumbnail-im
100
+     *
101
+     * @param \Imagick $bp
102
+     * @param int $maxX
103
+     * @param int $maxY
104
+     *
105
+     * @return \Imagick
106
+     */
107
+    private function resize($bp, $maxX, $maxY) {
108
+        [$previewWidth, $previewHeight] = array_values($bp->getImageGeometry());
109 109
 
110
-		// We only need to resize a preview which doesn't fit in the maximum dimensions
111
-		if ($previewWidth > $maxX || $previewHeight > $maxY) {
112
-			// TODO: LANCZOS is the default filter, CATROM could bring similar results faster
113
-			$bp->resizeImage($maxX, $maxY, imagick::FILTER_LANCZOS, 1, true);
114
-		}
110
+        // We only need to resize a preview which doesn't fit in the maximum dimensions
111
+        if ($previewWidth > $maxX || $previewHeight > $maxY) {
112
+            // TODO: LANCZOS is the default filter, CATROM could bring similar results faster
113
+            $bp->resizeImage($maxX, $maxY, imagick::FILTER_LANCZOS, 1, true);
114
+        }
115 115
 
116
-		return $bp;
117
-	}
116
+        return $bp;
117
+    }
118 118
 }
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.
apps/cloud_federation_api/composer/composer/ClassLoader.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -370,18 +370,18 @@  discard block
 block discarded – undo
370 370
     private function findFileWithExtension($class, $ext)
371 371
     {
372 372
         // PSR-4 lookup
373
-        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
373
+        $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext;
374 374
 
375 375
         $first = $class[0];
376 376
         if (isset($this->prefixLengthsPsr4[$first])) {
377 377
             $subPath = $class;
378 378
             while (false !== $lastPos = strrpos($subPath, '\\')) {
379 379
                 $subPath = substr($subPath, 0, $lastPos);
380
-                $search = $subPath . '\\';
380
+                $search = $subPath.'\\';
381 381
                 if (isset($this->prefixDirsPsr4[$search])) {
382
-                    $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
382
+                    $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1);
383 383
                     foreach ($this->prefixDirsPsr4[$search] as $dir) {
384
-                        if (file_exists($file = $dir . $pathEnd)) {
384
+                        if (file_exists($file = $dir.$pathEnd)) {
385 385
                             return $file;
386 386
                         }
387 387
                     }
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
         // PSR-4 fallback dirs
393 393
         foreach ($this->fallbackDirsPsr4 as $dir) {
394
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
394
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) {
395 395
                 return $file;
396 396
             }
397 397
         }
@@ -403,14 +403,14 @@  discard block
 block discarded – undo
403 403
                 . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
404 404
         } else {
405 405
             // PEAR-like class name
406
-            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
406
+            $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext;
407 407
         }
408 408
 
409 409
         if (isset($this->prefixesPsr0[$first])) {
410 410
             foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
411 411
                 if (0 === strpos($class, $prefix)) {
412 412
                     foreach ($dirs as $dir) {
413
-                        if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
413
+                        if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
414 414
                             return $file;
415 415
                         }
416 416
                     }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
         // PSR-0 fallback dirs
422 422
         foreach ($this->fallbackDirsPsr0 as $dir) {
423
-            if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
423
+            if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) {
424 424
                 return $file;
425 425
             }
426 426
         }
Please login to merge, or discard this patch.