Passed
Push — main ( 59ceaa...21f9b1 )
by Peter
02:38
created
src/Service/File/Downloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,11 +162,11 @@
 block discarded – undo
162 162
     protected function getReadStreamCallback($stream): callable
163 163
     {
164 164
         if (!is_resource($stream)) {
165
-            return function () {
165
+            return function() {
166 166
             };
167 167
         }
168 168
 
169
-        return function () use ($stream) {
169
+        return function() use ($stream) {
170 170
             while (!feof($stream)) {
171 171
                 print(@fread($stream, static::READ_LENGTH));
172 172
                 ob_flush();
Please login to merge, or discard this patch.
src/Grid/Factory/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $attributeCallbacks = parent::getAttributeCallbacks();
127 127
 
128
-        $attributeCallbacks[Html5::ATTR_CLASS] = function ($attribute, Entity $entity) {
128
+        $attributeCallbacks[Html5::ATTR_CLASS] = function($attribute, Entity $entity) {
129 129
             return $entity->isWritable() ? $attribute : Component::INTENT_HIDDEN;
130 130
         };
131 131
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     {
140 140
         $urlGenerator = $this->urlGenerator;
141 141
 
142
-        $closure = function ($attribute, Entity $entity) use ($urlGenerator) {
142
+        $closure = function($attribute, Entity $entity) use ($urlGenerator) {
143 143
             try {
144 144
                 // @phan-suppress-next-line PhanTypeMismatchArgument
145 145
                 return $urlGenerator->createFromName($attribute, $entity->getFilesystemName());
Please login to merge, or discard this patch.
admin-routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  */
20 20
 $router->group(
21 21
     ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'],
22
-    function (Router $router) {
22
+    function(Router $router) {
23 23
         $router->group(
24 24
             [
25 25
                 'path'       => RoutesConfig::getAdminBasePath(),
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                     Authentication::class,
28 28
                 ],
29 29
             ],
30
-            function (Router $router) {
30
+            function(Router $router) {
31 31
                 $entities = [
32 32
                     'file-categories' => 'FileCategory',
33 33
                     'file-downloads'  => 'FileDownload',
Please login to merge, or discard this patch.
api-routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  */
16 16
 $router->group(
17 17
     ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'],
18
-    function (Router $router) {
18
+    function(Router $router) {
19 19
         $router->group(
20 20
             [
21 21
                 'path' => RoutesConfig::getApiBasePath(),
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                     Api::class,
24 24
                 ],
25 25
             ],
26
-            function (Router $router) {
26
+            function(Router $router) {
27 27
                 $entities = [
28 28
                     'file-categories' => 'FileCategory',
29 29
                     'file-downloads'  => 'FileDownload',
Please login to merge, or discard this patch.
website-routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
  */
20 20
 $router->group(
21 21
     ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'],
22
-    function (Router $router) {
22
+    function(Router $router) {
23 23
         /** @see \AbterPhp\Files\Http\Controllers\Website\File::download() */
24 24
         $router->get(
25 25
             '/file/:filesystemName',
Please login to merge, or discard this patch.
src/Form/Factory/FileCategory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             'is_public',
128 128
             'files:fileCategoryIsPublic'
129 129
         );
130
-        $help  = new Help('files:fileCategoryIsPublicHelp');
130
+        $help = new Help('files:fileCategoryIsPublicHelp');
131 131
 
132 132
         $this->form[] = new CheckboxGroup($input, $label, $help);
133 133
 
Please login to merge, or discard this patch.
tests/Databases/Queries/FileCategoryAuthLoaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 'v1' => $fileCategoryIdentifier,
34 34
             ],
35 35
         ];
36
-        $statement0   = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValues);
36
+        $statement0 = MockStatementFactory::createReadStatement($this, $valuesToBind, $returnValues);
37 37
 
38 38
         $this->readConnectionMock
39 39
             ->expects($this->once())
Please login to merge, or discard this patch.
tests/Events/Listeners/TemplateInitializerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function setUp(): void
23 23
     {
24
-        $this->fileLoaderMock        = $this->createMock(FileLoader::class);
24
+        $this->fileLoaderMock = $this->createMock(FileLoader::class);
25 25
 
26 26
         $this->sut = new TemplateInitializer($this->fileLoaderMock);
27 27
     }
Please login to merge, or discard this patch.
tests/Orm/FileDownloadRepoTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     protected function createEntity($postfix): Entity
49 49
     {
50
-        $userLanguage =  new UserLanguage("qux-$postfix", "qux-$postfix", "Qux$postfix");
50
+        $userLanguage = new UserLanguage("qux-$postfix", "qux-$postfix", "Qux$postfix");
51 51
 
52 52
         return new Entity(
53 53
             "foo-$postfix",
Please login to merge, or discard this patch.