also looking at this
Apply fixes from StyleCI
#116
14 files
+143
-256
formatting only · 8 hidden lines
| @@ -14,7 +14,7 @@ class Storage formatting only | ||
| 14 | 14 | /** |
| 15 | 15 | * Construct storage model. |
| 16 | 16 | * |
| 17 | * @param Meema\MeemaClient\Client $client | |
| 17 | * @param Meema\MeemaClient\Client $client | |
| 18 | 18 | */ |
| 19 | 19 | public function __construct(Client $client) |
| 20 | 20 | { |
| @@ -24,8 +24,7 @@ class Storage | ||
| 24 | 24 | /** |
| 25 | 25 | * Upload a media file. |
| 26 | 26 | * |
| 27 | * @param string $path | |
| 28 | * | |
| 27 | * @param string $path | |
| 29 | 28 | * @return array |
| 30 | 29 | */ |
| 31 | 30 | public function upload($path, $contents = null, $config = []) |
| @@ -36,9 +35,8 @@ class Storage | ||
| 36 | 35 | /** |
| 37 | 36 | * Set the visibility for a file. |
| 38 | 37 | * |
| 39 | * @param string $path | |
| 40 | * @param string $visibility | |
| 41 | * | |
| 38 | * @param string $path | |
| 39 | * @param string $visibility | |
| 42 | 40 | * @return array|false file meta data |
| 43 | 41 | */ |
| 44 | 42 | public function setVisibility($path, $visibility) |
| @@ -49,8 +47,7 @@ class Storage | ||
| 49 | 47 | /** |
| 50 | 48 | * Check whether a file exists. |
| 51 | 49 | * |
| 52 | * @param string $path | |
| 53 | * | |
| 50 | * @param string $path | |
| 54 | 51 | * @return bool |
| 55 | 52 | */ |
| 56 | 53 | public function has($path) |
| @@ -63,8 +60,7 @@ class Storage | ||
| 63 | 60 | /** |
| 64 | 61 | * Get all the meta data of a file or directory. |
| 65 | 62 | * |
| 66 | * @param string $path | |
| 67 | * | |
| 63 | * @param string $path | |
| 68 | 64 | * @return false|array |
| 69 | 65 | */ |
| 70 | 66 | public function getMetadata($path) |
| @@ -75,8 +71,7 @@ class Storage | ||
| 75 | 71 | /** |
| 76 | 72 | * Destroy the file in storage. |
| 77 | 73 | * |
| 78 | * @param string $path | |
| 79 | * | |
| 74 | * @param string $path | |
| 80 | 75 | * @return array |
| 81 | 76 | */ |
| 82 | 77 | public function delete($path) |
| @@ -87,8 +82,7 @@ class Storage | ||
| 87 | 82 | /** |
| 88 | 83 | * Copy the file in storage. |
| 89 | 84 | * |
| 90 | * @param string $path | |
| 91 | * | |
| 85 | * @param string $path | |
| 92 | 86 | * @return array |
| 93 | 87 | */ |
| 94 | 88 | public function copy($path, $newpath) |
| @@ -99,8 +93,7 @@ class Storage | ||
| 99 | 93 | /** |
| 100 | 94 | * Read a file in storage. |
| 101 | 95 | * |
| 102 | * @param string $path | |
| 103 | * | |
| 96 | * @param string $path | |
| 104 | 97 | * @return array |
| 105 | 98 | */ |
| 106 | 99 | public function read($path) |
| @@ -111,8 +104,7 @@ class Storage | ||
| 111 | 104 | /** |
| 112 | 105 | * Read the stream of a file in storage. |
| 113 | 106 | * |
| 114 | * @param string $path | |
| 115 | * | |
| 107 | * @param string $path | |
| 116 | 108 | * @return array |
| 117 | 109 | */ |
| 118 | 110 | public function readStream($path) |
| @@ -123,8 +115,7 @@ class Storage | ||
| 123 | 115 | /** |
| 124 | 116 | * List contents of directory. |
| 125 | 117 | * |
| 126 | * @param string $path | |
| 127 | * | |
| 118 | * @param string $path | |
| 128 | 119 | * @return array |
| 129 | 120 | */ |
| 130 | 121 | public function listContents($directory, $recursive = false) |
| @@ -135,8 +126,7 @@ class Storage | ||
| 135 | 126 | /** |
| 136 | 127 | * Rename the file in storage. |
| 137 | 128 | * |
| 138 | * @param string $path | |
| 139 | * | |
| 129 | * @param string $path | |
| 140 | 130 | * @return array |
| 141 | 131 | */ |
| 142 | 132 | public function rename($path, $newpath) |
| @@ -147,8 +137,7 @@ class Storage | ||
| 147 | 137 | /** |
| 148 | 138 | * Destroy the directory in storage. |
| 149 | 139 | * |
| 150 | * @param string $directory | |
| 151 | * | |
| 140 | * @param string $directory | |
| 152 | 141 | * @return array |
| 153 | 142 | */ |
| 154 | 143 | public function deleteDirectory($directory) |
| @@ -159,8 +148,7 @@ class Storage | ||
| 159 | 148 | /** |
| 160 | 149 | * Create a directory in storage. |
| 161 | 150 | * |
| 162 | * @param string $directory | |
| 163 | * | |
| 151 | * @param string $directory | |
| 164 | 152 | * @return array |
| 165 | 153 | */ |
| 166 | 154 | public function makeDirectory($directory) |