@@ -74,14 +74,14 @@ |
||
74 | 74 | return null; |
75 | 75 | } |
76 | 76 | |
77 | - /** |
|
78 | - * Write to an environment variable. |
|
79 | - * |
|
80 | - * @param string $name |
|
81 | - * @param string $value |
|
82 | - * |
|
83 | - * @return bool |
|
84 | - */ |
|
77 | + /** |
|
78 | + * Write to an environment variable. |
|
79 | + * |
|
80 | + * @param string $name |
|
81 | + * @param string $value |
|
82 | + * |
|
83 | + * @return bool |
|
84 | + */ |
|
85 | 85 | public function write(string $name, string $value) |
86 | 86 | { |
87 | 87 | if ($this->has($name)) { |
@@ -76,14 +76,14 @@ |
||
76 | 76 | return null; |
77 | 77 | } |
78 | 78 | |
79 | - /** |
|
80 | - * Write to an environment variable. |
|
81 | - * |
|
82 | - * @param string $name |
|
83 | - * @param string $value |
|
84 | - * |
|
85 | - * @return bool |
|
86 | - */ |
|
79 | + /** |
|
80 | + * Write to an environment variable. |
|
81 | + * |
|
82 | + * @param string $name |
|
83 | + * @param string $value |
|
84 | + * |
|
85 | + * @return bool |
|
86 | + */ |
|
87 | 87 | public function write(string $name, string $value) |
88 | 88 | { |
89 | 89 | $this->data[$name] = $value; |
@@ -70,14 +70,14 @@ |
||
70 | 70 | return null; |
71 | 71 | } |
72 | 72 | |
73 | - /** |
|
74 | - * Write to an environment variable. |
|
75 | - * |
|
76 | - * @param string $name |
|
77 | - * @param string $value |
|
78 | - * |
|
79 | - * @return bool |
|
80 | - */ |
|
73 | + /** |
|
74 | + * Write to an environment variable. |
|
75 | + * |
|
76 | + * @param string $name |
|
77 | + * @param string $value |
|
78 | + * |
|
79 | + * @return bool |
|
80 | + */ |
|
81 | 81 | public function write(string $name, string $value) |
82 | 82 | { |
83 | 83 | if ( ! $this->has($name)) { |
@@ -70,14 +70,14 @@ |
||
70 | 70 | return null; |
71 | 71 | } |
72 | 72 | |
73 | - /** |
|
74 | - * Write to an environment variable. |
|
75 | - * |
|
76 | - * @param string $name |
|
77 | - * @param string $value |
|
78 | - * |
|
79 | - * @return bool |
|
80 | - */ |
|
73 | + /** |
|
74 | + * Write to an environment variable. |
|
75 | + * |
|
76 | + * @param string $name |
|
77 | + * @param string $value |
|
78 | + * |
|
79 | + * @return bool |
|
80 | + */ |
|
81 | 81 | public function write(string $name, string $value) |
82 | 82 | { |
83 | 83 | return apache_setenv($name, $value); |
@@ -70,14 +70,14 @@ |
||
70 | 70 | return null; |
71 | 71 | } |
72 | 72 | |
73 | - /** |
|
74 | - * Write to an environment variable. |
|
75 | - * |
|
76 | - * @param string $name |
|
77 | - * @param string $value |
|
78 | - * |
|
79 | - * @return bool |
|
80 | - */ |
|
73 | + /** |
|
74 | + * Write to an environment variable. |
|
75 | + * |
|
76 | + * @param string $name |
|
77 | + * @param string $value |
|
78 | + * |
|
79 | + * @return bool |
|
80 | + */ |
|
81 | 81 | public function write(string $name, string $value) |
82 | 82 | { |
83 | 83 | if (empty($_ENV[$name])) |
@@ -69,14 +69,14 @@ |
||
69 | 69 | return null; |
70 | 70 | } |
71 | 71 | |
72 | - /** |
|
73 | - * Write to an environment variable. |
|
74 | - * |
|
75 | - * @param string $name |
|
76 | - * @param string $value |
|
77 | - * |
|
78 | - * @return bool |
|
79 | - */ |
|
72 | + /** |
|
73 | + * Write to an environment variable. |
|
74 | + * |
|
75 | + * @param string $name |
|
76 | + * @param string $value |
|
77 | + * |
|
78 | + * @return bool |
|
79 | + */ |
|
80 | 80 | public function write(string $name, string $value) |
81 | 81 | { |
82 | 82 | $notHttpName = 0 !== strpos($name, 'HTTP_'); |
@@ -73,14 +73,14 @@ |
||
73 | 73 | return $this->readers->read($name); |
74 | 74 | } |
75 | 75 | |
76 | - /** |
|
77 | - * Set an environment variable. |
|
78 | - * |
|
79 | - * @param string $name |
|
80 | - * @param string $value |
|
81 | - * |
|
82 | - * @return bool |
|
83 | - */ |
|
76 | + /** |
|
77 | + * Set an environment variable. |
|
78 | + * |
|
79 | + * @param string $name |
|
80 | + * @param string $value |
|
81 | + * |
|
82 | + * @return bool |
|
83 | + */ |
|
84 | 84 | public function set(string $name, string $value) |
85 | 85 | { |
86 | 86 | return $this->writers->write($name, $value); |
@@ -259,7 +259,7 @@ |
||
259 | 259 | $quote = $value[0]; |
260 | 260 | |
261 | 261 | $regexPattern = sprintf( |
262 | - '/^ |
|
262 | + '/^ |
|
263 | 263 | %1$s # match a quote at the start of the value |
264 | 264 | ( # capturing sub-pattern used |
265 | 265 | (?: # we do not need to capture this |
@@ -274,7 +274,7 @@ |
||
274 | 274 | if (strpos($value, '$') !== false) { |
275 | 275 | $repository = $this->repository; |
276 | 276 | |
277 | - $value = preg_replace_callback('~\${([a-zA-Z0-9_]+)}~', function ($pattern) use ($repository) { |
|
277 | + $value = preg_replace_callback('~\${([a-zA-Z0-9_]+)}~', function($pattern) use ($repository) { |
|
278 | 278 | $nestedVariable = $repository->get($pattern[1]); |
279 | 279 | |
280 | 280 | if (is_null($nestedVariable)) { |
@@ -31,14 +31,14 @@ |
||
31 | 31 | interface Lenevor |
32 | 32 | { |
33 | 33 | /** |
34 | - * Initializes the framework, this can only be called once. |
|
35 | - * Launch the application. |
|
36 | - * |
|
37 | - * @param \Syscodes\http\Request $request |
|
38 | - * |
|
39 | - * @return void |
|
40 | - * |
|
41 | - * @uses new \Syscodes\Http\Response |
|
42 | - */ |
|
43 | - public function handle($request); |
|
34 | + * Initializes the framework, this can only be called once. |
|
35 | + * Launch the application. |
|
36 | + * |
|
37 | + * @param \Syscodes\http\Request $request |
|
38 | + * |
|
39 | + * @return void |
|
40 | + * |
|
41 | + * @uses new \Syscodes\Http\Response |
|
42 | + */ |
|
43 | + public function handle($request); |
|
44 | 44 | } |
45 | 45 | \ No newline at end of file |