@@ -4,20 +4,20 @@ |
||
4 | 4 | |
5 | 5 | interface BindingRegistrar |
6 | 6 | { |
7 | - /** |
|
8 | - * Add a new route parameter binder. |
|
9 | - * |
|
10 | - * @param string $key |
|
11 | - * @param string|callable $binder |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function bind($key, $binder); |
|
7 | + /** |
|
8 | + * Add a new route parameter binder. |
|
9 | + * |
|
10 | + * @param string $key |
|
11 | + * @param string|callable $binder |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function bind($key, $binder); |
|
15 | 15 | |
16 | - /** |
|
17 | - * Get the binding callback for a given binding. |
|
18 | - * |
|
19 | - * @param string $key |
|
20 | - * @return \Closure |
|
21 | - */ |
|
22 | - public function getBindingCallback($key); |
|
16 | + /** |
|
17 | + * Get the binding callback for a given binding. |
|
18 | + * |
|
19 | + * @param string $key |
|
20 | + * @return \Closure |
|
21 | + */ |
|
22 | + public function getBindingCallback($key); |
|
23 | 23 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @param string|callable $binder |
12 | 12 | * @return void |
13 | 13 | */ |
14 | - public function bind($key, $binder); |
|
14 | + public function bind( $key, $binder ); |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Get the binding callback for a given binding. |
@@ -19,5 +19,5 @@ discard block |
||
19 | 19 | * @param string $key |
20 | 20 | * @return \Closure |
21 | 21 | */ |
22 | - public function getBindingCallback($key); |
|
22 | + public function getBindingCallback( $key ); |
|
23 | 23 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Routing; |
4 | 4 | |
5 | -interface BindingRegistrar |
|
6 | -{ |
|
5 | +interface BindingRegistrar { |
|
7 | 6 | /** |
8 | 7 | * Add a new route parameter binder. |
9 | 8 | * |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Routing; |
4 | 4 | |
5 | -interface Registrar |
|
6 | -{ |
|
5 | +interface Registrar { |
|
7 | 6 | /** |
8 | 7 | * Register a new GET route with the router. |
9 | 8 | * |
@@ -10,102 +10,102 @@ |
||
10 | 10 | |
11 | 11 | interface Registrar |
12 | 12 | { |
13 | - /** |
|
14 | - * Register a new GET route with the router. |
|
15 | - * |
|
16 | - * @param string $uri |
|
17 | - * @param \Closure|array|string $action |
|
18 | - * @return \Illuminate\Routing\Route |
|
19 | - */ |
|
20 | - public function get($uri, $action); |
|
13 | + /** |
|
14 | + * Register a new GET route with the router. |
|
15 | + * |
|
16 | + * @param string $uri |
|
17 | + * @param \Closure|array|string $action |
|
18 | + * @return \Illuminate\Routing\Route |
|
19 | + */ |
|
20 | + public function get($uri, $action); |
|
21 | 21 | |
22 | - /** |
|
23 | - * Register a new POST route with the router. |
|
24 | - * |
|
25 | - * @param string $uri |
|
26 | - * @param \Closure|array|string $action |
|
27 | - * @return \Illuminate\Routing\Route |
|
28 | - */ |
|
29 | - public function post($uri, $action); |
|
22 | + /** |
|
23 | + * Register a new POST route with the router. |
|
24 | + * |
|
25 | + * @param string $uri |
|
26 | + * @param \Closure|array|string $action |
|
27 | + * @return \Illuminate\Routing\Route |
|
28 | + */ |
|
29 | + public function post($uri, $action); |
|
30 | 30 | |
31 | - /** |
|
32 | - * Register a new PUT route with the router. |
|
33 | - * |
|
34 | - * @param string $uri |
|
35 | - * @param \Closure|array|string $action |
|
36 | - * @return \Illuminate\Routing\Route |
|
37 | - */ |
|
38 | - public function put($uri, $action); |
|
31 | + /** |
|
32 | + * Register a new PUT route with the router. |
|
33 | + * |
|
34 | + * @param string $uri |
|
35 | + * @param \Closure|array|string $action |
|
36 | + * @return \Illuminate\Routing\Route |
|
37 | + */ |
|
38 | + public function put($uri, $action); |
|
39 | 39 | |
40 | - /** |
|
41 | - * Register a new DELETE route with the router. |
|
42 | - * |
|
43 | - * @param string $uri |
|
44 | - * @param \Closure|array|string $action |
|
45 | - * @return \Illuminate\Routing\Route |
|
46 | - */ |
|
47 | - public function delete($uri, $action); |
|
40 | + /** |
|
41 | + * Register a new DELETE route with the router. |
|
42 | + * |
|
43 | + * @param string $uri |
|
44 | + * @param \Closure|array|string $action |
|
45 | + * @return \Illuminate\Routing\Route |
|
46 | + */ |
|
47 | + public function delete($uri, $action); |
|
48 | 48 | |
49 | - /** |
|
50 | - * Register a new PATCH route with the router. |
|
51 | - * |
|
52 | - * @param string $uri |
|
53 | - * @param \Closure|array|string $action |
|
54 | - * @return \Illuminate\Routing\Route |
|
55 | - */ |
|
56 | - public function patch($uri, $action); |
|
49 | + /** |
|
50 | + * Register a new PATCH route with the router. |
|
51 | + * |
|
52 | + * @param string $uri |
|
53 | + * @param \Closure|array|string $action |
|
54 | + * @return \Illuminate\Routing\Route |
|
55 | + */ |
|
56 | + public function patch($uri, $action); |
|
57 | 57 | |
58 | - /** |
|
59 | - * Register a new OPTIONS route with the router. |
|
60 | - * |
|
61 | - * @param string $uri |
|
62 | - * @param \Closure|array|string $action |
|
63 | - * @return \Illuminate\Routing\Route |
|
64 | - */ |
|
65 | - public function options($uri, $action); |
|
58 | + /** |
|
59 | + * Register a new OPTIONS route with the router. |
|
60 | + * |
|
61 | + * @param string $uri |
|
62 | + * @param \Closure|array|string $action |
|
63 | + * @return \Illuminate\Routing\Route |
|
64 | + */ |
|
65 | + public function options($uri, $action); |
|
66 | 66 | |
67 | - /** |
|
68 | - * Register a new route with the given verbs. |
|
69 | - * |
|
70 | - * @param array|string $methods |
|
71 | - * @param string $uri |
|
72 | - * @param \Closure|array|string $action |
|
73 | - * @return \Illuminate\Routing\Route |
|
74 | - */ |
|
75 | - public function match($methods, $uri, $action); |
|
67 | + /** |
|
68 | + * Register a new route with the given verbs. |
|
69 | + * |
|
70 | + * @param array|string $methods |
|
71 | + * @param string $uri |
|
72 | + * @param \Closure|array|string $action |
|
73 | + * @return \Illuminate\Routing\Route |
|
74 | + */ |
|
75 | + public function match($methods, $uri, $action); |
|
76 | 76 | |
77 | - /** |
|
78 | - * Route a resource to a controller. |
|
79 | - * |
|
80 | - * @param string $name |
|
81 | - * @param string $controller |
|
82 | - * @param array $options |
|
83 | - * @return void |
|
84 | - */ |
|
85 | - public function resource($name, $controller, array $options = []); |
|
77 | + /** |
|
78 | + * Route a resource to a controller. |
|
79 | + * |
|
80 | + * @param string $name |
|
81 | + * @param string $controller |
|
82 | + * @param array $options |
|
83 | + * @return void |
|
84 | + */ |
|
85 | + public function resource($name, $controller, array $options = []); |
|
86 | 86 | |
87 | - /** |
|
88 | - * Create a route group with shared attributes. |
|
89 | - * |
|
90 | - * @param array $attributes |
|
91 | - * @param \Closure|string $routes |
|
92 | - * @return void |
|
93 | - */ |
|
94 | - public function group(array $attributes, $routes); |
|
87 | + /** |
|
88 | + * Create a route group with shared attributes. |
|
89 | + * |
|
90 | + * @param array $attributes |
|
91 | + * @param \Closure|string $routes |
|
92 | + * @return void |
|
93 | + */ |
|
94 | + public function group(array $attributes, $routes); |
|
95 | 95 | |
96 | - /** |
|
97 | - * Substitute the route bindings onto the route. |
|
98 | - * |
|
99 | - * @param \Illuminate\Routing\Route $route |
|
100 | - * @return \Illuminate\Routing\Route |
|
101 | - */ |
|
102 | - public function substituteBindings($route); |
|
96 | + /** |
|
97 | + * Substitute the route bindings onto the route. |
|
98 | + * |
|
99 | + * @param \Illuminate\Routing\Route $route |
|
100 | + * @return \Illuminate\Routing\Route |
|
101 | + */ |
|
102 | + public function substituteBindings($route); |
|
103 | 103 | |
104 | - /** |
|
105 | - * Substitute the implicit Eloquent model bindings for the route. |
|
106 | - * |
|
107 | - * @param \Illuminate\Routing\Route $route |
|
108 | - * @return void |
|
109 | - */ |
|
110 | - public function substituteImplicitBindings($route); |
|
104 | + /** |
|
105 | + * Substitute the implicit Eloquent model bindings for the route. |
|
106 | + * |
|
107 | + * @param \Illuminate\Routing\Route $route |
|
108 | + * @return void |
|
109 | + */ |
|
110 | + public function substituteImplicitBindings($route); |
|
111 | 111 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param \Closure|array|string $action |
18 | 18 | * @return \Illuminate\Routing\Route |
19 | 19 | */ |
20 | - public function get($uri, $action); |
|
20 | + public function get( $uri, $action ); |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Register a new POST route with the router. |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param \Closure|array|string $action |
27 | 27 | * @return \Illuminate\Routing\Route |
28 | 28 | */ |
29 | - public function post($uri, $action); |
|
29 | + public function post( $uri, $action ); |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * Register a new PUT route with the router. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * @param \Closure|array|string $action |
36 | 36 | * @return \Illuminate\Routing\Route |
37 | 37 | */ |
38 | - public function put($uri, $action); |
|
38 | + public function put( $uri, $action ); |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Register a new DELETE route with the router. |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @param \Closure|array|string $action |
45 | 45 | * @return \Illuminate\Routing\Route |
46 | 46 | */ |
47 | - public function delete($uri, $action); |
|
47 | + public function delete( $uri, $action ); |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Register a new PATCH route with the router. |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param \Closure|array|string $action |
54 | 54 | * @return \Illuminate\Routing\Route |
55 | 55 | */ |
56 | - public function patch($uri, $action); |
|
56 | + public function patch( $uri, $action ); |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Register a new OPTIONS route with the router. |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param \Closure|array|string $action |
63 | 63 | * @return \Illuminate\Routing\Route |
64 | 64 | */ |
65 | - public function options($uri, $action); |
|
65 | + public function options( $uri, $action ); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Register a new route with the given verbs. |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @param \Closure|array|string $action |
73 | 73 | * @return \Illuminate\Routing\Route |
74 | 74 | */ |
75 | - public function match($methods, $uri, $action); |
|
75 | + public function match( $methods, $uri, $action ); |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Route a resource to a controller. |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @param array $options |
83 | 83 | * @return void |
84 | 84 | */ |
85 | - public function resource($name, $controller, array $options = []); |
|
85 | + public function resource( $name, $controller, array $options = [ ] ); |
|
86 | 86 | |
87 | 87 | /** |
88 | 88 | * Create a route group with shared attributes. |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param \Closure|string $routes |
92 | 92 | * @return void |
93 | 93 | */ |
94 | - public function group(array $attributes, $routes); |
|
94 | + public function group( array $attributes, $routes ); |
|
95 | 95 | |
96 | 96 | /** |
97 | 97 | * Substitute the route bindings onto the route. |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param \Illuminate\Routing\Route $route |
100 | 100 | * @return \Illuminate\Routing\Route |
101 | 101 | */ |
102 | - public function substituteBindings($route); |
|
102 | + public function substituteBindings( $route ); |
|
103 | 103 | |
104 | 104 | /** |
105 | 105 | * Substitute the implicit Eloquent model bindings for the route. |
@@ -107,5 +107,5 @@ discard block |
||
107 | 107 | * @param \Illuminate\Routing\Route $route |
108 | 108 | * @return void |
109 | 109 | */ |
110 | - public function substituteImplicitBindings($route); |
|
110 | + public function substituteImplicitBindings( $route ); |
|
111 | 111 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Session; |
4 | 4 | |
5 | -interface Session |
|
6 | -{ |
|
5 | +interface Session { |
|
7 | 6 | /** |
8 | 7 | * Get the name of the session. |
9 | 8 | * |
@@ -10,162 +10,162 @@ |
||
10 | 10 | |
11 | 11 | interface Session |
12 | 12 | { |
13 | - /** |
|
14 | - * Get the name of the session. |
|
15 | - * |
|
16 | - * @return string |
|
17 | - */ |
|
18 | - public function getName(); |
|
19 | - |
|
20 | - /** |
|
21 | - * Get the current session ID. |
|
22 | - * |
|
23 | - * @return string |
|
24 | - */ |
|
25 | - public function getId(); |
|
26 | - |
|
27 | - /** |
|
28 | - * Set the session ID. |
|
29 | - * |
|
30 | - * @param string $id |
|
31 | - * @return void |
|
32 | - */ |
|
33 | - public function setId($id); |
|
34 | - |
|
35 | - /** |
|
36 | - * Start the session, reading the data from a handler. |
|
37 | - * |
|
38 | - * @return bool |
|
39 | - */ |
|
40 | - public function start(); |
|
41 | - |
|
42 | - /** |
|
43 | - * Save the session data to storage. |
|
44 | - * |
|
45 | - * @return bool |
|
46 | - */ |
|
47 | - public function save(); |
|
48 | - |
|
49 | - /** |
|
50 | - * Get all of the session data. |
|
51 | - * |
|
52 | - * @return array |
|
53 | - */ |
|
54 | - public function all(); |
|
55 | - |
|
56 | - /** |
|
57 | - * Checks if a key exists. |
|
58 | - * |
|
59 | - * @param string|array $key |
|
60 | - * @return bool |
|
61 | - */ |
|
62 | - public function exists($key); |
|
63 | - |
|
64 | - /** |
|
65 | - * Checks if an a key is present and not null. |
|
66 | - * |
|
67 | - * @param string|array $key |
|
68 | - * @return bool |
|
69 | - */ |
|
70 | - public function has($key); |
|
71 | - |
|
72 | - /** |
|
73 | - * Get an item from the session. |
|
74 | - * |
|
75 | - * @param string $key |
|
76 | - * @param mixed $default |
|
77 | - * @return mixed |
|
78 | - */ |
|
79 | - public function get($key, $default = null); |
|
80 | - |
|
81 | - /** |
|
82 | - * Put a key / value pair or array of key / value pairs in the session. |
|
83 | - * |
|
84 | - * @param string|array $key |
|
85 | - * @param mixed $value |
|
86 | - * @return void |
|
87 | - */ |
|
88 | - public function put($key, $value = null); |
|
89 | - |
|
90 | - /** |
|
91 | - * Get the CSRF token value. |
|
92 | - * |
|
93 | - * @return string |
|
94 | - */ |
|
95 | - public function token(); |
|
96 | - |
|
97 | - /** |
|
98 | - * Remove an item from the session, returning its value. |
|
99 | - * |
|
100 | - * @param string $key |
|
101 | - * @return mixed |
|
102 | - */ |
|
103 | - public function remove($key); |
|
104 | - |
|
105 | - /** |
|
106 | - * Remove one or many items from the session. |
|
107 | - * |
|
108 | - * @param string|array $keys |
|
109 | - * @return void |
|
110 | - */ |
|
111 | - public function forget($keys); |
|
112 | - |
|
113 | - /** |
|
114 | - * Remove all of the items from the session. |
|
115 | - * |
|
116 | - * @return void |
|
117 | - */ |
|
118 | - public function flush(); |
|
119 | - |
|
120 | - /** |
|
121 | - * Generate a new session ID for the session. |
|
122 | - * |
|
123 | - * @param bool $destroy |
|
124 | - * @return bool |
|
125 | - */ |
|
126 | - public function migrate($destroy = false); |
|
127 | - |
|
128 | - /** |
|
129 | - * Determine if the session has been started. |
|
130 | - * |
|
131 | - * @return bool |
|
132 | - */ |
|
133 | - public function isStarted(); |
|
134 | - |
|
135 | - /** |
|
136 | - * Get the previous URL from the session. |
|
137 | - * |
|
138 | - * @return string|null |
|
139 | - */ |
|
140 | - public function previousUrl(); |
|
141 | - |
|
142 | - /** |
|
143 | - * Set the "previous" URL in the session. |
|
144 | - * |
|
145 | - * @param string $url |
|
146 | - * @return void |
|
147 | - */ |
|
148 | - public function setPreviousUrl($url); |
|
149 | - |
|
150 | - /** |
|
151 | - * Get the session handler instance. |
|
152 | - * |
|
153 | - * @return \SessionHandlerInterface |
|
154 | - */ |
|
155 | - public function getHandler(); |
|
156 | - |
|
157 | - /** |
|
158 | - * Determine if the session handler needs a request. |
|
159 | - * |
|
160 | - * @return bool |
|
161 | - */ |
|
162 | - public function handlerNeedsRequest(); |
|
163 | - |
|
164 | - /** |
|
165 | - * Set the request on the handler instance. |
|
166 | - * |
|
167 | - * @param \Illuminate\Http\Request $request |
|
168 | - * @return void |
|
169 | - */ |
|
170 | - public function setRequestOnHandler($request); |
|
13 | + /** |
|
14 | + * Get the name of the session. |
|
15 | + * |
|
16 | + * @return string |
|
17 | + */ |
|
18 | + public function getName(); |
|
19 | + |
|
20 | + /** |
|
21 | + * Get the current session ID. |
|
22 | + * |
|
23 | + * @return string |
|
24 | + */ |
|
25 | + public function getId(); |
|
26 | + |
|
27 | + /** |
|
28 | + * Set the session ID. |
|
29 | + * |
|
30 | + * @param string $id |
|
31 | + * @return void |
|
32 | + */ |
|
33 | + public function setId($id); |
|
34 | + |
|
35 | + /** |
|
36 | + * Start the session, reading the data from a handler. |
|
37 | + * |
|
38 | + * @return bool |
|
39 | + */ |
|
40 | + public function start(); |
|
41 | + |
|
42 | + /** |
|
43 | + * Save the session data to storage. |
|
44 | + * |
|
45 | + * @return bool |
|
46 | + */ |
|
47 | + public function save(); |
|
48 | + |
|
49 | + /** |
|
50 | + * Get all of the session data. |
|
51 | + * |
|
52 | + * @return array |
|
53 | + */ |
|
54 | + public function all(); |
|
55 | + |
|
56 | + /** |
|
57 | + * Checks if a key exists. |
|
58 | + * |
|
59 | + * @param string|array $key |
|
60 | + * @return bool |
|
61 | + */ |
|
62 | + public function exists($key); |
|
63 | + |
|
64 | + /** |
|
65 | + * Checks if an a key is present and not null. |
|
66 | + * |
|
67 | + * @param string|array $key |
|
68 | + * @return bool |
|
69 | + */ |
|
70 | + public function has($key); |
|
71 | + |
|
72 | + /** |
|
73 | + * Get an item from the session. |
|
74 | + * |
|
75 | + * @param string $key |
|
76 | + * @param mixed $default |
|
77 | + * @return mixed |
|
78 | + */ |
|
79 | + public function get($key, $default = null); |
|
80 | + |
|
81 | + /** |
|
82 | + * Put a key / value pair or array of key / value pairs in the session. |
|
83 | + * |
|
84 | + * @param string|array $key |
|
85 | + * @param mixed $value |
|
86 | + * @return void |
|
87 | + */ |
|
88 | + public function put($key, $value = null); |
|
89 | + |
|
90 | + /** |
|
91 | + * Get the CSRF token value. |
|
92 | + * |
|
93 | + * @return string |
|
94 | + */ |
|
95 | + public function token(); |
|
96 | + |
|
97 | + /** |
|
98 | + * Remove an item from the session, returning its value. |
|
99 | + * |
|
100 | + * @param string $key |
|
101 | + * @return mixed |
|
102 | + */ |
|
103 | + public function remove($key); |
|
104 | + |
|
105 | + /** |
|
106 | + * Remove one or many items from the session. |
|
107 | + * |
|
108 | + * @param string|array $keys |
|
109 | + * @return void |
|
110 | + */ |
|
111 | + public function forget($keys); |
|
112 | + |
|
113 | + /** |
|
114 | + * Remove all of the items from the session. |
|
115 | + * |
|
116 | + * @return void |
|
117 | + */ |
|
118 | + public function flush(); |
|
119 | + |
|
120 | + /** |
|
121 | + * Generate a new session ID for the session. |
|
122 | + * |
|
123 | + * @param bool $destroy |
|
124 | + * @return bool |
|
125 | + */ |
|
126 | + public function migrate($destroy = false); |
|
127 | + |
|
128 | + /** |
|
129 | + * Determine if the session has been started. |
|
130 | + * |
|
131 | + * @return bool |
|
132 | + */ |
|
133 | + public function isStarted(); |
|
134 | + |
|
135 | + /** |
|
136 | + * Get the previous URL from the session. |
|
137 | + * |
|
138 | + * @return string|null |
|
139 | + */ |
|
140 | + public function previousUrl(); |
|
141 | + |
|
142 | + /** |
|
143 | + * Set the "previous" URL in the session. |
|
144 | + * |
|
145 | + * @param string $url |
|
146 | + * @return void |
|
147 | + */ |
|
148 | + public function setPreviousUrl($url); |
|
149 | + |
|
150 | + /** |
|
151 | + * Get the session handler instance. |
|
152 | + * |
|
153 | + * @return \SessionHandlerInterface |
|
154 | + */ |
|
155 | + public function getHandler(); |
|
156 | + |
|
157 | + /** |
|
158 | + * Determine if the session handler needs a request. |
|
159 | + * |
|
160 | + * @return bool |
|
161 | + */ |
|
162 | + public function handlerNeedsRequest(); |
|
163 | + |
|
164 | + /** |
|
165 | + * Set the request on the handler instance. |
|
166 | + * |
|
167 | + * @param \Illuminate\Http\Request $request |
|
168 | + * @return void |
|
169 | + */ |
|
170 | + public function setRequestOnHandler($request); |
|
171 | 171 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param string $id |
31 | 31 | * @return void |
32 | 32 | */ |
33 | - public function setId($id); |
|
33 | + public function setId( $id ); |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Start the session, reading the data from a handler. |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @param string|array $key |
60 | 60 | * @return bool |
61 | 61 | */ |
62 | - public function exists($key); |
|
62 | + public function exists( $key ); |
|
63 | 63 | |
64 | 64 | /** |
65 | 65 | * Checks if an a key is present and not null. |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * @param string|array $key |
68 | 68 | * @return bool |
69 | 69 | */ |
70 | - public function has($key); |
|
70 | + public function has( $key ); |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Get an item from the session. |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param mixed $default |
77 | 77 | * @return mixed |
78 | 78 | */ |
79 | - public function get($key, $default = null); |
|
79 | + public function get( $key, $default = null ); |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Put a key / value pair or array of key / value pairs in the session. |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param mixed $value |
86 | 86 | * @return void |
87 | 87 | */ |
88 | - public function put($key, $value = null); |
|
88 | + public function put( $key, $value = null ); |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Get the CSRF token value. |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * @param string $key |
101 | 101 | * @return mixed |
102 | 102 | */ |
103 | - public function remove($key); |
|
103 | + public function remove( $key ); |
|
104 | 104 | |
105 | 105 | /** |
106 | 106 | * Remove one or many items from the session. |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @param string|array $keys |
109 | 109 | * @return void |
110 | 110 | */ |
111 | - public function forget($keys); |
|
111 | + public function forget( $keys ); |
|
112 | 112 | |
113 | 113 | /** |
114 | 114 | * Remove all of the items from the session. |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @param bool $destroy |
124 | 124 | * @return bool |
125 | 125 | */ |
126 | - public function migrate($destroy = false); |
|
126 | + public function migrate( $destroy = false ); |
|
127 | 127 | |
128 | 128 | /** |
129 | 129 | * Determine if the session has been started. |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * @param string $url |
146 | 146 | * @return void |
147 | 147 | */ |
148 | - public function setPreviousUrl($url); |
|
148 | + public function setPreviousUrl( $url ); |
|
149 | 149 | |
150 | 150 | /** |
151 | 151 | * Get the session handler instance. |
@@ -167,5 +167,5 @@ discard block |
||
167 | 167 | * @param \Illuminate\Http\Request $request |
168 | 168 | * @return void |
169 | 169 | */ |
170 | - public function setRequestOnHandler($request); |
|
170 | + public function setRequestOnHandler( $request ); |
|
171 | 171 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @param array $credentials |
39 | 39 | * @return bool |
40 | 40 | */ |
41 | - public function validate(array $credentials = []); |
|
41 | + public function validate( array $credentials = [ ] ); |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Set the current user. |
@@ -46,5 +46,5 @@ discard block |
||
46 | 46 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
47 | 47 | * @return void |
48 | 48 | */ |
49 | - public function setUser(Authenticatable $user); |
|
49 | + public function setUser( Authenticatable $user ); |
|
50 | 50 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Auth; |
4 | 4 | |
5 | -interface Guard |
|
6 | -{ |
|
5 | +interface Guard { |
|
7 | 6 | /** |
8 | 7 | * Determine if the current user is authenticated. |
9 | 8 | * |
@@ -4,47 +4,47 @@ |
||
4 | 4 | |
5 | 5 | interface Guard |
6 | 6 | { |
7 | - /** |
|
8 | - * Determine if the current user is authenticated. |
|
9 | - * |
|
10 | - * @return bool |
|
11 | - */ |
|
12 | - public function check(); |
|
7 | + /** |
|
8 | + * Determine if the current user is authenticated. |
|
9 | + * |
|
10 | + * @return bool |
|
11 | + */ |
|
12 | + public function check(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Determine if the current user is a guest. |
|
16 | - * |
|
17 | - * @return bool |
|
18 | - */ |
|
19 | - public function guest(); |
|
14 | + /** |
|
15 | + * Determine if the current user is a guest. |
|
16 | + * |
|
17 | + * @return bool |
|
18 | + */ |
|
19 | + public function guest(); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Get the currently authenticated user. |
|
23 | - * |
|
24 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
25 | - */ |
|
26 | - public function user(); |
|
21 | + /** |
|
22 | + * Get the currently authenticated user. |
|
23 | + * |
|
24 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
25 | + */ |
|
26 | + public function user(); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Get the ID for the currently authenticated user. |
|
30 | - * |
|
31 | - * @return int|null |
|
32 | - */ |
|
33 | - public function id(); |
|
28 | + /** |
|
29 | + * Get the ID for the currently authenticated user. |
|
30 | + * |
|
31 | + * @return int|null |
|
32 | + */ |
|
33 | + public function id(); |
|
34 | 34 | |
35 | - /** |
|
36 | - * Validate a user's credentials. |
|
37 | - * |
|
38 | - * @param array $credentials |
|
39 | - * @return bool |
|
40 | - */ |
|
41 | - public function validate(array $credentials = []); |
|
35 | + /** |
|
36 | + * Validate a user's credentials. |
|
37 | + * |
|
38 | + * @param array $credentials |
|
39 | + * @return bool |
|
40 | + */ |
|
41 | + public function validate(array $credentials = []); |
|
42 | 42 | |
43 | - /** |
|
44 | - * Set the current user. |
|
45 | - * |
|
46 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
47 | - * @return void |
|
48 | - */ |
|
49 | - public function setUser(Authenticatable $user); |
|
43 | + /** |
|
44 | + * Set the current user. |
|
45 | + * |
|
46 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
47 | + * @return void |
|
48 | + */ |
|
49 | + public function setUser(Authenticatable $user); |
|
50 | 50 | } |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @param mixed $identifier |
11 | 11 | * @return \Illuminate\Contracts\Auth\Authenticatable|null |
12 | 12 | */ |
13 | - public function retrieveById($identifier); |
|
13 | + public function retrieveById( $identifier ); |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Retrieve a user by their unique identifier and "remember me" token. |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * @param string $token |
20 | 20 | * @return \Illuminate\Contracts\Auth\Authenticatable|null |
21 | 21 | */ |
22 | - public function retrieveByToken($identifier, $token); |
|
22 | + public function retrieveByToken( $identifier, $token ); |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * Update the "remember me" token for the given user in storage. |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param string $token |
29 | 29 | * @return void |
30 | 30 | */ |
31 | - public function updateRememberToken(Authenticatable $user, $token); |
|
31 | + public function updateRememberToken( Authenticatable $user, $token ); |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Retrieve a user by the given credentials. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param array $credentials |
37 | 37 | * @return \Illuminate\Contracts\Auth\Authenticatable|null |
38 | 38 | */ |
39 | - public function retrieveByCredentials(array $credentials); |
|
39 | + public function retrieveByCredentials( array $credentials ); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Validate a user against the given credentials. |
@@ -45,5 +45,5 @@ discard block |
||
45 | 45 | * @param array $credentials |
46 | 46 | * @return bool |
47 | 47 | */ |
48 | - public function validateCredentials(Authenticatable $user, array $credentials); |
|
48 | + public function validateCredentials( Authenticatable $user, array $credentials ); |
|
49 | 49 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Auth; |
4 | 4 | |
5 | -interface UserProvider |
|
6 | -{ |
|
5 | +interface UserProvider { |
|
7 | 6 | /** |
8 | 7 | * Retrieve a user by their unique identifier. |
9 | 8 | * |
@@ -4,46 +4,46 @@ |
||
4 | 4 | |
5 | 5 | interface UserProvider |
6 | 6 | { |
7 | - /** |
|
8 | - * Retrieve a user by their unique identifier. |
|
9 | - * |
|
10 | - * @param mixed $identifier |
|
11 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
12 | - */ |
|
13 | - public function retrieveById($identifier); |
|
7 | + /** |
|
8 | + * Retrieve a user by their unique identifier. |
|
9 | + * |
|
10 | + * @param mixed $identifier |
|
11 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
12 | + */ |
|
13 | + public function retrieveById($identifier); |
|
14 | 14 | |
15 | - /** |
|
16 | - * Retrieve a user by their unique identifier and "remember me" token. |
|
17 | - * |
|
18 | - * @param mixed $identifier |
|
19 | - * @param string $token |
|
20 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
21 | - */ |
|
22 | - public function retrieveByToken($identifier, $token); |
|
15 | + /** |
|
16 | + * Retrieve a user by their unique identifier and "remember me" token. |
|
17 | + * |
|
18 | + * @param mixed $identifier |
|
19 | + * @param string $token |
|
20 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
21 | + */ |
|
22 | + public function retrieveByToken($identifier, $token); |
|
23 | 23 | |
24 | - /** |
|
25 | - * Update the "remember me" token for the given user in storage. |
|
26 | - * |
|
27 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
28 | - * @param string $token |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function updateRememberToken(Authenticatable $user, $token); |
|
24 | + /** |
|
25 | + * Update the "remember me" token for the given user in storage. |
|
26 | + * |
|
27 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
28 | + * @param string $token |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function updateRememberToken(Authenticatable $user, $token); |
|
32 | 32 | |
33 | - /** |
|
34 | - * Retrieve a user by the given credentials. |
|
35 | - * |
|
36 | - * @param array $credentials |
|
37 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
38 | - */ |
|
39 | - public function retrieveByCredentials(array $credentials); |
|
33 | + /** |
|
34 | + * Retrieve a user by the given credentials. |
|
35 | + * |
|
36 | + * @param array $credentials |
|
37 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
38 | + */ |
|
39 | + public function retrieveByCredentials(array $credentials); |
|
40 | 40 | |
41 | - /** |
|
42 | - * Validate a user against the given credentials. |
|
43 | - * |
|
44 | - * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
45 | - * @param array $credentials |
|
46 | - * @return bool |
|
47 | - */ |
|
48 | - public function validateCredentials(Authenticatable $user, array $credentials); |
|
41 | + /** |
|
42 | + * Validate a user against the given credentials. |
|
43 | + * |
|
44 | + * @param \Illuminate\Contracts\Auth\Authenticatable $user |
|
45 | + * @param array $credentials |
|
46 | + * @return bool |
|
47 | + */ |
|
48 | + public function validateCredentials(Authenticatable $user, array $credentials); |
|
49 | 49 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Closure; |
6 | 6 | |
7 | -interface PasswordBroker |
|
8 | -{ |
|
7 | +interface PasswordBroker { |
|
9 | 8 | /** |
10 | 9 | * Constant representing a successfully sent reminder. |
11 | 10 | * |
@@ -12,71 +12,71 @@ |
||
12 | 12 | |
13 | 13 | interface PasswordBroker |
14 | 14 | { |
15 | - /** |
|
16 | - * Constant representing a successfully sent reminder. |
|
17 | - * |
|
18 | - * @var string |
|
19 | - */ |
|
20 | - const RESET_LINK_SENT = 'passwords.sent'; |
|
15 | + /** |
|
16 | + * Constant representing a successfully sent reminder. |
|
17 | + * |
|
18 | + * @var string |
|
19 | + */ |
|
20 | + const RESET_LINK_SENT = 'passwords.sent'; |
|
21 | 21 | |
22 | - /** |
|
23 | - * Constant representing a successfully reset password. |
|
24 | - * |
|
25 | - * @var string |
|
26 | - */ |
|
27 | - const PASSWORD_RESET = 'passwords.reset'; |
|
22 | + /** |
|
23 | + * Constant representing a successfully reset password. |
|
24 | + * |
|
25 | + * @var string |
|
26 | + */ |
|
27 | + const PASSWORD_RESET = 'passwords.reset'; |
|
28 | 28 | |
29 | - /** |
|
30 | - * Constant representing the user not found response. |
|
31 | - * |
|
32 | - * @var string |
|
33 | - */ |
|
34 | - const INVALID_USER = 'passwords.user'; |
|
29 | + /** |
|
30 | + * Constant representing the user not found response. |
|
31 | + * |
|
32 | + * @var string |
|
33 | + */ |
|
34 | + const INVALID_USER = 'passwords.user'; |
|
35 | 35 | |
36 | - /** |
|
37 | - * Constant representing an invalid password. |
|
38 | - * |
|
39 | - * @var string |
|
40 | - */ |
|
41 | - const INVALID_PASSWORD = 'passwords.password'; |
|
36 | + /** |
|
37 | + * Constant representing an invalid password. |
|
38 | + * |
|
39 | + * @var string |
|
40 | + */ |
|
41 | + const INVALID_PASSWORD = 'passwords.password'; |
|
42 | 42 | |
43 | - /** |
|
44 | - * Constant representing an invalid token. |
|
45 | - * |
|
46 | - * @var string |
|
47 | - */ |
|
48 | - const INVALID_TOKEN = 'passwords.token'; |
|
43 | + /** |
|
44 | + * Constant representing an invalid token. |
|
45 | + * |
|
46 | + * @var string |
|
47 | + */ |
|
48 | + const INVALID_TOKEN = 'passwords.token'; |
|
49 | 49 | |
50 | - /** |
|
51 | - * Send a password reset link to a user. |
|
52 | - * |
|
53 | - * @param array $credentials |
|
54 | - * @return string |
|
55 | - */ |
|
56 | - public function sendResetLink(array $credentials); |
|
50 | + /** |
|
51 | + * Send a password reset link to a user. |
|
52 | + * |
|
53 | + * @param array $credentials |
|
54 | + * @return string |
|
55 | + */ |
|
56 | + public function sendResetLink(array $credentials); |
|
57 | 57 | |
58 | - /** |
|
59 | - * Reset the password for the given token. |
|
60 | - * |
|
61 | - * @param array $credentials |
|
62 | - * @param \Closure $callback |
|
63 | - * @return mixed |
|
64 | - */ |
|
65 | - public function reset(array $credentials, Closure $callback); |
|
58 | + /** |
|
59 | + * Reset the password for the given token. |
|
60 | + * |
|
61 | + * @param array $credentials |
|
62 | + * @param \Closure $callback |
|
63 | + * @return mixed |
|
64 | + */ |
|
65 | + public function reset(array $credentials, Closure $callback); |
|
66 | 66 | |
67 | - /** |
|
68 | - * Set a custom password validator. |
|
69 | - * |
|
70 | - * @param \Closure $callback |
|
71 | - * @return void |
|
72 | - */ |
|
73 | - public function validator(Closure $callback); |
|
67 | + /** |
|
68 | + * Set a custom password validator. |
|
69 | + * |
|
70 | + * @param \Closure $callback |
|
71 | + * @return void |
|
72 | + */ |
|
73 | + public function validator(Closure $callback); |
|
74 | 74 | |
75 | - /** |
|
76 | - * Determine if the passwords match for the request. |
|
77 | - * |
|
78 | - * @param array $credentials |
|
79 | - * @return bool |
|
80 | - */ |
|
81 | - public function validateNewPassword(array $credentials); |
|
75 | + /** |
|
76 | + * Determine if the passwords match for the request. |
|
77 | + * |
|
78 | + * @param array $credentials |
|
79 | + * @return bool |
|
80 | + */ |
|
81 | + public function validateNewPassword(array $credentials); |
|
82 | 82 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param array $credentials |
54 | 54 | * @return string |
55 | 55 | */ |
56 | - public function sendResetLink(array $credentials); |
|
56 | + public function sendResetLink( array $credentials ); |
|
57 | 57 | |
58 | 58 | /** |
59 | 59 | * Reset the password for the given token. |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param \Closure $callback |
63 | 63 | * @return mixed |
64 | 64 | */ |
65 | - public function reset(array $credentials, Closure $callback); |
|
65 | + public function reset( array $credentials, Closure $callback ); |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Set a custom password validator. |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * @param \Closure $callback |
71 | 71 | * @return void |
72 | 72 | */ |
73 | - public function validator(Closure $callback); |
|
73 | + public function validator( Closure $callback ); |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Determine if the passwords match for the request. |
@@ -78,5 +78,5 @@ discard block |
||
78 | 78 | * @param array $credentials |
79 | 79 | * @return bool |
80 | 80 | */ |
81 | - public function validateNewPassword(array $credentials); |
|
81 | + public function validateNewPassword( array $credentials ); |
|
82 | 82 | } |
@@ -4,21 +4,21 @@ |
||
4 | 4 | |
5 | 5 | interface SupportsBasicAuth |
6 | 6 | { |
7 | - /** |
|
8 | - * Attempt to authenticate using HTTP Basic Auth. |
|
9 | - * |
|
10 | - * @param string $field |
|
11 | - * @param array $extraConditions |
|
12 | - * @return \Symfony\Component\HttpFoundation\Response|null |
|
13 | - */ |
|
14 | - public function basic($field = 'email', $extraConditions = []); |
|
7 | + /** |
|
8 | + * Attempt to authenticate using HTTP Basic Auth. |
|
9 | + * |
|
10 | + * @param string $field |
|
11 | + * @param array $extraConditions |
|
12 | + * @return \Symfony\Component\HttpFoundation\Response|null |
|
13 | + */ |
|
14 | + public function basic($field = 'email', $extraConditions = []); |
|
15 | 15 | |
16 | - /** |
|
17 | - * Perform a stateless HTTP Basic login attempt. |
|
18 | - * |
|
19 | - * @param string $field |
|
20 | - * @param array $extraConditions |
|
21 | - * @return \Symfony\Component\HttpFoundation\Response|null |
|
22 | - */ |
|
23 | - public function onceBasic($field = 'email', $extraConditions = []); |
|
16 | + /** |
|
17 | + * Perform a stateless HTTP Basic login attempt. |
|
18 | + * |
|
19 | + * @param string $field |
|
20 | + * @param array $extraConditions |
|
21 | + * @return \Symfony\Component\HttpFoundation\Response|null |
|
22 | + */ |
|
23 | + public function onceBasic($field = 'email', $extraConditions = []); |
|
24 | 24 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @param array $extraConditions |
12 | 12 | * @return \Symfony\Component\HttpFoundation\Response|null |
13 | 13 | */ |
14 | - public function basic($field = 'email', $extraConditions = []); |
|
14 | + public function basic( $field = 'email', $extraConditions = [ ] ); |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Perform a stateless HTTP Basic login attempt. |
@@ -20,5 +20,5 @@ discard block |
||
20 | 20 | * @param array $extraConditions |
21 | 21 | * @return \Symfony\Component\HttpFoundation\Response|null |
22 | 22 | */ |
23 | - public function onceBasic($field = 'email', $extraConditions = []); |
|
23 | + public function onceBasic( $field = 'email', $extraConditions = [ ] ); |
|
24 | 24 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Auth; |
4 | 4 | |
5 | -interface SupportsBasicAuth |
|
6 | -{ |
|
5 | +interface SupportsBasicAuth { |
|
7 | 6 | /** |
8 | 7 | * Attempt to authenticate using HTTP Basic Auth. |
9 | 8 | * |
@@ -4,46 +4,46 @@ |
||
4 | 4 | |
5 | 5 | interface Authenticatable |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the name of the unique identifier for the user. |
|
9 | - * |
|
10 | - * @return string |
|
11 | - */ |
|
12 | - public function getAuthIdentifierName(); |
|
7 | + /** |
|
8 | + * Get the name of the unique identifier for the user. |
|
9 | + * |
|
10 | + * @return string |
|
11 | + */ |
|
12 | + public function getAuthIdentifierName(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Get the unique identifier for the user. |
|
16 | - * |
|
17 | - * @return mixed |
|
18 | - */ |
|
19 | - public function getAuthIdentifier(); |
|
14 | + /** |
|
15 | + * Get the unique identifier for the user. |
|
16 | + * |
|
17 | + * @return mixed |
|
18 | + */ |
|
19 | + public function getAuthIdentifier(); |
|
20 | 20 | |
21 | - /** |
|
22 | - * Get the password for the user. |
|
23 | - * |
|
24 | - * @return string |
|
25 | - */ |
|
26 | - public function getAuthPassword(); |
|
21 | + /** |
|
22 | + * Get the password for the user. |
|
23 | + * |
|
24 | + * @return string |
|
25 | + */ |
|
26 | + public function getAuthPassword(); |
|
27 | 27 | |
28 | - /** |
|
29 | - * Get the token value for the "remember me" session. |
|
30 | - * |
|
31 | - * @return string |
|
32 | - */ |
|
33 | - public function getRememberToken(); |
|
28 | + /** |
|
29 | + * Get the token value for the "remember me" session. |
|
30 | + * |
|
31 | + * @return string |
|
32 | + */ |
|
33 | + public function getRememberToken(); |
|
34 | 34 | |
35 | - /** |
|
36 | - * Set the token value for the "remember me" session. |
|
37 | - * |
|
38 | - * @param string $value |
|
39 | - * @return void |
|
40 | - */ |
|
41 | - public function setRememberToken($value); |
|
35 | + /** |
|
36 | + * Set the token value for the "remember me" session. |
|
37 | + * |
|
38 | + * @param string $value |
|
39 | + * @return void |
|
40 | + */ |
|
41 | + public function setRememberToken($value); |
|
42 | 42 | |
43 | - /** |
|
44 | - * Get the column name for the "remember me" token. |
|
45 | - * |
|
46 | - * @return string |
|
47 | - */ |
|
48 | - public function getRememberTokenName(); |
|
43 | + /** |
|
44 | + * Get the column name for the "remember me" token. |
|
45 | + * |
|
46 | + * @return string |
|
47 | + */ |
|
48 | + public function getRememberTokenName(); |
|
49 | 49 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param string $value |
39 | 39 | * @return void |
40 | 40 | */ |
41 | - public function setRememberToken($value); |
|
41 | + public function setRememberToken( $value ); |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Get the column name for the "remember me" token. |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Auth; |
4 | 4 | |
5 | -interface Authenticatable |
|
6 | -{ |
|
5 | +interface Authenticatable { |
|
7 | 6 | /** |
8 | 7 | * Get the name of the unique identifier for the user. |
9 | 8 | * |
@@ -4,18 +4,18 @@ |
||
4 | 4 | |
5 | 5 | interface CanResetPassword |
6 | 6 | { |
7 | - /** |
|
8 | - * Get the e-mail address where password reset links are sent. |
|
9 | - * |
|
10 | - * @return string |
|
11 | - */ |
|
12 | - public function getEmailForPasswordReset(); |
|
7 | + /** |
|
8 | + * Get the e-mail address where password reset links are sent. |
|
9 | + * |
|
10 | + * @return string |
|
11 | + */ |
|
12 | + public function getEmailForPasswordReset(); |
|
13 | 13 | |
14 | - /** |
|
15 | - * Send the password reset notification. |
|
16 | - * |
|
17 | - * @param string $token |
|
18 | - * @return void |
|
19 | - */ |
|
20 | - public function sendPasswordResetNotification($token); |
|
14 | + /** |
|
15 | + * Send the password reset notification. |
|
16 | + * |
|
17 | + * @param string $token |
|
18 | + * @return void |
|
19 | + */ |
|
20 | + public function sendPasswordResetNotification($token); |
|
21 | 21 | } |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @param string $token |
18 | 18 | * @return void |
19 | 19 | */ |
20 | - public function sendPasswordResetNotification($token); |
|
20 | + public function sendPasswordResetNotification( $token ); |
|
21 | 21 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Contracts\Auth; |
4 | 4 | |
5 | -interface CanResetPassword |
|
6 | -{ |
|
5 | +interface CanResetPassword { |
|
7 | 6 | /** |
8 | 7 | * Get the e-mail address where password reset links are sent. |
9 | 8 | * |