Completed
Push — 3.0 ( bff830...62cd67 )
by Olivier
06:14
created
lib/Block/EditBlock.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,13 +11,10 @@
 block discarded – undo
11 11
 
12 12
 namespace Icybee\Modules\Files\Block;
13 13
 
14
-use ICanBoogie\I18n;
15 14
 use ICanBoogie\Operation;
16
-
17 15
 use Brickrouge\Element;
18 16
 use Brickrouge\Document;
19 17
 use Brickrouge\Form;
20
-
21 18
 use Icybee\Modules\Files as Root;
22 19
 use Icybee\Modules\Files\File;
23 20
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
 				Element::CHILDREN => [
62 62
 
63
-					$this->t('The folder %folder is not writable !', [ '%folder' => $folder ])
63
+					$this->t('The folder %folder is not writable !', ['%folder' => $folder])
64 64
 
65 65
 				]
66 66
 			];
Please login to merge, or discard this patch.
lib/Hooks.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Icybee\Modules\Files;
13 13
 
14 14
 use ICanBoogie\Core;
15
-
16 15
 use Icybee\Modules\Files\Storage\FileStorage;
17 16
 use Icybee\Modules\Files\Storage\FileStorageIndex;
18 17
 
Please login to merge, or discard this patch.
lib/Operation/SaveOperation.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use ICanBoogie\Errors;
15 15
 use ICanBoogie\HTTP\Request;
16 16
 use ICanBoogie\HTTP\File as HTTPFile;
17
-
18 17
 use Icybee\Modules\Files\File;
19 18
 use Icybee\Modules\Files\Module;
20 19
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 
122 122
 			if (!$file)
123 123
 			{
124
-				$this->response->errors->add(File::HTTP_FILE, "Invalid or deleted file: %pathname", [ 'pathname' => $path ]);
124
+				$this->response->errors->add(File::HTTP_FILE, "Invalid or deleted file: %pathname", ['pathname' => $path]);
125 125
 			}
126 126
 		}
127 127
 
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
 
159 159
 			if ($max_file_size && $max_file_size < $file->size)
160 160
 			{
161
-				$error_message = $errors->format("Maximum file size is :size Mb", [ ':size' => round($max_file_size / 1024) ]);
161
+				$error_message = $errors->format("Maximum file size is :size Mb", [':size' => round($max_file_size / 1024)]);
162 162
 			}
163 163
 
164 164
 			if ($this->accept && !$file->match($this->accept))
165 165
 			{
166
-				$error_message = $errors->format("Only the following file types are accepted: %accepted.", [ '%accepted' => implode(', ', $this->accept) ]);
166
+				$error_message = $errors->format("Only the following file types are accepted: %accepted.", ['%accepted' => implode(', ', $this->accept)]);
167 167
 			}
168 168
 
169 169
 			if ($error_message)
Please login to merge, or discard this patch.
lib/Routing/FilesAdminController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 namespace Icybee\Modules\Files\Routing;
13 13
 
14 14
 use ICanBoogie\HTTP\FileResponse;
15
-use ICanBoogie\HTTP\Request;
16
-
17 15
 use Icybee\Modules\Files\Binding\CoreBindings;
18 16
 use Icybee\Modules\Files\File;
19 17
 use Icybee\Modules\Files\FileModel;
Please login to merge, or discard this patch.
lib/Routing/FilesController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,12 +12,10 @@
 block discarded – undo
12 12
 namespace Icybee\Modules\Files\Routing;
13 13
 
14 14
 use ICanBoogie\HTTP\FileResponse;
15
-use ICanBoogie\HTTP\Request;
16 15
 use ICanBoogie\Routing\Controller;
17 16
 use ICanBoogie\Binding\Routing\ControllerBindings;
18 17
 use ICanBoogie\Binding\Routing\ForwardUndefinedPropertiesToApplication;
19 18
 use ICanBoogie\Module\ControllerBindings as ModuleBindings;
20
-
21 19
 use Icybee\Modules\Files\Binding\CoreBindings;
22 20
 use Icybee\Modules\Files\File;
23 21
 
Please login to merge, or discard this patch.
descriptor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@
 block discarded – undo
27 27
 			Model::EXTENDING => 'nodes',
28 28
 			Model::SCHEMA => [
29 29
 
30
-				'size' => [ 'integer', 'unsigned' => true ],
31
-				'mime' => [ 'varchar', 'charset' => 'ascii/general_ci' ],
32
-				'extension' => [ 'varchar', 16, 'charset' => 'ascii/general_ci' ],
30
+				'size' => ['integer', 'unsigned' => true],
31
+				'mime' => ['varchar', 'charset' => 'ascii/general_ci'],
32
+				'extension' => ['varchar', 16, 'charset' => 'ascii/general_ci'],
33 33
 				'description' => 'text'
34 34
 
35 35
 			]
Please login to merge, or discard this patch.
updates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 			}
95 95
 
96 96
 			$hash = $storage->add($path)->hash;
97
-			$index->add(IndexKey::from([ $nid, $uuid, $hash ]));
97
+			$index->add(IndexKey::from([$nid, $uuid, $hash]));
98 98
 		}
99 99
 
100 100
 		$model->remove_column('path');
Please login to merge, or discard this patch.
lib/Block/ManageBlock/DownloadColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 class DownloadColumn extends ManageBlock\Column
13 13
 {
14
-	public function __construct(ManageBlock $manager, $id, array $options=[])
14
+	public function __construct(ManageBlock $manager, $id, array $options = [])
15 15
 	{
16 16
 		parent::__construct($manager, $id, [
17 17
 
Please login to merge, or discard this patch.
lib/Block/ManageBlock.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
 	{
34 34
 		parent::__construct($module, $attributes + [
35 35
 
36
-			self::T_COLUMNS_ORDER => [ 'title', 'size', 'download', 'is_online', 'uid', 'mime', 'updated_at' ]
36
+			self::T_COLUMNS_ORDER => ['title', 'size', 'download', 'is_online', 'uid', 'mime', 'updated_at']
37 37
 
38 38
 		]);
39 39
 	}
Please login to merge, or discard this patch.