@@ -32,126 +32,126 @@ |
||
32 | 32 | */ |
33 | 33 | class AutoloadConfig |
34 | 34 | { |
35 | - /** |
|
36 | - * Map of class names and locations. |
|
37 | - * |
|
38 | - * @var array $classmap |
|
39 | - */ |
|
40 | - public $classmap = []; |
|
35 | + /** |
|
36 | + * Map of class names and locations. |
|
37 | + * |
|
38 | + * @var array $classmap |
|
39 | + */ |
|
40 | + public $classmap = []; |
|
41 | 41 | |
42 | - /** |
|
43 | - * If true, then auto-enabled will happen across all namespaces |
|
44 | - * loaded by Composer, as well as the namespaces configured locally. |
|
45 | - * |
|
46 | - * @var bool $enabledInComposer |
|
47 | - */ |
|
48 | - public $enabledInComposer = true; |
|
42 | + /** |
|
43 | + * If true, then auto-enabled will happen across all namespaces |
|
44 | + * loaded by Composer, as well as the namespaces configured locally. |
|
45 | + * |
|
46 | + * @var bool $enabledInComposer |
|
47 | + */ |
|
48 | + public $enabledInComposer = true; |
|
49 | 49 | |
50 | - /** |
|
51 | - * Array of files for autoloading. |
|
52 | - * |
|
53 | - * @var array $includeFiles |
|
54 | - */ |
|
55 | - public $includeFiles = []; |
|
50 | + /** |
|
51 | + * Array of files for autoloading. |
|
52 | + * |
|
53 | + * @var array $includeFiles |
|
54 | + */ |
|
55 | + public $includeFiles = []; |
|
56 | 56 | |
57 | - /** |
|
58 | - * Array of namespaces for autoloading. |
|
59 | - * |
|
60 | - * @var array $psr4 |
|
61 | - */ |
|
62 | - public $psr4 = []; |
|
57 | + /** |
|
58 | + * Array of namespaces for autoloading. |
|
59 | + * |
|
60 | + * @var array $psr4 |
|
61 | + */ |
|
62 | + public $psr4 = []; |
|
63 | 63 | |
64 | - /** |
|
65 | - * Constructor. |
|
66 | - */ |
|
67 | - public function __construct() |
|
68 | - { |
|
69 | - /** |
|
70 | - * --------------------------------------------------------------------- |
|
71 | - * Namespaces |
|
72 | - * --------------------------------------------------------------------- |
|
73 | - * |
|
74 | - * This maps the locations of any namespaces in your application to |
|
75 | - * their location on the file system. These are used by the Autoloader |
|
76 | - * to locate files the first time they have been instantiated. |
|
77 | - * |
|
78 | - */ |
|
79 | - $this->psr4 = require SYS_PATH.'src'.DIRECTORY_SEPARATOR.'register'.DIRECTORY_SEPARATOR.'autoloadPsr4.php'; |
|
64 | + /** |
|
65 | + * Constructor. |
|
66 | + */ |
|
67 | + public function __construct() |
|
68 | + { |
|
69 | + /** |
|
70 | + * --------------------------------------------------------------------- |
|
71 | + * Namespaces |
|
72 | + * --------------------------------------------------------------------- |
|
73 | + * |
|
74 | + * This maps the locations of any namespaces in your application to |
|
75 | + * their location on the file system. These are used by the Autoloader |
|
76 | + * to locate files the first time they have been instantiated. |
|
77 | + * |
|
78 | + */ |
|
79 | + $this->psr4 = require SYS_PATH.'src'.DIRECTORY_SEPARATOR.'register'.DIRECTORY_SEPARATOR.'autoloadPsr4.php'; |
|
80 | 80 | |
81 | - /** |
|
82 | - * --------------------------------------------------------------------- |
|
83 | - * Class Map |
|
84 | - * --------------------------------------------------------------------- |
|
85 | - * |
|
86 | - * The class map provides a map of class names and their exact location |
|
87 | - * on the drive. |
|
88 | - * |
|
89 | - */ |
|
90 | - $this->classmap = require SYS_PATH.'src'.DIRECTORY_SEPARATOR.'register'.DIRECTORY_SEPARATOR.'autoloadClassmap.php'; |
|
81 | + /** |
|
82 | + * --------------------------------------------------------------------- |
|
83 | + * Class Map |
|
84 | + * --------------------------------------------------------------------- |
|
85 | + * |
|
86 | + * The class map provides a map of class names and their exact location |
|
87 | + * on the drive. |
|
88 | + * |
|
89 | + */ |
|
90 | + $this->classmap = require SYS_PATH.'src'.DIRECTORY_SEPARATOR.'register'.DIRECTORY_SEPARATOR.'autoloadClassmap.php'; |
|
91 | 91 | |
92 | - /** |
|
93 | - * --------------------------------------------------------------------- |
|
94 | - * Include Files |
|
95 | - * --------------------------------------------------------------------- |
|
96 | - * |
|
97 | - * This maps the locations of any files in your application to |
|
98 | - * their location on the file system. |
|
99 | - * |
|
100 | - */ |
|
101 | - $this->includeFiles = require SYS_PATH.'src'.DIRECTORY_SEPARATOR.'register'.DIRECTORY_SEPARATOR.'autoloadFiles.php'; |
|
102 | - } |
|
92 | + /** |
|
93 | + * --------------------------------------------------------------------- |
|
94 | + * Include Files |
|
95 | + * --------------------------------------------------------------------- |
|
96 | + * |
|
97 | + * This maps the locations of any files in your application to |
|
98 | + * their location on the file system. |
|
99 | + * |
|
100 | + */ |
|
101 | + $this->includeFiles = require SYS_PATH.'src'.DIRECTORY_SEPARATOR.'register'.DIRECTORY_SEPARATOR.'autoloadFiles.php'; |
|
102 | + } |
|
103 | 103 | |
104 | - /** |
|
105 | - * Get the classes to filename map. |
|
106 | - * |
|
107 | - * @param array $classmap |
|
108 | - * |
|
109 | - * @return void |
|
110 | - */ |
|
111 | - public function addClassMap(array $classmap) |
|
112 | - { |
|
113 | - if (isset($this->classmap)) { |
|
114 | - $this->classmap = array_merge($this->classmap, $classmap); |
|
115 | - } else { |
|
116 | - $this->classmap = $classmap; |
|
117 | - } |
|
104 | + /** |
|
105 | + * Get the classes to filename map. |
|
106 | + * |
|
107 | + * @param array $classmap |
|
108 | + * |
|
109 | + * @return void |
|
110 | + */ |
|
111 | + public function addClassMap(array $classmap) |
|
112 | + { |
|
113 | + if (isset($this->classmap)) { |
|
114 | + $this->classmap = array_merge($this->classmap, $classmap); |
|
115 | + } else { |
|
116 | + $this->classmap = $classmap; |
|
117 | + } |
|
118 | 118 | |
119 | - return $this->classmap; |
|
120 | - } |
|
119 | + return $this->classmap; |
|
120 | + } |
|
121 | 121 | |
122 | - /** |
|
123 | - * Get the filename map. |
|
124 | - * |
|
125 | - * @param array $files |
|
126 | - * |
|
127 | - * @return void |
|
128 | - */ |
|
129 | - public function addFiles(array $files) |
|
130 | - { |
|
131 | - if (isset($this->includeFiles)) { |
|
132 | - $this->includeFiles = array_merge($this->includeFiles, $files); |
|
133 | - } else { |
|
134 | - $this->includeFiles = $files; |
|
135 | - } |
|
122 | + /** |
|
123 | + * Get the filename map. |
|
124 | + * |
|
125 | + * @param array $files |
|
126 | + * |
|
127 | + * @return void |
|
128 | + */ |
|
129 | + public function addFiles(array $files) |
|
130 | + { |
|
131 | + if (isset($this->includeFiles)) { |
|
132 | + $this->includeFiles = array_merge($this->includeFiles, $files); |
|
133 | + } else { |
|
134 | + $this->includeFiles = $files; |
|
135 | + } |
|
136 | 136 | |
137 | - return $this->includeFiles; |
|
138 | - } |
|
137 | + return $this->includeFiles; |
|
138 | + } |
|
139 | 139 | |
140 | - /** |
|
141 | - * Registers a set of PSR-4 directories for a given namespace. |
|
142 | - * |
|
143 | - * @param array $psr4 |
|
144 | - * |
|
145 | - * @return void |
|
146 | - */ |
|
147 | - public function addPsr4(array $psr4) |
|
148 | - { |
|
149 | - if (isset($this->psr4)) { |
|
150 | - $this->psr4 = array_merge($this->psr4, $psr4); |
|
151 | - } else { |
|
152 | - $this->psr4 = $psr4; |
|
153 | - } |
|
140 | + /** |
|
141 | + * Registers a set of PSR-4 directories for a given namespace. |
|
142 | + * |
|
143 | + * @param array $psr4 |
|
144 | + * |
|
145 | + * @return void |
|
146 | + */ |
|
147 | + public function addPsr4(array $psr4) |
|
148 | + { |
|
149 | + if (isset($this->psr4)) { |
|
150 | + $this->psr4 = array_merge($this->psr4, $psr4); |
|
151 | + } else { |
|
152 | + $this->psr4 = $psr4; |
|
153 | + } |
|
154 | 154 | |
155 | - return $this->psr4; |
|
156 | - } |
|
155 | + return $this->psr4; |
|
156 | + } |
|
157 | 157 | } |
158 | 158 | \ No newline at end of file |
@@ -36,151 +36,151 @@ |
||
36 | 36 | */ |
37 | 37 | class Configure implements ArrayAccess, ConfigureContract |
38 | 38 | { |
39 | - /** |
|
40 | - * Currently registered routes. |
|
41 | - * |
|
42 | - * @var array $vars |
|
43 | - */ |
|
44 | - protected $vars = []; |
|
39 | + /** |
|
40 | + * Currently registered routes. |
|
41 | + * |
|
42 | + * @var array $vars |
|
43 | + */ |
|
44 | + protected $vars = []; |
|
45 | 45 | |
46 | - /** |
|
47 | - * Determine if the given configuration value exists. |
|
48 | - * |
|
49 | - * @param string $key |
|
50 | - * |
|
51 | - * @return bool |
|
52 | - */ |
|
53 | - public function has(string $key) |
|
54 | - { |
|
55 | - return Arr::has($this->vars, $key); |
|
56 | - } |
|
46 | + /** |
|
47 | + * Determine if the given configuration value exists. |
|
48 | + * |
|
49 | + * @param string $key |
|
50 | + * |
|
51 | + * @return bool |
|
52 | + */ |
|
53 | + public function has(string $key) |
|
54 | + { |
|
55 | + return Arr::has($this->vars, $key); |
|
56 | + } |
|
57 | 57 | |
58 | - /** |
|
59 | - * Returns a (dot notated) config setting. |
|
60 | - * |
|
61 | - * @param string $key The dot-notated key or array of keys |
|
62 | - * @param mixed $default The default value |
|
63 | - * |
|
64 | - * @return mixed |
|
65 | - * |
|
66 | - * @uses \Syscodes\Support\Arr |
|
67 | - */ |
|
68 | - public function get(string $key, $default = null) |
|
69 | - { |
|
70 | - $keys = explode('.', $key); |
|
58 | + /** |
|
59 | + * Returns a (dot notated) config setting. |
|
60 | + * |
|
61 | + * @param string $key The dot-notated key or array of keys |
|
62 | + * @param mixed $default The default value |
|
63 | + * |
|
64 | + * @return mixed |
|
65 | + * |
|
66 | + * @uses \Syscodes\Support\Arr |
|
67 | + */ |
|
68 | + public function get(string $key, $default = null) |
|
69 | + { |
|
70 | + $keys = explode('.', $key); |
|
71 | 71 | |
72 | - if ( ! array_key_exists($file = current($keys), $this->vars)) |
|
73 | - { |
|
74 | - foreach ([CON_PATH] as $paths) |
|
75 | - { |
|
76 | - if (is_readable($path = $paths.$file.'.php')) |
|
77 | - { |
|
78 | - $this->vars[$file] = require $path; |
|
79 | - } |
|
80 | - } |
|
81 | - } |
|
72 | + if ( ! array_key_exists($file = current($keys), $this->vars)) |
|
73 | + { |
|
74 | + foreach ([CON_PATH] as $paths) |
|
75 | + { |
|
76 | + if (is_readable($path = $paths.$file.'.php')) |
|
77 | + { |
|
78 | + $this->vars[$file] = require $path; |
|
79 | + } |
|
80 | + } |
|
81 | + } |
|
82 | 82 | |
83 | - return Arr::get($this->vars, $key, $default); |
|
84 | - } |
|
83 | + return Arr::get($this->vars, $key, $default); |
|
84 | + } |
|
85 | 85 | |
86 | - /** |
|
87 | - * Sets a value in the config array. |
|
88 | - * |
|
89 | - * @param string $key The dot-notated key or array of keys |
|
90 | - * @param mixed $value The default value |
|
91 | - * |
|
92 | - * @return mixed |
|
93 | - * |
|
94 | - * @uses \Syscodes\Support\Arr |
|
95 | - */ |
|
96 | - public function set(string $key, $value) |
|
97 | - { |
|
98 | - strpos($key, '.') === false || $this->vars[$key] = $value; |
|
86 | + /** |
|
87 | + * Sets a value in the config array. |
|
88 | + * |
|
89 | + * @param string $key The dot-notated key or array of keys |
|
90 | + * @param mixed $value The default value |
|
91 | + * |
|
92 | + * @return mixed |
|
93 | + * |
|
94 | + * @uses \Syscodes\Support\Arr |
|
95 | + */ |
|
96 | + public function set(string $key, $value) |
|
97 | + { |
|
98 | + strpos($key, '.') === false || $this->vars[$key] = $value; |
|
99 | 99 | |
100 | - Arr::set($this->$vars, $key, $value); |
|
101 | - } |
|
100 | + Arr::set($this->$vars, $key, $value); |
|
101 | + } |
|
102 | 102 | |
103 | - /** |
|
104 | - * Deletes a (dot notated) config item. |
|
105 | - * |
|
106 | - * @param string $key A (dot notated) config key |
|
107 | - * |
|
108 | - * @return array|bool |
|
109 | - * |
|
110 | - * @uses \Syscodes\Support\Arr |
|
111 | - */ |
|
112 | - public function erase(string $key) |
|
113 | - { |
|
114 | - if (isset($this->$vars[$key])) |
|
115 | - { |
|
116 | - unset($this->$vars[$key]); |
|
117 | - } |
|
103 | + /** |
|
104 | + * Deletes a (dot notated) config item. |
|
105 | + * |
|
106 | + * @param string $key A (dot notated) config key |
|
107 | + * |
|
108 | + * @return array|bool |
|
109 | + * |
|
110 | + * @uses \Syscodes\Support\Arr |
|
111 | + */ |
|
112 | + public function erase(string $key) |
|
113 | + { |
|
114 | + if (isset($this->$vars[$key])) |
|
115 | + { |
|
116 | + unset($this->$vars[$key]); |
|
117 | + } |
|
118 | 118 | |
119 | - Arr::erase($this->$vars, $key); |
|
120 | - } |
|
119 | + Arr::erase($this->$vars, $key); |
|
120 | + } |
|
121 | 121 | |
122 | - /** |
|
123 | - * Get all of the configuration items for the application. |
|
124 | - * |
|
125 | - * @return array |
|
126 | - */ |
|
127 | - public function all() |
|
128 | - { |
|
129 | - return $this->vars; |
|
130 | - } |
|
122 | + /** |
|
123 | + * Get all of the configuration items for the application. |
|
124 | + * |
|
125 | + * @return array |
|
126 | + */ |
|
127 | + public function all() |
|
128 | + { |
|
129 | + return $this->vars; |
|
130 | + } |
|
131 | 131 | |
132 | - /* |
|
132 | + /* |
|
133 | 133 | |----------------------------------------------------------------- |
134 | 134 | | ArrayAccess Methods |
135 | 135 | |----------------------------------------------------------------- |
136 | 136 | */ |
137 | 137 | |
138 | - /** |
|
139 | - * Determine if the given configuration option exists. |
|
140 | - * |
|
141 | - * @param string $key |
|
142 | - * |
|
143 | - * @return bool |
|
144 | - */ |
|
145 | - public function offsetExists($key) |
|
146 | - { |
|
147 | - return $this->has($key); |
|
148 | - } |
|
138 | + /** |
|
139 | + * Determine if the given configuration option exists. |
|
140 | + * |
|
141 | + * @param string $key |
|
142 | + * |
|
143 | + * @return bool |
|
144 | + */ |
|
145 | + public function offsetExists($key) |
|
146 | + { |
|
147 | + return $this->has($key); |
|
148 | + } |
|
149 | 149 | |
150 | - /** |
|
151 | - * Get a configuration option. |
|
152 | - * |
|
153 | - * @param string $key |
|
154 | - * |
|
155 | - * @return mixed |
|
156 | - */ |
|
157 | - public function offsetGet($key) |
|
158 | - { |
|
159 | - return $this->get($key); |
|
160 | - } |
|
150 | + /** |
|
151 | + * Get a configuration option. |
|
152 | + * |
|
153 | + * @param string $key |
|
154 | + * |
|
155 | + * @return mixed |
|
156 | + */ |
|
157 | + public function offsetGet($key) |
|
158 | + { |
|
159 | + return $this->get($key); |
|
160 | + } |
|
161 | 161 | |
162 | - /** |
|
163 | - * Set a configuration option. |
|
164 | - * |
|
165 | - * @param string $key |
|
166 | - * @param mixed $value |
|
167 | - * |
|
168 | - * @return void |
|
169 | - */ |
|
170 | - public function offsetSet($key, $value) |
|
171 | - { |
|
172 | - $this->set($key, $value); |
|
173 | - } |
|
162 | + /** |
|
163 | + * Set a configuration option. |
|
164 | + * |
|
165 | + * @param string $key |
|
166 | + * @param mixed $value |
|
167 | + * |
|
168 | + * @return void |
|
169 | + */ |
|
170 | + public function offsetSet($key, $value) |
|
171 | + { |
|
172 | + $this->set($key, $value); |
|
173 | + } |
|
174 | 174 | |
175 | - /** |
|
176 | - * Unset a configuration option. |
|
177 | - * |
|
178 | - * @param string $key |
|
179 | - * |
|
180 | - * @return void |
|
181 | - */ |
|
182 | - public function offsetUnset($key) |
|
183 | - { |
|
184 | - $this->set($key, null); |
|
185 | - } |
|
175 | + /** |
|
176 | + * Unset a configuration option. |
|
177 | + * |
|
178 | + * @param string $key |
|
179 | + * |
|
180 | + * @return void |
|
181 | + */ |
|
182 | + public function offsetUnset($key) |
|
183 | + { |
|
184 | + $this->set($key, null); |
|
185 | + } |
|
186 | 186 | } |
187 | 187 | \ No newline at end of file |
@@ -38,14 +38,14 @@ |
||
38 | 38 | */ |
39 | 39 | public function get(string $name); |
40 | 40 | |
41 | - /** |
|
42 | - * Set an environment variable. |
|
43 | - * |
|
44 | - * @param string $name |
|
45 | - * @param string $value |
|
46 | - * |
|
47 | - * @return bool |
|
48 | - */ |
|
41 | + /** |
|
42 | + * Set an environment variable. |
|
43 | + * |
|
44 | + * @param string $name |
|
45 | + * @param string $value |
|
46 | + * |
|
47 | + * @return bool |
|
48 | + */ |
|
49 | 49 | public function set(string $name, string $value); |
50 | 50 | |
51 | 51 | /** |
@@ -38,14 +38,14 @@ |
||
38 | 38 | */ |
39 | 39 | public function read(string $name); |
40 | 40 | |
41 | - /** |
|
42 | - * Write to an environment variable. |
|
43 | - * |
|
44 | - * @param string $name |
|
45 | - * @param string $value |
|
46 | - * |
|
47 | - * @return bool |
|
48 | - */ |
|
41 | + /** |
|
42 | + * Write to an environment variable. |
|
43 | + * |
|
44 | + * @param string $name |
|
45 | + * @param string $value |
|
46 | + * |
|
47 | + * @return bool |
|
48 | + */ |
|
49 | 49 | public function write(string $name, string $value); |
50 | 50 | |
51 | 51 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function initialize(AutoloadConfig $config) |
76 | 76 | { |
77 | 77 | if (isset($config->psr4)) { |
78 | - $this->addNamespace($config->addPsr4((array) $this->classOrNamespaceListMap[0])); |
|
78 | + $this->addNamespace($config->addPsr4((array) $this->classOrNamespaceListMap[0])); |
|
79 | 79 | } |
80 | 80 | |
81 | 81 | if (isset($config->classmap)) { |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | include_once $config[$class]; |
326 | 326 | |
327 | 327 | }, true, // Throw exception |
328 | - true // Prepend |
|
328 | + true // Prepend |
|
329 | 329 | ); |
330 | 330 | |
331 | 331 | // Autoloading for the files helpers, hooks or functions |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | } |
339 | 339 | |
340 | 340 | }, true, |
341 | - true |
|
341 | + true |
|
342 | 342 | ); |
343 | 343 | } |
344 | 344 |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | // Now prepend another loader for the files in our class map |
317 | 317 | $config = is_array($this->classmap) ? $this->classmap : []; |
318 | 318 | |
319 | - spl_autoload_register(function ($class) use ($config) { |
|
319 | + spl_autoload_register(function($class) use ($config) { |
|
320 | 320 | |
321 | 321 | if (empty($config[$class])) { |
322 | 322 | return false; |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | // Autoloading for the files helpers, hooks or functions |
332 | 332 | $files = is_array($this->includeFiles) ? $this->includeFiles : []; |
333 | 333 | |
334 | - spl_autoload_register(function () use ($files) { |
|
334 | + spl_autoload_register(function() use ($files) { |
|
335 | 335 | |
336 | 336 | foreach ($files as $fileIdentifier => $file) { |
337 | 337 | $this->getAutoloaderFileRequire($fileIdentifier, $file); |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | |
153 | 153 | // If there is an equal sign, then we know we |
154 | - // are assigning a variable. |
|
154 | + // are assigning a variable. |
|
155 | 155 | if ($this->checkedLikeSetter($line)) { |
156 | 156 | $this->setVariable($line); |
157 | 157 | } |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | $quote = $value[0]; |
258 | 258 | |
259 | 259 | $regexPattern = sprintf( |
260 | - '/^ |
|
260 | + '/^ |
|
261 | 261 | %1$s # match a quote at the start of the value |
262 | 262 | ( # capturing sub-pattern used |
263 | 263 | (?: # we do not need to capture this |
@@ -44,14 +44,14 @@ |
||
44 | 44 | return getenv($name); |
45 | 45 | } |
46 | 46 | |
47 | - /** |
|
48 | - * Write to an environment variable. |
|
49 | - * |
|
50 | - * @param string $name |
|
51 | - * @param string $value |
|
52 | - * |
|
53 | - * @return bool |
|
54 | - */ |
|
47 | + /** |
|
48 | + * Write to an environment variable. |
|
49 | + * |
|
50 | + * @param string $name |
|
51 | + * @param string $value |
|
52 | + * |
|
53 | + * @return bool |
|
54 | + */ |
|
55 | 55 | public function write(string $name, string $value) |
56 | 56 | { |
57 | 57 | putenv("$name=$value"); |
@@ -44,14 +44,14 @@ |
||
44 | 44 | return apache_getenv($name); |
45 | 45 | } |
46 | 46 | |
47 | - /** |
|
48 | - * Write to an environment variable. |
|
49 | - * |
|
50 | - * @param string $name |
|
51 | - * @param string $value |
|
52 | - * |
|
53 | - * @return bool |
|
54 | - */ |
|
47 | + /** |
|
48 | + * Write to an environment variable. |
|
49 | + * |
|
50 | + * @param string $name |
|
51 | + * @param string $value |
|
52 | + * |
|
53 | + * @return bool |
|
54 | + */ |
|
55 | 55 | public function write(string $name, string $value) |
56 | 56 | { |
57 | 57 | return apache_setenv($name, $value); |
@@ -50,14 +50,14 @@ |
||
50 | 50 | return $this->vars[$name]; |
51 | 51 | } |
52 | 52 | |
53 | - /** |
|
54 | - * Write to an environment variable. |
|
55 | - * |
|
56 | - * @param string $name |
|
57 | - * @param string $value |
|
58 | - * |
|
59 | - * @return bool |
|
60 | - */ |
|
53 | + /** |
|
54 | + * Write to an environment variable. |
|
55 | + * |
|
56 | + * @param string $name |
|
57 | + * @param string $value |
|
58 | + * |
|
59 | + * @return bool |
|
60 | + */ |
|
61 | 61 | public function write(string $name, string $value) |
62 | 62 | { |
63 | 63 | $this->vars[$name] = $value; |