Passed
Push — master ( 8ecf9d...f49606 )
by Peter
02:08
created
src/Grid/Factory/File.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $attributeCallbacks = parent::getAttributeCallbacks();
130 130
 
131
-        $attributeCallbacks[Html5::ATTR_CLASS] = function ($attribute, Entity $entity) {
131
+        $attributeCallbacks[Html5::ATTR_CLASS] = function($attribute, Entity $entity) {
132 132
             return $entity->isWritable() ? $attribute : Component::INTENT_HIDDEN;
133 133
         };
134 134
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     {
143 143
         $urlGenerator = $this->urlGenerator;
144 144
 
145
-        $closure = function ($attribute, Entity $entity) use ($urlGenerator) {
145
+        $closure = function($attribute, Entity $entity) use ($urlGenerator) {
146 146
             try {
147 147
                 return $urlGenerator->createFromName($attribute, $entity->getFilesystemName());
148 148
             } catch (\Exception $e) {
Please login to merge, or discard this patch.
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.
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
             Routes::PATH_FILE,
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'       => PATH_ADMIN,
@@ -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
                     'filecategories' => 'FileCategory',
33 33
                     'filedownloads'  => 'FileDownload',
Please login to merge, or discard this patch.
src/Events/Listeners/NavigationBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $dropdown[] = $this->createFilesItem();
47 47
         $dropdown[] = $this->createFileDownloadsItem();
48 48
 
49
-        $item   = $this->createFilesItem();
49
+        $item = $this->createFilesItem();
50 50
         $item->setIntent(Item::INTENT_DROPDOWN);
51 51
         $item->setAttribute(Html5::ATTR_ID, 'nav-files');
52 52
         $item[0]->setAttribute(Html5::ATTR_HREF, 'javascript:void(0);');
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
@@ -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'       => PATH_API,
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
                     Api::class,
28 28
                 ],
29 29
             ],
30
-            function (Router $router) {
30
+            function(Router $router) {
31 31
                 $entities = [
32 32
                     'filecategories' => 'FileCategory',
33 33
                     'filedownloads'  => 'FileDownload',
Please login to merge, or discard this patch.