Completed
Push — master ( 0f7cfa...2ad6a6 )
by Raffael
04:11
created
src/lib/Server/User/Exception/NotAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Server/User/Exception/NotAuthenticated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Server/User/Exception/InvalidArgument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/lib/Server/AttributeDecorator.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
         }
103 103
 
104 104
         return [
105
-            'created' => function ($role) use ($attributes) {
105
+            'created' => function($role) use ($attributes) {
106 106
                 return $attributes['created']->toDateTime()->format('c');
107 107
             },
108
-            'changed' => function ($role) use ($attributes) {
108
+            'changed' => function($role) use ($attributes) {
109 109
                 return $attributes['changed']->toDateTime()->format('c');
110 110
             },
111
-            'deleted' => function ($role) use ($attributes) {
111
+            'deleted' => function($role) use ($attributes) {
112 112
                 if (false === $attributes['deleted']) {
113 113
                     return null;
114 114
                 }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         }
134 134
 
135 135
         return [
136
-            'id' => (string) $attributes['_id'],
136
+            'id' => (string)$attributes['_id'],
137 137
             'name' => $attributes['name'],
138 138
             'namespace' => $attributes['namespace'],
139 139
         ];
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
         $user = $this->server->getIdentity();
157 157
 
158 158
         return [
159
-            'id' => (string) $attributes['_id'],
160
-            'username' => (string) $attributes['username'],
161
-            'name' => (string) $attributes['username'],
162
-            'namespace' => (string) $attributes['namespace'],
163
-            'mail' => (string) $attributes['mail'],
164
-            'quota' => function ($role) use ($attributes, $user) {
159
+            'id' => (string)$attributes['_id'],
160
+            'username' => (string)$attributes['username'],
161
+            'name' => (string)$attributes['username'],
162
+            'namespace' => (string)$attributes['namespace'],
163
+            'mail' => (string)$attributes['mail'],
164
+            'quota' => function($role) use ($attributes, $user) {
165 165
                 if ($attributes['_id'] == $user->getId() || $user->isAdmin()) {
166 166
                     return $role->getQuotaUsage();
167 167
                 }
Please login to merge, or discard this patch.
src/app/Balloon.App.Preview/Exception/PreviewNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/Exception/UnsupportedType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/Exception/SessionNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.Office/Exception/AccessTokenInvalid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.
src/app/Balloon.App.ClamAv/Exception/ScanFailed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /**
6 6
  * balloon
Please login to merge, or discard this patch.