Passed
Branch master (2a1ae0)
by Aimeos
04:11
created
lib/custom/src/MW/Filesystem/FlyBase.php 1 patch
Braces   +45 added lines, -18 removed lines patch added patch discarded remove patch
@@ -124,9 +124,12 @@  discard block
 block discarded – undo
124 124
 	 */
125 125
 	public function size( $path )
126 126
 	{
127
-		try {
127
+		try
128
+		{
128 129
 			$size = $this->getProvider()->getSize( $path );
129
-		} catch( \Exception $e ) {
130
+		}
131
+		catch( \Exception $e )
132
+		{
130 133
 			throw new Exception( $e->getMessage(), 0, $e );
131 134
 		}
132 135
 
@@ -147,9 +150,12 @@  discard block
 block discarded – undo
147 150
 	 */
148 151
 	public function time( $path )
149 152
 	{
150
-		try {
153
+		try
154
+		{
151 155
 			$time = $this->getProvider()->getTimestamp( $path );
152
-		} catch( \Exception $e ) {
156
+		}
157
+		catch( \Exception $e )
158
+		{
153 159
 			throw new Exception( $e->getMessage(), 0, $e );
154 160
 		}
155 161
 
@@ -170,9 +176,12 @@  discard block
 block discarded – undo
170 176
 	 */
171 177
 	public function rm( $path )
172 178
 	{
173
-		try {
179
+		try
180
+		{
174 181
 			$this->getProvider()->delete( $path );
175
-		} catch( \Exception $e ) {
182
+		}
183
+		catch( \Exception $e )
184
+		{
176 185
 			throw new Exception( $e->getMessage(), 0, $e );
177 186
 		}
178 187
 	}
@@ -201,9 +210,12 @@  discard block
 block discarded – undo
201 210
 	 */
202 211
 	public function read( $path )
203 212
 	{
204
-		try {
213
+		try
214
+		{
205 215
 			$content = $this->getProvider()->read( $path );
206
-		} catch( \Exception $e ) {
216
+		}
217
+		catch( \Exception $e )
218
+		{
207 219
 			throw new Exception( $e->getMessage(), 0, $e );
208 220
 		}
209 221
 
@@ -256,9 +268,12 @@  discard block
 block discarded – undo
256 268
 	 */
257 269
 	public function reads( $path )
258 270
 	{
259
-		try {
271
+		try
272
+		{
260 273
 			$handle = $this->getProvider()->readStream( $path );
261
-		} catch( \Exception $e ) {
274
+		}
275
+		catch( \Exception $e )
276
+		{
262 277
 			throw new Exception( $e->getMessage(), 0, $e );
263 278
 		}
264 279
 
@@ -282,9 +297,12 @@  discard block
 block discarded – undo
282 297
 	 */
283 298
 	public function write( $path, $content )
284 299
 	{
285
-		try {
300
+		try
301
+		{
286 302
 			$result = $this->getProvider()->put( $path, $content );
287
-		} catch( \Exception $e ) {
303
+		}
304
+		catch( \Exception $e )
305
+		{
288 306
 			throw new Exception( $e->getMessage(), 0, $e );
289 307
 		}
290 308
 
@@ -330,9 +348,12 @@  discard block
 block discarded – undo
330 348
 	 */
331 349
 	public function writes( $path, $stream )
332 350
 	{
333
-		try {
351
+		try
352
+		{
334 353
 			$result = $this->getProvider()->putStream( $path, $stream );
335
-		} catch( \Exception $e ) {
354
+		}
355
+		catch( \Exception $e )
356
+		{
336 357
 			throw new Exception( $e->getMessage(), 0, $e );
337 358
 		}
338 359
 
@@ -352,9 +373,12 @@  discard block
 block discarded – undo
352 373
 	 */
353 374
 	public function move( $from, $to )
354 375
 	{
355
-		try {
376
+		try
377
+		{
356 378
 			$result = $this->getProvider()->rename( $from, $to );
357
-		} catch( \Exception $e ) {
379
+		}
380
+		catch( \Exception $e )
381
+		{
358 382
 			throw new Exception( $e->getMessage(), 0, $e );
359 383
 		}
360 384
 
@@ -374,9 +398,12 @@  discard block
 block discarded – undo
374 398
 	 */
375 399
 	public function copy( $from, $to )
376 400
 	{
377
-		try {
401
+		try
402
+		{
378 403
 			$result = $this->getProvider()->copy( $from, $to );
379
-		} catch( \Exception $e ) {
404
+		}
405
+		catch( \Exception $e )
406
+		{
380 407
 			throw new Exception( $e->getMessage(), 0, $e );
381 408
 		}
382 409
 
Please login to merge, or discard this patch.
lib/custom/tests/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
  * Set error reporting to maximum
5 5
  */
6 6
 error_reporting( -1 );
7
-ini_set('display_errors', '1');
7
+ini_set( 'display_errors', '1' );
8 8
 
9 9
 
10 10
 /*
11 11
  * Set locale settings to reasonable defaults
12 12
  */
13
-setlocale(LC_ALL, 'en_US.UTF-8');
14
-setlocale(LC_NUMERIC, 'POSIX');
15
-setlocale(LC_CTYPE, 'en_US.UTF-8');
16
-setlocale(LC_TIME, 'POSIX');
13
+setlocale( LC_ALL, 'en_US.UTF-8' );
14
+setlocale( LC_NUMERIC, 'POSIX' );
15
+setlocale( LC_CTYPE, 'en_US.UTF-8' );
16
+setlocale( LC_TIME, 'POSIX' );
17 17
 
18 18
 
19 19
 require_once 'TestHelper.php';
Please login to merge, or discard this patch.