@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | try{ |
35 | 35 | $storage = new StorageClient($config); |
36 | 36 | $this->bucket = $storage->bucket($bucket, $userProject); |
37 | - }catch (\Exception $e){ |
|
37 | + } catch (\Exception $e){ |
|
38 | 38 | throw new InvalidArgumentException(sprintf("Invalid inputs:\n %s", $e->getMessage()), $e->getCode(), $e); |
39 | 39 | } |
40 | 40 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $this->bucket->upload(fopen($path, 'r'), $options); |
54 | 54 | } |
55 | 55 | } |
56 | - }catch (\Exception $e){ |
|
56 | + } catch (\Exception $e){ |
|
57 | 57 | throw new RuntimeException(sprintf("There wan an error during uploading files:\n %s", $e->getMessage()), $e->getCode(), $e); |
58 | 58 | } |
59 | 59 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | try{ |
69 | 69 | return $this->bucket->object($name) |
70 | 70 | ->downloadToFile($save_to); |
71 | - }catch (\Exception $e){ |
|
71 | + } catch (\Exception $e){ |
|
72 | 72 | throw new RuntimeException(sprintf("There wan an error during fetch the file:\n %s", $e->getMessage()), $e->getCode(), $e); |
73 | 73 | } |
74 | 74 | } |