@@ -10,11 +10,11 @@ |
||
10 | 10 | |
11 | 11 | interface Factory |
12 | 12 | { |
13 | - /** |
|
14 | - * Get a broadcaster implementation by name. |
|
15 | - * |
|
16 | - * @param string $name |
|
17 | - * @return void |
|
18 | - */ |
|
19 | - public function connection($name = null); |
|
13 | + /** |
|
14 | + * Get a broadcaster implementation by name. |
|
15 | + * |
|
16 | + * @param string $name |
|
17 | + * @return void |
|
18 | + */ |
|
19 | + public function connection($name = null); |
|
20 | 20 | } |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * @param string $name |
17 | 17 | * @return void |
18 | 18 | */ |
19 | - public function connection($name = null); |
|
19 | + public function connection( $name = null ); |
|
20 | 20 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Broadcasting; |
10 | 10 | |
11 | -interface Factory |
|
12 | -{ |
|
11 | +interface Factory { |
|
13 | 12 | /** |
14 | 13 | * Get a broadcaster implementation by name. |
15 | 14 | * |
@@ -4,30 +4,30 @@ |
||
4 | 4 | |
5 | 5 | interface Broadcaster |
6 | 6 | { |
7 | - /** |
|
8 | - * Authenticate the incoming request for a given channel. |
|
9 | - * |
|
10 | - * @param \Illuminate\Http\Request $request |
|
11 | - * @return mixed |
|
12 | - */ |
|
13 | - public function auth($request); |
|
7 | + /** |
|
8 | + * Authenticate the incoming request for a given channel. |
|
9 | + * |
|
10 | + * @param \Illuminate\Http\Request $request |
|
11 | + * @return mixed |
|
12 | + */ |
|
13 | + public function auth($request); |
|
14 | 14 | |
15 | - /** |
|
16 | - * Return the valid authentication response. |
|
17 | - * |
|
18 | - * @param \Illuminate\Http\Request $request |
|
19 | - * @param mixed $result |
|
20 | - * @return mixed |
|
21 | - */ |
|
22 | - public function validAuthenticationResponse($request, $result); |
|
15 | + /** |
|
16 | + * Return the valid authentication response. |
|
17 | + * |
|
18 | + * @param \Illuminate\Http\Request $request |
|
19 | + * @param mixed $result |
|
20 | + * @return mixed |
|
21 | + */ |
|
22 | + public function validAuthenticationResponse($request, $result); |
|
23 | 23 | |
24 | - /** |
|
25 | - * Broadcast the given event. |
|
26 | - * |
|
27 | - * @param array $channels |
|
28 | - * @param string $event |
|
29 | - * @param array $payload |
|
30 | - * @return void |
|
31 | - */ |
|
32 | - public function broadcast(array $channels, $event, array $payload = []); |
|
24 | + /** |
|
25 | + * Broadcast the given event. |
|
26 | + * |
|
27 | + * @param array $channels |
|
28 | + * @param string $event |
|
29 | + * @param array $payload |
|
30 | + * @return void |
|
31 | + */ |
|
32 | + public function broadcast(array $channels, $event, array $payload = []); |
|
33 | 33 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @param \Illuminate\Http\Request $request |
11 | 11 | * @return mixed |
12 | 12 | */ |
13 | - public function auth($request); |
|
13 | + public function auth( $request ); |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Return the valid authentication response. |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @param mixed $result |
20 | 20 | * @return mixed |
21 | 21 | */ |
22 | - public function validAuthenticationResponse($request, $result); |
|
22 | + public function validAuthenticationResponse( $request, $result ); |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Broadcast the given event. |
@@ -29,5 +29,5 @@ discard block |
||
29 | 29 | * @param array $payload |
30 | 30 | * @return void |
31 | 31 | */ |
32 | - public function broadcast(array $channels, $event, array $payload = []); |
|
32 | + public function broadcast( array $channels, $event, array $payload = [ ] ); |
|
33 | 33 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Broadcasting; |
10 | 10 | |
11 | -interface Broadcaster |
|
12 | -{ |
|
11 | +interface Broadcaster { |
|
13 | 12 | /** |
14 | 13 | * Authenticate the incoming request for a given channel. |
15 | 14 | * |
@@ -6,5 +6,5 @@ |
||
6 | 6 | |
7 | 7 | class FileNotFoundException extends Exception |
8 | 8 | { |
9 | - // |
|
9 | + // |
|
10 | 10 | } |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Exception; |
6 | 6 | |
7 | -class FileNotFoundException extends Exception |
|
8 | -{ |
|
7 | +class FileNotFoundException extends Exception { |
|
9 | 8 | // |
10 | 9 | } |
@@ -10,172 +10,172 @@ |
||
10 | 10 | |
11 | 11 | interface Filesystem |
12 | 12 | { |
13 | - /** |
|
14 | - * The public visibility setting. |
|
15 | - * |
|
16 | - * @var string |
|
17 | - */ |
|
18 | - const VISIBILITY_PUBLIC = 'public'; |
|
19 | - |
|
20 | - /** |
|
21 | - * The private visibility setting. |
|
22 | - * |
|
23 | - * @var string |
|
24 | - */ |
|
25 | - const VISIBILITY_PRIVATE = 'private'; |
|
26 | - |
|
27 | - /** |
|
28 | - * Determine if a file exists. |
|
29 | - * |
|
30 | - * @param string $path |
|
31 | - * @return bool |
|
32 | - */ |
|
33 | - public function exists($path); |
|
34 | - |
|
35 | - /** |
|
36 | - * Get the contents of a file. |
|
37 | - * |
|
38 | - * @param string $path |
|
39 | - * @return string |
|
40 | - * |
|
41 | - * @throws \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem\FileNotFoundException |
|
42 | - */ |
|
43 | - public function get($path); |
|
44 | - |
|
45 | - /** |
|
46 | - * Write the contents of a file. |
|
47 | - * |
|
48 | - * @param string $path |
|
49 | - * @param string|resource $contents |
|
50 | - * @param string $visibility |
|
51 | - * @return bool |
|
52 | - */ |
|
53 | - public function put($path, $contents, $visibility = null); |
|
54 | - |
|
55 | - /** |
|
56 | - * Get the visibility for the given path. |
|
57 | - * |
|
58 | - * @param string $path |
|
59 | - * @return string |
|
60 | - */ |
|
61 | - public function getVisibility($path); |
|
62 | - |
|
63 | - /** |
|
64 | - * Set the visibility for the given path. |
|
65 | - * |
|
66 | - * @param string $path |
|
67 | - * @param string $visibility |
|
68 | - * @return void |
|
69 | - */ |
|
70 | - public function setVisibility($path, $visibility); |
|
71 | - |
|
72 | - /** |
|
73 | - * Prepend to a file. |
|
74 | - * |
|
75 | - * @param string $path |
|
76 | - * @param string $data |
|
77 | - * @return int |
|
78 | - */ |
|
79 | - public function prepend($path, $data); |
|
80 | - |
|
81 | - /** |
|
82 | - * Append to a file. |
|
83 | - * |
|
84 | - * @param string $path |
|
85 | - * @param string $data |
|
86 | - * @return int |
|
87 | - */ |
|
88 | - public function append($path, $data); |
|
89 | - |
|
90 | - /** |
|
91 | - * Delete the file at a given path. |
|
92 | - * |
|
93 | - * @param string|array $paths |
|
94 | - * @return bool |
|
95 | - */ |
|
96 | - public function delete($paths); |
|
97 | - |
|
98 | - /** |
|
99 | - * Copy a file to a new location. |
|
100 | - * |
|
101 | - * @param string $from |
|
102 | - * @param string $to |
|
103 | - * @return bool |
|
104 | - */ |
|
105 | - public function copy($from, $to); |
|
106 | - |
|
107 | - /** |
|
108 | - * Move a file to a new location. |
|
109 | - * |
|
110 | - * @param string $from |
|
111 | - * @param string $to |
|
112 | - * @return bool |
|
113 | - */ |
|
114 | - public function move($from, $to); |
|
115 | - |
|
116 | - /** |
|
117 | - * Get the file size of a given file. |
|
118 | - * |
|
119 | - * @param string $path |
|
120 | - * @return int |
|
121 | - */ |
|
122 | - public function size($path); |
|
123 | - |
|
124 | - /** |
|
125 | - * Get the file's last modification time. |
|
126 | - * |
|
127 | - * @param string $path |
|
128 | - * @return int |
|
129 | - */ |
|
130 | - public function lastModified($path); |
|
131 | - |
|
132 | - /** |
|
133 | - * Get an array of all files in a directory. |
|
134 | - * |
|
135 | - * @param string|null $directory |
|
136 | - * @param bool $recursive |
|
137 | - * @return array |
|
138 | - */ |
|
139 | - public function files($directory = null, $recursive = false); |
|
140 | - |
|
141 | - /** |
|
142 | - * Get all of the files from the given directory (recursive). |
|
143 | - * |
|
144 | - * @param string|null $directory |
|
145 | - * @return array |
|
146 | - */ |
|
147 | - public function allFiles($directory = null); |
|
148 | - |
|
149 | - /** |
|
150 | - * Get all of the directories within a given directory. |
|
151 | - * |
|
152 | - * @param string|null $directory |
|
153 | - * @param bool $recursive |
|
154 | - * @return array |
|
155 | - */ |
|
156 | - public function directories($directory = null, $recursive = false); |
|
157 | - |
|
158 | - /** |
|
159 | - * Get all (recursive) of the directories within a given directory. |
|
160 | - * |
|
161 | - * @param string|null $directory |
|
162 | - * @return array |
|
163 | - */ |
|
164 | - public function allDirectories($directory = null); |
|
165 | - |
|
166 | - /** |
|
167 | - * Create a directory. |
|
168 | - * |
|
169 | - * @param string $path |
|
170 | - * @return bool |
|
171 | - */ |
|
172 | - public function makeDirectory($path); |
|
173 | - |
|
174 | - /** |
|
175 | - * Recursively delete a directory. |
|
176 | - * |
|
177 | - * @param string $directory |
|
178 | - * @return bool |
|
179 | - */ |
|
180 | - public function deleteDirectory($directory); |
|
13 | + /** |
|
14 | + * The public visibility setting. |
|
15 | + * |
|
16 | + * @var string |
|
17 | + */ |
|
18 | + const VISIBILITY_PUBLIC = 'public'; |
|
19 | + |
|
20 | + /** |
|
21 | + * The private visibility setting. |
|
22 | + * |
|
23 | + * @var string |
|
24 | + */ |
|
25 | + const VISIBILITY_PRIVATE = 'private'; |
|
26 | + |
|
27 | + /** |
|
28 | + * Determine if a file exists. |
|
29 | + * |
|
30 | + * @param string $path |
|
31 | + * @return bool |
|
32 | + */ |
|
33 | + public function exists($path); |
|
34 | + |
|
35 | + /** |
|
36 | + * Get the contents of a file. |
|
37 | + * |
|
38 | + * @param string $path |
|
39 | + * @return string |
|
40 | + * |
|
41 | + * @throws \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem\FileNotFoundException |
|
42 | + */ |
|
43 | + public function get($path); |
|
44 | + |
|
45 | + /** |
|
46 | + * Write the contents of a file. |
|
47 | + * |
|
48 | + * @param string $path |
|
49 | + * @param string|resource $contents |
|
50 | + * @param string $visibility |
|
51 | + * @return bool |
|
52 | + */ |
|
53 | + public function put($path, $contents, $visibility = null); |
|
54 | + |
|
55 | + /** |
|
56 | + * Get the visibility for the given path. |
|
57 | + * |
|
58 | + * @param string $path |
|
59 | + * @return string |
|
60 | + */ |
|
61 | + public function getVisibility($path); |
|
62 | + |
|
63 | + /** |
|
64 | + * Set the visibility for the given path. |
|
65 | + * |
|
66 | + * @param string $path |
|
67 | + * @param string $visibility |
|
68 | + * @return void |
|
69 | + */ |
|
70 | + public function setVisibility($path, $visibility); |
|
71 | + |
|
72 | + /** |
|
73 | + * Prepend to a file. |
|
74 | + * |
|
75 | + * @param string $path |
|
76 | + * @param string $data |
|
77 | + * @return int |
|
78 | + */ |
|
79 | + public function prepend($path, $data); |
|
80 | + |
|
81 | + /** |
|
82 | + * Append to a file. |
|
83 | + * |
|
84 | + * @param string $path |
|
85 | + * @param string $data |
|
86 | + * @return int |
|
87 | + */ |
|
88 | + public function append($path, $data); |
|
89 | + |
|
90 | + /** |
|
91 | + * Delete the file at a given path. |
|
92 | + * |
|
93 | + * @param string|array $paths |
|
94 | + * @return bool |
|
95 | + */ |
|
96 | + public function delete($paths); |
|
97 | + |
|
98 | + /** |
|
99 | + * Copy a file to a new location. |
|
100 | + * |
|
101 | + * @param string $from |
|
102 | + * @param string $to |
|
103 | + * @return bool |
|
104 | + */ |
|
105 | + public function copy($from, $to); |
|
106 | + |
|
107 | + /** |
|
108 | + * Move a file to a new location. |
|
109 | + * |
|
110 | + * @param string $from |
|
111 | + * @param string $to |
|
112 | + * @return bool |
|
113 | + */ |
|
114 | + public function move($from, $to); |
|
115 | + |
|
116 | + /** |
|
117 | + * Get the file size of a given file. |
|
118 | + * |
|
119 | + * @param string $path |
|
120 | + * @return int |
|
121 | + */ |
|
122 | + public function size($path); |
|
123 | + |
|
124 | + /** |
|
125 | + * Get the file's last modification time. |
|
126 | + * |
|
127 | + * @param string $path |
|
128 | + * @return int |
|
129 | + */ |
|
130 | + public function lastModified($path); |
|
131 | + |
|
132 | + /** |
|
133 | + * Get an array of all files in a directory. |
|
134 | + * |
|
135 | + * @param string|null $directory |
|
136 | + * @param bool $recursive |
|
137 | + * @return array |
|
138 | + */ |
|
139 | + public function files($directory = null, $recursive = false); |
|
140 | + |
|
141 | + /** |
|
142 | + * Get all of the files from the given directory (recursive). |
|
143 | + * |
|
144 | + * @param string|null $directory |
|
145 | + * @return array |
|
146 | + */ |
|
147 | + public function allFiles($directory = null); |
|
148 | + |
|
149 | + /** |
|
150 | + * Get all of the directories within a given directory. |
|
151 | + * |
|
152 | + * @param string|null $directory |
|
153 | + * @param bool $recursive |
|
154 | + * @return array |
|
155 | + */ |
|
156 | + public function directories($directory = null, $recursive = false); |
|
157 | + |
|
158 | + /** |
|
159 | + * Get all (recursive) of the directories within a given directory. |
|
160 | + * |
|
161 | + * @param string|null $directory |
|
162 | + * @return array |
|
163 | + */ |
|
164 | + public function allDirectories($directory = null); |
|
165 | + |
|
166 | + /** |
|
167 | + * Create a directory. |
|
168 | + * |
|
169 | + * @param string $path |
|
170 | + * @return bool |
|
171 | + */ |
|
172 | + public function makeDirectory($path); |
|
173 | + |
|
174 | + /** |
|
175 | + * Recursively delete a directory. |
|
176 | + * |
|
177 | + * @param string $directory |
|
178 | + * @return bool |
|
179 | + */ |
|
180 | + public function deleteDirectory($directory); |
|
181 | 181 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param string $path |
31 | 31 | * @return bool |
32 | 32 | */ |
33 | - public function exists($path); |
|
33 | + public function exists( $path ); |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Get the contents of a file. |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @throws \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem\FileNotFoundException |
42 | 42 | */ |
43 | - public function get($path); |
|
43 | + public function get( $path ); |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Write the contents of a file. |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * @param string $visibility |
51 | 51 | * @return bool |
52 | 52 | */ |
53 | - public function put($path, $contents, $visibility = null); |
|
53 | + public function put( $path, $contents, $visibility = null ); |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * Get the visibility for the given path. |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @param string $path |
59 | 59 | * @return string |
60 | 60 | */ |
61 | - public function getVisibility($path); |
|
61 | + public function getVisibility( $path ); |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Set the visibility for the given path. |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @param string $visibility |
68 | 68 | * @return void |
69 | 69 | */ |
70 | - public function setVisibility($path, $visibility); |
|
70 | + public function setVisibility( $path, $visibility ); |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Prepend to a file. |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param string $data |
77 | 77 | * @return int |
78 | 78 | */ |
79 | - public function prepend($path, $data); |
|
79 | + public function prepend( $path, $data ); |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Append to a file. |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param string $data |
86 | 86 | * @return int |
87 | 87 | */ |
88 | - public function append($path, $data); |
|
88 | + public function append( $path, $data ); |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Delete the file at a given path. |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @param string|array $paths |
94 | 94 | * @return bool |
95 | 95 | */ |
96 | - public function delete($paths); |
|
96 | + public function delete( $paths ); |
|
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Copy a file to a new location. |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param string $to |
103 | 103 | * @return bool |
104 | 104 | */ |
105 | - public function copy($from, $to); |
|
105 | + public function copy( $from, $to ); |
|
106 | 106 | |
107 | 107 | /** |
108 | 108 | * Move a file to a new location. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param string $to |
112 | 112 | * @return bool |
113 | 113 | */ |
114 | - public function move($from, $to); |
|
114 | + public function move( $from, $to ); |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * Get the file size of a given file. |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * @param string $path |
120 | 120 | * @return int |
121 | 121 | */ |
122 | - public function size($path); |
|
122 | + public function size( $path ); |
|
123 | 123 | |
124 | 124 | /** |
125 | 125 | * Get the file's last modification time. |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @param string $path |
128 | 128 | * @return int |
129 | 129 | */ |
130 | - public function lastModified($path); |
|
130 | + public function lastModified( $path ); |
|
131 | 131 | |
132 | 132 | /** |
133 | 133 | * Get an array of all files in a directory. |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * @param bool $recursive |
137 | 137 | * @return array |
138 | 138 | */ |
139 | - public function files($directory = null, $recursive = false); |
|
139 | + public function files( $directory = null, $recursive = false ); |
|
140 | 140 | |
141 | 141 | /** |
142 | 142 | * Get all of the files from the given directory (recursive). |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | * @param string|null $directory |
145 | 145 | * @return array |
146 | 146 | */ |
147 | - public function allFiles($directory = null); |
|
147 | + public function allFiles( $directory = null ); |
|
148 | 148 | |
149 | 149 | /** |
150 | 150 | * Get all of the directories within a given directory. |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * @param bool $recursive |
154 | 154 | * @return array |
155 | 155 | */ |
156 | - public function directories($directory = null, $recursive = false); |
|
156 | + public function directories( $directory = null, $recursive = false ); |
|
157 | 157 | |
158 | 158 | /** |
159 | 159 | * Get all (recursive) of the directories within a given directory. |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | * @param string|null $directory |
162 | 162 | * @return array |
163 | 163 | */ |
164 | - public function allDirectories($directory = null); |
|
164 | + public function allDirectories( $directory = null ); |
|
165 | 165 | |
166 | 166 | /** |
167 | 167 | * Create a directory. |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | * @param string $path |
170 | 170 | * @return bool |
171 | 171 | */ |
172 | - public function makeDirectory($path); |
|
172 | + public function makeDirectory( $path ); |
|
173 | 173 | |
174 | 174 | /** |
175 | 175 | * Recursively delete a directory. |
@@ -177,5 +177,5 @@ discard block |
||
177 | 177 | * @param string $directory |
178 | 178 | * @return bool |
179 | 179 | */ |
180 | - public function deleteDirectory($directory); |
|
180 | + public function deleteDirectory( $directory ); |
|
181 | 181 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem; |
10 | 10 | |
11 | -interface Filesystem |
|
12 | -{ |
|
11 | +interface Filesystem { |
|
13 | 12 | /** |
14 | 13 | * The public visibility setting. |
15 | 14 | * |
@@ -4,11 +4,11 @@ |
||
4 | 4 | |
5 | 5 | interface Cloud extends Filesystem |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the URL for the file at the given path. |
|
9 | - * |
|
10 | - * @param string $path |
|
11 | - * @return string |
|
12 | - */ |
|
13 | - public function url($path); |
|
7 | + /** |
|
8 | + * Get the URL for the file at the given path. |
|
9 | + * |
|
10 | + * @param string $path |
|
11 | + * @return string |
|
12 | + */ |
|
13 | + public function url($path); |
|
14 | 14 | } |
@@ -10,5 +10,5 @@ |
||
10 | 10 | * @param string $path |
11 | 11 | * @return string |
12 | 12 | */ |
13 | - public function url($path); |
|
13 | + public function url( $path ); |
|
14 | 14 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem; |
10 | 10 | |
11 | -interface Cloud extends Filesystem |
|
12 | -{ |
|
11 | +interface Cloud extends Filesystem { |
|
13 | 12 | /** |
14 | 13 | * Get the URL for the file at the given path. |
15 | 14 | * |
@@ -10,11 +10,11 @@ |
||
10 | 10 | |
11 | 11 | interface Factory |
12 | 12 | { |
13 | - /** |
|
14 | - * Get a filesystem implementation. |
|
15 | - * |
|
16 | - * @param string $name |
|
17 | - * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem\Filesystem |
|
18 | - */ |
|
19 | - public function disk($name = null); |
|
13 | + /** |
|
14 | + * Get a filesystem implementation. |
|
15 | + * |
|
16 | + * @param string $name |
|
17 | + * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem\Filesystem |
|
18 | + */ |
|
19 | + public function disk($name = null); |
|
20 | 20 | } |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * @param string $name |
17 | 17 | * @return \GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem\Filesystem |
18 | 18 | */ |
19 | - public function disk($name = null); |
|
19 | + public function disk( $name = null ); |
|
20 | 20 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Filesystem; |
10 | 10 | |
11 | -interface Factory |
|
12 | -{ |
|
11 | +interface Factory { |
|
13 | 12 | /** |
14 | 13 | * Get a filesystem implementation. |
15 | 14 | * |
@@ -12,112 +12,112 @@ |
||
12 | 12 | |
13 | 13 | interface Repository |
14 | 14 | { |
15 | - /** |
|
16 | - * Determine if an item exists in the cache. |
|
17 | - * |
|
18 | - * @param string $key |
|
19 | - * @return bool |
|
20 | - */ |
|
21 | - public function has($key); |
|
15 | + /** |
|
16 | + * Determine if an item exists in the cache. |
|
17 | + * |
|
18 | + * @param string $key |
|
19 | + * @return bool |
|
20 | + */ |
|
21 | + public function has($key); |
|
22 | 22 | |
23 | - /** |
|
24 | - * Retrieve an item from the cache by key. |
|
25 | - * |
|
26 | - * @param string $key |
|
27 | - * @param mixed $default |
|
28 | - * @return mixed |
|
29 | - */ |
|
30 | - public function get($key, $default = null); |
|
23 | + /** |
|
24 | + * Retrieve an item from the cache by key. |
|
25 | + * |
|
26 | + * @param string $key |
|
27 | + * @param mixed $default |
|
28 | + * @return mixed |
|
29 | + */ |
|
30 | + public function get($key, $default = null); |
|
31 | 31 | |
32 | - /** |
|
33 | - * Retrieve an item from the cache and delete it. |
|
34 | - * |
|
35 | - * @param string $key |
|
36 | - * @param mixed $default |
|
37 | - * @return mixed |
|
38 | - */ |
|
39 | - public function pull($key, $default = null); |
|
32 | + /** |
|
33 | + * Retrieve an item from the cache and delete it. |
|
34 | + * |
|
35 | + * @param string $key |
|
36 | + * @param mixed $default |
|
37 | + * @return mixed |
|
38 | + */ |
|
39 | + public function pull($key, $default = null); |
|
40 | 40 | |
41 | - /** |
|
42 | - * Store an item in the cache. |
|
43 | - * |
|
44 | - * @param string $key |
|
45 | - * @param mixed $value |
|
46 | - * @param \DateTime|float|int $minutes |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function put($key, $value, $minutes); |
|
41 | + /** |
|
42 | + * Store an item in the cache. |
|
43 | + * |
|
44 | + * @param string $key |
|
45 | + * @param mixed $value |
|
46 | + * @param \DateTime|float|int $minutes |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function put($key, $value, $minutes); |
|
50 | 50 | |
51 | - /** |
|
52 | - * Store an item in the cache if the key does not exist. |
|
53 | - * |
|
54 | - * @param string $key |
|
55 | - * @param mixed $value |
|
56 | - * @param \DateTime|float|int $minutes |
|
57 | - * @return bool |
|
58 | - */ |
|
59 | - public function add($key, $value, $minutes); |
|
51 | + /** |
|
52 | + * Store an item in the cache if the key does not exist. |
|
53 | + * |
|
54 | + * @param string $key |
|
55 | + * @param mixed $value |
|
56 | + * @param \DateTime|float|int $minutes |
|
57 | + * @return bool |
|
58 | + */ |
|
59 | + public function add($key, $value, $minutes); |
|
60 | 60 | |
61 | - /** |
|
62 | - * Increment the value of an item in the cache. |
|
63 | - * |
|
64 | - * @param string $key |
|
65 | - * @param mixed $value |
|
66 | - * @return int|bool |
|
67 | - */ |
|
68 | - public function increment($key, $value = 1); |
|
61 | + /** |
|
62 | + * Increment the value of an item in the cache. |
|
63 | + * |
|
64 | + * @param string $key |
|
65 | + * @param mixed $value |
|
66 | + * @return int|bool |
|
67 | + */ |
|
68 | + public function increment($key, $value = 1); |
|
69 | 69 | |
70 | - /** |
|
71 | - * Decrement the value of an item in the cache. |
|
72 | - * |
|
73 | - * @param string $key |
|
74 | - * @param mixed $value |
|
75 | - * @return int|bool |
|
76 | - */ |
|
77 | - public function decrement($key, $value = 1); |
|
70 | + /** |
|
71 | + * Decrement the value of an item in the cache. |
|
72 | + * |
|
73 | + * @param string $key |
|
74 | + * @param mixed $value |
|
75 | + * @return int|bool |
|
76 | + */ |
|
77 | + public function decrement($key, $value = 1); |
|
78 | 78 | |
79 | - /** |
|
80 | - * Store an item in the cache indefinitely. |
|
81 | - * |
|
82 | - * @param string $key |
|
83 | - * @param mixed $value |
|
84 | - * @return void |
|
85 | - */ |
|
86 | - public function forever($key, $value); |
|
79 | + /** |
|
80 | + * Store an item in the cache indefinitely. |
|
81 | + * |
|
82 | + * @param string $key |
|
83 | + * @param mixed $value |
|
84 | + * @return void |
|
85 | + */ |
|
86 | + public function forever($key, $value); |
|
87 | 87 | |
88 | - /** |
|
89 | - * Get an item from the cache, or store the default value. |
|
90 | - * |
|
91 | - * @param string $key |
|
92 | - * @param \DateTime|float|int $minutes |
|
93 | - * @param \Closure $callback |
|
94 | - * @return mixed |
|
95 | - */ |
|
96 | - public function remember($key, $minutes, Closure $callback); |
|
88 | + /** |
|
89 | + * Get an item from the cache, or store the default value. |
|
90 | + * |
|
91 | + * @param string $key |
|
92 | + * @param \DateTime|float|int $minutes |
|
93 | + * @param \Closure $callback |
|
94 | + * @return mixed |
|
95 | + */ |
|
96 | + public function remember($key, $minutes, Closure $callback); |
|
97 | 97 | |
98 | - /** |
|
99 | - * Get an item from the cache, or store the default value forever. |
|
100 | - * |
|
101 | - * @param string $key |
|
102 | - * @param \Closure $callback |
|
103 | - * @return mixed |
|
104 | - */ |
|
105 | - public function sear($key, Closure $callback); |
|
98 | + /** |
|
99 | + * Get an item from the cache, or store the default value forever. |
|
100 | + * |
|
101 | + * @param string $key |
|
102 | + * @param \Closure $callback |
|
103 | + * @return mixed |
|
104 | + */ |
|
105 | + public function sear($key, Closure $callback); |
|
106 | 106 | |
107 | - /** |
|
108 | - * Get an item from the cache, or store the default value forever. |
|
109 | - * |
|
110 | - * @param string $key |
|
111 | - * @param \Closure $callback |
|
112 | - * @return mixed |
|
113 | - */ |
|
114 | - public function rememberForever($key, Closure $callback); |
|
107 | + /** |
|
108 | + * Get an item from the cache, or store the default value forever. |
|
109 | + * |
|
110 | + * @param string $key |
|
111 | + * @param \Closure $callback |
|
112 | + * @return mixed |
|
113 | + */ |
|
114 | + public function rememberForever($key, Closure $callback); |
|
115 | 115 | |
116 | - /** |
|
117 | - * Remove an item from the cache. |
|
118 | - * |
|
119 | - * @param string $key |
|
120 | - * @return bool |
|
121 | - */ |
|
122 | - public function forget($key); |
|
116 | + /** |
|
117 | + * Remove an item from the cache. |
|
118 | + * |
|
119 | + * @param string $key |
|
120 | + * @return bool |
|
121 | + */ |
|
122 | + public function forget($key); |
|
123 | 123 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @param string $key |
19 | 19 | * @return bool |
20 | 20 | */ |
21 | - public function has($key); |
|
21 | + public function has( $key ); |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Retrieve an item from the cache by key. |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @param mixed $default |
28 | 28 | * @return mixed |
29 | 29 | */ |
30 | - public function get($key, $default = null); |
|
30 | + public function get( $key, $default = null ); |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Retrieve an item from the cache and delete it. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param mixed $default |
37 | 37 | * @return mixed |
38 | 38 | */ |
39 | - public function pull($key, $default = null); |
|
39 | + public function pull( $key, $default = null ); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Store an item in the cache. |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param \DateTime|float|int $minutes |
47 | 47 | * @return void |
48 | 48 | */ |
49 | - public function put($key, $value, $minutes); |
|
49 | + public function put( $key, $value, $minutes ); |
|
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Store an item in the cache if the key does not exist. |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * @param \DateTime|float|int $minutes |
57 | 57 | * @return bool |
58 | 58 | */ |
59 | - public function add($key, $value, $minutes); |
|
59 | + public function add( $key, $value, $minutes ); |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * Increment the value of an item in the cache. |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param mixed $value |
66 | 66 | * @return int|bool |
67 | 67 | */ |
68 | - public function increment($key, $value = 1); |
|
68 | + public function increment( $key, $value = 1 ); |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Decrement the value of an item in the cache. |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * @param mixed $value |
75 | 75 | * @return int|bool |
76 | 76 | */ |
77 | - public function decrement($key, $value = 1); |
|
77 | + public function decrement( $key, $value = 1 ); |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Store an item in the cache indefinitely. |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param mixed $value |
84 | 84 | * @return void |
85 | 85 | */ |
86 | - public function forever($key, $value); |
|
86 | + public function forever( $key, $value ); |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Get an item from the cache, or store the default value. |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @param \Closure $callback |
94 | 94 | * @return mixed |
95 | 95 | */ |
96 | - public function remember($key, $minutes, Closure $callback); |
|
96 | + public function remember( $key, $minutes, Closure $callback ); |
|
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Get an item from the cache, or store the default value forever. |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param \Closure $callback |
103 | 103 | * @return mixed |
104 | 104 | */ |
105 | - public function sear($key, Closure $callback); |
|
105 | + public function sear( $key, Closure $callback ); |
|
106 | 106 | |
107 | 107 | /** |
108 | 108 | * Get an item from the cache, or store the default value forever. |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param \Closure $callback |
112 | 112 | * @return mixed |
113 | 113 | */ |
114 | - public function rememberForever($key, Closure $callback); |
|
114 | + public function rememberForever( $key, Closure $callback ); |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * Remove an item from the cache. |
@@ -119,5 +119,5 @@ discard block |
||
119 | 119 | * @param string $key |
120 | 120 | * @return bool |
121 | 121 | */ |
122 | - public function forget($key); |
|
122 | + public function forget( $key ); |
|
123 | 123 | } |
@@ -10,8 +10,7 @@ |
||
10 | 10 | |
11 | 11 | use Closure; |
12 | 12 | |
13 | -interface Repository |
|
14 | -{ |
|
13 | +interface Repository { |
|
15 | 14 | /** |
16 | 15 | * Determine if an item exists in the cache. |
17 | 16 | * |
@@ -10,89 +10,89 @@ |
||
10 | 10 | |
11 | 11 | interface Store |
12 | 12 | { |
13 | - /** |
|
14 | - * Retrieve an item from the cache by key. |
|
15 | - * |
|
16 | - * @param string|array $key |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function get($key); |
|
13 | + /** |
|
14 | + * Retrieve an item from the cache by key. |
|
15 | + * |
|
16 | + * @param string|array $key |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function get($key); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Retrieve multiple items from the cache by key. |
|
23 | - * |
|
24 | - * Items not found in the cache will have a null value. |
|
25 | - * |
|
26 | - * @param array $keys |
|
27 | - * @return array |
|
28 | - */ |
|
29 | - public function many(array $keys); |
|
21 | + /** |
|
22 | + * Retrieve multiple items from the cache by key. |
|
23 | + * |
|
24 | + * Items not found in the cache will have a null value. |
|
25 | + * |
|
26 | + * @param array $keys |
|
27 | + * @return array |
|
28 | + */ |
|
29 | + public function many(array $keys); |
|
30 | 30 | |
31 | - /** |
|
32 | - * Store an item in the cache for a given number of minutes. |
|
33 | - * |
|
34 | - * @param string $key |
|
35 | - * @param mixed $value |
|
36 | - * @param float|int $minutes |
|
37 | - * @return void |
|
38 | - */ |
|
39 | - public function put($key, $value, $minutes); |
|
31 | + /** |
|
32 | + * Store an item in the cache for a given number of minutes. |
|
33 | + * |
|
34 | + * @param string $key |
|
35 | + * @param mixed $value |
|
36 | + * @param float|int $minutes |
|
37 | + * @return void |
|
38 | + */ |
|
39 | + public function put($key, $value, $minutes); |
|
40 | 40 | |
41 | - /** |
|
42 | - * Store multiple items in the cache for a given number of minutes. |
|
43 | - * |
|
44 | - * @param array $values |
|
45 | - * @param float|int $minutes |
|
46 | - * @return void |
|
47 | - */ |
|
48 | - public function putMany(array $values, $minutes); |
|
41 | + /** |
|
42 | + * Store multiple items in the cache for a given number of minutes. |
|
43 | + * |
|
44 | + * @param array $values |
|
45 | + * @param float|int $minutes |
|
46 | + * @return void |
|
47 | + */ |
|
48 | + public function putMany(array $values, $minutes); |
|
49 | 49 | |
50 | - /** |
|
51 | - * Increment the value of an item in the cache. |
|
52 | - * |
|
53 | - * @param string $key |
|
54 | - * @param mixed $value |
|
55 | - * @return int|bool |
|
56 | - */ |
|
57 | - public function increment($key, $value = 1); |
|
50 | + /** |
|
51 | + * Increment the value of an item in the cache. |
|
52 | + * |
|
53 | + * @param string $key |
|
54 | + * @param mixed $value |
|
55 | + * @return int|bool |
|
56 | + */ |
|
57 | + public function increment($key, $value = 1); |
|
58 | 58 | |
59 | - /** |
|
60 | - * Decrement the value of an item in the cache. |
|
61 | - * |
|
62 | - * @param string $key |
|
63 | - * @param mixed $value |
|
64 | - * @return int|bool |
|
65 | - */ |
|
66 | - public function decrement($key, $value = 1); |
|
59 | + /** |
|
60 | + * Decrement the value of an item in the cache. |
|
61 | + * |
|
62 | + * @param string $key |
|
63 | + * @param mixed $value |
|
64 | + * @return int|bool |
|
65 | + */ |
|
66 | + public function decrement($key, $value = 1); |
|
67 | 67 | |
68 | - /** |
|
69 | - * Store an item in the cache indefinitely. |
|
70 | - * |
|
71 | - * @param string $key |
|
72 | - * @param mixed $value |
|
73 | - * @return void |
|
74 | - */ |
|
75 | - public function forever($key, $value); |
|
68 | + /** |
|
69 | + * Store an item in the cache indefinitely. |
|
70 | + * |
|
71 | + * @param string $key |
|
72 | + * @param mixed $value |
|
73 | + * @return void |
|
74 | + */ |
|
75 | + public function forever($key, $value); |
|
76 | 76 | |
77 | - /** |
|
78 | - * Remove an item from the cache. |
|
79 | - * |
|
80 | - * @param string $key |
|
81 | - * @return bool |
|
82 | - */ |
|
83 | - public function forget($key); |
|
77 | + /** |
|
78 | + * Remove an item from the cache. |
|
79 | + * |
|
80 | + * @param string $key |
|
81 | + * @return bool |
|
82 | + */ |
|
83 | + public function forget($key); |
|
84 | 84 | |
85 | - /** |
|
86 | - * Remove all items from the cache. |
|
87 | - * |
|
88 | - * @return bool |
|
89 | - */ |
|
90 | - public function flush(); |
|
85 | + /** |
|
86 | + * Remove all items from the cache. |
|
87 | + * |
|
88 | + * @return bool |
|
89 | + */ |
|
90 | + public function flush(); |
|
91 | 91 | |
92 | - /** |
|
93 | - * Get the cache key prefix. |
|
94 | - * |
|
95 | - * @return string |
|
96 | - */ |
|
97 | - public function getPrefix(); |
|
92 | + /** |
|
93 | + * Get the cache key prefix. |
|
94 | + * |
|
95 | + * @return string |
|
96 | + */ |
|
97 | + public function getPrefix(); |
|
98 | 98 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * @param string|array $key |
17 | 17 | * @return mixed |
18 | 18 | */ |
19 | - public function get($key); |
|
19 | + public function get( $key ); |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Retrieve multiple items from the cache by key. |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param array $keys |
27 | 27 | * @return array |
28 | 28 | */ |
29 | - public function many(array $keys); |
|
29 | + public function many( array $keys ); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Store an item in the cache for a given number of minutes. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param float|int $minutes |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - public function put($key, $value, $minutes); |
|
39 | + public function put( $key, $value, $minutes ); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Store multiple items in the cache for a given number of minutes. |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * @param float|int $minutes |
46 | 46 | * @return void |
47 | 47 | */ |
48 | - public function putMany(array $values, $minutes); |
|
48 | + public function putMany( array $values, $minutes ); |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Increment the value of an item in the cache. |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * @param mixed $value |
55 | 55 | * @return int|bool |
56 | 56 | */ |
57 | - public function increment($key, $value = 1); |
|
57 | + public function increment( $key, $value = 1 ); |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Decrement the value of an item in the cache. |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * @param mixed $value |
64 | 64 | * @return int|bool |
65 | 65 | */ |
66 | - public function decrement($key, $value = 1); |
|
66 | + public function decrement( $key, $value = 1 ); |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Store an item in the cache indefinitely. |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param mixed $value |
73 | 73 | * @return void |
74 | 74 | */ |
75 | - public function forever($key, $value); |
|
75 | + public function forever( $key, $value ); |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Remove an item from the cache. |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * @param string $key |
81 | 81 | * @return bool |
82 | 82 | */ |
83 | - public function forget($key); |
|
83 | + public function forget( $key ); |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Remove all items from the cache. |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Cache; |
10 | 10 | |
11 | -interface Store |
|
12 | -{ |
|
11 | +interface Store { |
|
13 | 12 | /** |
14 | 13 | * Retrieve an item from the cache by key. |
15 | 14 | * |
@@ -10,11 +10,11 @@ |
||
10 | 10 | |
11 | 11 | interface Factory |
12 | 12 | { |
13 | - /** |
|
14 | - * Get a cache store instance by name. |
|
15 | - * |
|
16 | - * @param string|null $name |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function store($name = null); |
|
13 | + /** |
|
14 | + * Get a cache store instance by name. |
|
15 | + * |
|
16 | + * @param string|null $name |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function store($name = null); |
|
20 | 20 | } |
@@ -16,5 +16,5 @@ |
||
16 | 16 | * @param string|null $name |
17 | 17 | * @return mixed |
18 | 18 | */ |
19 | - public function store($name = null); |
|
19 | + public function store( $name = null ); |
|
20 | 20 | } |
@@ -8,8 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace GravityKit\GravityView\Foundation\ThirdParty\Illuminate\Contracts\Cache; |
10 | 10 | |
11 | -interface Factory |
|
12 | -{ |
|
11 | +interface Factory { |
|
13 | 12 | /** |
14 | 13 | * Get a cache store instance by name. |
15 | 14 | * |