Skip to content

Commit 114fcf4

Browse files
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent b186852 commit 114fcf4

File tree

335 files changed

+1529
-1529
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

335 files changed

+1529
-1529
lines changed

apps/accessibility/appinfo/routes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
'ocs' => [
3232
[
3333
'name' => 'Config#getConfig',
34-
'url' => '/api/v1/config',
34+
'url' => '/api/v1/config',
3535
'verb' => 'GET',
3636
],
3737
[
3838
'name' => 'Config#setConfig',
39-
'url' => '/api/v1/config/{key}',
39+
'url' => '/api/v1/config/{key}',
4040
'verb' => 'PUT',
4141
],
4242
[
4343
'name' => 'Config#deleteConfig',
44-
'url' => '/api/v1/config/{key}',
44+
'url' => '/api/v1/config/{key}',
4545
'verb' => 'DELETE',
4646
],
4747
]

apps/accessibility/lib/AccessibilityProvider.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,41 +53,41 @@ class AccessibilityProvider {
5353
public function __construct(string $appName,
5454
IURLGenerator $urlGenerator,
5555
IL10N $l) {
56-
$this->appName = $appName;
56+
$this->appName = $appName;
5757
$this->urlGenerator = $urlGenerator;
58-
$this->l = $l;
58+
$this->l = $l;
5959
}
6060

6161
public function getThemes() {
6262
return [
6363
[
64-
'id' => 'dark',
65-
'img' => $this->urlGenerator->imagePath($this->appName, 'theme-dark.jpg'),
64+
'id' => 'dark',
65+
'img' => $this->urlGenerator->imagePath($this->appName, 'theme-dark.jpg'),
6666
'title' => $this->l->t('Dark theme'),
6767
'enableLabel' => $this->l->t('Enable dark theme'),
68-
'text' => $this->l->t('A dark theme to ease your eyes by reducing the overall luminosity and brightness. It is still under development, so please report any issues you may find.')
68+
'text' => $this->l->t('A dark theme to ease your eyes by reducing the overall luminosity and brightness. It is still under development, so please report any issues you may find.')
6969
]
7070
];
7171
}
7272

7373
public function getHighContrast() {
7474
return [
75-
'id' => 'highcontrast',
76-
'img' => $this->urlGenerator->imagePath($this->appName, 'mode-highcontrast.jpg'),
75+
'id' => 'highcontrast',
76+
'img' => $this->urlGenerator->imagePath($this->appName, 'mode-highcontrast.jpg'),
7777
'title' => $this->l->t('High contrast mode'),
7878
'enableLabel' => $this->l->t('Enable high contrast mode'),
79-
'text' => $this->l->t('A high contrast mode to ease your navigation. Visual quality will be reduced but clarity will be increased.')
79+
'text' => $this->l->t('A high contrast mode to ease your navigation. Visual quality will be reduced but clarity will be increased.')
8080
];
8181
}
8282

8383
public function getFonts() {
8484
return [
8585
[
86-
'id' => 'fontdyslexic',
87-
'img' => $this->urlGenerator->imagePath($this->appName, 'font-opendyslexic.jpg'),
86+
'id' => 'fontdyslexic',
87+
'img' => $this->urlGenerator->imagePath($this->appName, 'font-opendyslexic.jpg'),
8888
'title' => $this->l->t('Dyslexia font'),
8989
'enableLabel' => $this->l->t('Enable dyslexia font'),
90-
'text' => $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia.')
90+
'text' => $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia.')
9191
]
9292
];
9393
}

apps/accessibility/lib/Controller/AccessibilityController.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,19 @@ public function __construct(string $appName,
113113
IconsCacher $iconsCacher,
114114
\OC_Defaults $defaults) {
115115
parent::__construct($appName, $request);
116-
$this->appName = $appName;
117-
$this->config = $config;
118-
$this->userManager = $userManager;
119-
$this->logger = $logger;
116+
$this->appName = $appName;
117+
$this->config = $config;
118+
$this->userManager = $userManager;
119+
$this->logger = $logger;
120120
$this->urlGenerator = $urlGenerator;
121-
$this->timeFactory = $timeFactory;
122-
$this->userSession = $userSession;
123-
$this->appManager = $appManager;
124-
$this->iconsCacher = $iconsCacher;
125-
$this->defaults = $defaults;
121+
$this->timeFactory = $timeFactory;
122+
$this->userSession = $userSession;
123+
$this->appManager = $appManager;
124+
$this->iconsCacher = $iconsCacher;
125+
$this->defaults = $defaults;
126126

127127
$this->serverRoot = \OC::$SERVERROOT;
128-
$this->appRoot = $this->appManager->getAppPath($this->appName);
128+
$this->appRoot = $this->appManager->getAppPath($this->appName);
129129
}
130130

131131
/**
@@ -136,8 +136,8 @@ public function __construct(string $appName,
136136
* @return DataDisplayResponse
137137
*/
138138
public function getCss(): DataDisplayResponse {
139-
$css = '';
140-
$imports = '';
139+
$css = '';
140+
$imports = '';
141141
if ($this->userSession->isLoggedIn()) {
142142
$userValues = $this->getUserValues();
143143
} else {
@@ -182,7 +182,7 @@ public function getCss(): DataDisplayResponse {
182182

183183
// Rebase all urls
184184
$appWebRoot = substr($this->appRoot, strlen($this->serverRoot) - strlen(\OC::$WEBROOT));
185-
$css = $this->rebaseUrls($css, $appWebRoot . '/css');
185+
$css = $this->rebaseUrls($css, $appWebRoot . '/css');
186186

187187
if (in_array('dark', $userValues) && $this->iconsCacher->getCachedList() && $this->iconsCacher->getCachedList()->getSize() > 0) {
188188
$iconsCss = $this->invertSvgIconsColor($this->iconsCacher->getCachedList()->getContent());
@@ -215,7 +215,7 @@ public function getCss(): DataDisplayResponse {
215215
*/
216216
private function getUserValues(): array {
217217
$userTheme = $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'theme', false);
218-
$userFont = $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'font', false);
218+
$userFont = $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'font', false);
219219
$userHighContrast = $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'highcontrast', false);
220220

221221
return [$userTheme, $userHighContrast, $userFont];
@@ -240,7 +240,7 @@ private function filterOutRule(string $rule, string $css): string {
240240
* @return string
241241
*/
242242
private function rebaseUrls(string $css, string $webDir): string {
243-
$re = '/url\([\'"]([^\/][\.\w?=\/-]*)[\'"]\)/x';
243+
$re = '/url\([\'"]([^\/][\.\w?=\/-]*)[\'"]\)/x';
244244
$subst = 'url(\'' . $webDir . '/$1\')';
245245

246246
return preg_replace($re, $subst, $css);

apps/accessibility/lib/Controller/ConfigController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ public function __construct(string $appName,
7575
IUserSession $userSession,
7676
AccessibilityProvider $accessibilityProvider) {
7777
parent::__construct($appName, $request);
78-
$this->appName = $appName;
79-
$this->config = $config;
80-
$this->userSession = $userSession;
78+
$this->appName = $appName;
79+
$this->config = $config;
80+
$this->userSession = $userSession;
8181
$this->accessibilityProvider = $accessibilityProvider;
82-
$this->userId = $userSession->getUser()->getUID();
82+
$this->userId = $userSession->getUser()->getUID();
8383
}
8484

8585
/**
@@ -115,7 +115,7 @@ public function setConfig(string $key, $value): DataResponse {
115115

116116
$themes = $this->accessibilityProvider->getThemes();
117117
$highcontrast = [$this->accessibilityProvider->getHighContrast()];
118-
$fonts = $this->accessibilityProvider->getFonts();
118+
$fonts = $this->accessibilityProvider->getFonts();
119119

120120
$availableOptions = array_map(function ($option) {
121121
return $option['id'];

apps/accessibility/lib/Settings/Personal.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ public function __construct(string $appName,
7474
IURLGenerator $urlGenerator,
7575
AccessibilityProvider $accessibilityProvider,
7676
IInitialStateService $initialStateService) {
77-
$this->appName = $appName;
78-
$this->config = $config;
79-
$this->userSession = $userSession;
80-
$this->l = $l;
81-
$this->urlGenerator = $urlGenerator;
77+
$this->appName = $appName;
78+
$this->config = $config;
79+
$this->userSession = $userSession;
80+
$this->l = $l;
81+
$this->urlGenerator = $urlGenerator;
8282
$this->accessibilityProvider = $accessibilityProvider;
83-
$this->initialStateService = $initialStateService;
83+
$this->initialStateService = $initialStateService;
8484
}
8585

8686
/**
@@ -93,14 +93,14 @@ public function getForm() {
9393

9494
$availableConfig = [
9595
'themes' => $this->accessibilityProvider->getThemes(),
96-
'fonts' => $this->accessibilityProvider->getFonts(),
96+
'fonts' => $this->accessibilityProvider->getFonts(),
9797
'highcontrast' => $this->accessibilityProvider->getHighContrast()
9898
];
9999

100100
$userConfig = [
101101
'highcontrast' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'highcontrast', false),
102-
'theme' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'theme', false),
103-
'font' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'font', false)
102+
'theme' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'theme', false),
103+
'font' => $this->config->getUserValue($this->userSession->getUser()->getUID(), $this->appName, 'font', false)
104104
];
105105

106106
$this->initialStateService->provideInitialState($this->appName, 'available-config', $availableConfig);

apps/accessibility/lib/Settings/PersonalSection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ class PersonalSection implements IIconSection {
4848
public function __construct(string $appName,
4949
IURLGenerator $urlGenerator,
5050
IL10N $l) {
51-
$this->appName = $appName;
51+
$this->appName = $appName;
5252
$this->urlGenerator = $urlGenerator;
53-
$this->l = $l;
53+
$this->l = $l;
5454
}
5555

5656
/**

apps/admin_audit/lib/BackgroundJobs/Rotate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Rotate extends TimedJob {
3131
use RotationTrait;
3232

3333
public function __construct() {
34-
$this->setInterval(60*60*3);
34+
$this->setInterval(60 * 60 * 3);
3535
}
3636

3737
protected function run($argument) {

apps/comments/lib/EventHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class EventHandler implements ICommentsEventHandler {
4242
private $notificationListener;
4343

4444
public function __construct(ActivityListener $activityListener, NotificationListener $notificationListener) {
45-
$this->activityListener = $activityListener;
45+
$this->activityListener = $activityListener;
4646
$this->notificationListener = $notificationListener;
4747
}
4848

apps/comments/tests/Unit/Collaboration/CommentersSorterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testSort($data) {
5353
$commentMocks = [];
5454
foreach ($data['actors'] as $actorType => $actors) {
5555
foreach ($actors as $actorId => $noOfComments) {
56-
for ($i=0;$i<$noOfComments;$i++) {
56+
for ($i = 0;$i < $noOfComments;$i++) {
5757
$mock = $this->createMock(IComment::class);
5858
$mock->expects($this->atLeastOnce())
5959
->method('getActorType')

apps/dav/lib/BackgroundJob/CleanupDirectLinksJob.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ class CleanupDirectLinksJob extends TimedJob {
3838
private $mapper;
3939

4040
public function __construct(ITimeFactory $timeFactory, DirectMapper $mapper) {
41-
$this->setInterval(60*60*24);
41+
$this->setInterval(60 * 60 * 24);
4242

4343
$this->timeFactory = $timeFactory;
4444
$this->mapper = $mapper;
4545
}
4646

4747
protected function run($argument) {
4848
// Delete all shares expired 24 hours ago
49-
$this->mapper->deleteExpired($this->timeFactory->getTime() - 60*60*24);
49+
$this->mapper->deleteExpired($this->timeFactory->getTime() - 60 * 60 * 24);
5050
}
5151
}

0 commit comments

Comments
 (0)