Completed
Push — 3.0 ( bff830...62cd67 )
by Olivier
06:14
created
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.
lib/Facets/SizeCriterion.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 		{
30 30
 			$value = $modifiers['size'];
31 31
 
32
-			if (in_array($value, [ 'l', 'm', 's' ]))
32
+			if (in_array($value, ['l', 'm', 's']))
33 33
 			{
34 34
 				$filters['size'] = $value;
35 35
 			}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
 			if (in_array($value, [ 'l', 'm', 's' ]))
33 33
 			{
34 34
 				$filters['size'] = $value;
35
-			}
36
-			else
35
+			} else
37 36
 			{
38 37
 				unset($filters['size']);
39 38
 			}
Please login to merge, or discard this patch.
lib/FileUpload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
 			'class' => "icon-download-alt",
56 56
 			'href' => $path,
57
-			'title' => $this->t('download', [], [ 'scope' => 'fileupload.element' ])
57
+			'title' => $this->t('download', [], ['scope' => 'fileupload.element'])
58 58
 
59 59
 		]);
60 60
 	}
Please login to merge, or discard this patch.
lib/Storage/Pathname.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
 	 */
174 174
 	static protected function from_parts(array $parts)
175 175
 	{
176
-		list($root, $hash, $random) = $parts + [ 2 => null];
176
+		list($root, $hash, $random) = $parts + [2 => null];
177 177
 
178 178
 		$random = $random ?: self::random();
179 179
 
Please login to merge, or discard this patch.
lib/Storage/Base64.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 	 */
26 26
 	static public function encode($data)
27 27
 	{
28
-		return strtr(base64_encode($data), [ '+' => '-', '/' => '_' ]);
28
+		return strtr(base64_encode($data), ['+' => '-', '/' => '_']);
29 29
 	}
30 30
 
31 31
 	/**
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	static public function decode($data)
39 39
 	{
40
-		return base64_decode(strtr($data, [ '-' => '+', '_' => '/' ]));
40
+		return base64_decode(strtr($data, ['-' => '+', '_' => '/']));
41 41
 	}
42 42
 
43 43
 	/**
Please login to merge, or discard this patch.
lib/Operation/UploadOperation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,12 +93,12 @@
 block discarded – undo
93 93
 
94 94
 		if ($max_file_size && $max_file_size < $file->size)
95 95
 		{
96
-			$error_message = $errors->format("Maximum file size is :size Mb", [ ':size' => round($max_file_size / 1024) ]);
96
+			$error_message = $errors->format("Maximum file size is :size Mb", [':size' => round($max_file_size / 1024)]);
97 97
 		}
98 98
 
99 99
 		if (!$file->match($this->accept))
100 100
 		{
101
-			$error_message = $errors->format("Only the following file types are accepted: %accepted.", [ '%accepted' => implode(', ', $this->accept) ]);
101
+			$error_message = $errors->format("Only the following file types are accepted: %accepted.", ['%accepted' => implode(', ', $this->accept)]);
102 102
 		}
103 103
 
104 104
 		if ($error_message)
Please login to merge, or discard this patch.
lib/Module.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 			}
49 49
 			else
50 50
 			{
51
-				$errors->add($this->id, "Unable to create %directory directory, its parent is not writable.", [ '%directory' => $path ]);
51
+				$errors->add($this->id, "Unable to create %directory directory, its parent is not writable.", ['%directory' => $path]);
52 52
 			}
53 53
 		}
54 54
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 			}
71 71
 			else
72 72
 			{
73
-				$errors->add($this->id, "Unable to create %directory directory, its parent is not writable", [ '%directory' => $path ]);
73
+				$errors->add($this->id, "Unable to create %directory directory, its parent is not writable", ['%directory' => $path]);
74 74
 			}
75 75
 		}
76 76
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			}
93 93
 			else
94 94
 			{
95
-				$errors->add($this->id, 'Unable to create %directory directory, its parent is not writable', [ '%directory' => $path ]);
95
+				$errors->add($this->id, 'Unable to create %directory directory, its parent is not writable', ['%directory' => $path]);
96 96
 			}
97 97
 		}
98 98
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
 		if (!is_dir($path))
124 124
 		{
125
-			$errors->add($this->id, "The %directory directory is missing.", [ '%directory' => $path ]);
125
+			$errors->add($this->id, "The %directory directory is missing.", ['%directory' => $path]);
126 126
 		}
127 127
 
128 128
 		#
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
 		if (!is_dir($path))
135 135
 		{
136
-			$errors->add($this->id, "The %directory directory is missing.", [ '%directory' => $path ]);
136
+			$errors->add($this->id, "The %directory directory is missing.", ['%directory' => $path]);
137 137
 		}
138 138
 
139 139
 		return parent::is_installed($errors);
@@ -145,14 +145,14 @@  discard block
 block discarded – undo
145 145
 
146 146
 		if (!is_dir($path))
147 147
 		{
148
-			\ICanBoogie\log_error('The directory %directory does not exists', [ '%directory' => $path ]);
148
+			\ICanBoogie\log_error('The directory %directory does not exists', ['%directory' => $path]);
149 149
 
150 150
 			return;
151 151
 		}
152 152
 
153 153
 		if (!is_writable($path))
154 154
 		{
155
-			\ICanBoogie\log_error('The directory %directory is not writable', [ '%directory' => $path ]);
155
+			\ICanBoogie\log_error('The directory %directory is not writable', ['%directory' => $path]);
156 156
 
157 157
 			return;
158 158
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@  discard block
 block discarded – undo
45 45
 				mkdir($path);
46 46
 
47 47
 				file_put_contents($path . DIRECTORY_SEPARATOR . '.htaccess', 'Deny from all');
48
-			}
49
-			else
48
+			} else
50 49
 			{
51 50
 				$errors->add($this->id, "Unable to create %directory directory, its parent is not writable.", [ '%directory' => $path ]);
52 51
 			}
@@ -67,8 +66,7 @@  discard block
 block discarded – undo
67 66
 				mkdir($path);
68 67
 
69 68
 				file_put_contents($path . DIRECTORY_SEPARATOR . '.htaccess', 'Allow from all');
70
-			}
71
-			else
69
+			} else
72 70
 			{
73 71
 				$errors->add($this->id, "Unable to create %directory directory, its parent is not writable", [ '%directory' => $path ]);
74 72
 			}
@@ -89,8 +87,7 @@  discard block
 block discarded – undo
89 87
 				mkdir($path);
90 88
 
91 89
 				file_put_contents($path . DIRECTORY_SEPARATOR . '.htaccess', 'Deny from all');
92
-			}
93
-			else
90
+			} else
94 91
 			{
95 92
 				$errors->add($this->id, 'Unable to create %directory directory, its parent is not writable', [ '%directory' => $path ]);
96 93
 			}
Please login to merge, or discard this patch.