Reorganize code for PSR and others code prettify.
This commit is contained in:
@ -27,7 +27,8 @@ class Neuron {
|
||||
*
|
||||
* @param array $data
|
||||
*/
|
||||
public function __construct(...$data) {
|
||||
public function __construct(...$data)
|
||||
{
|
||||
if (count($data) === 1 &&
|
||||
isset($data[0]) &&
|
||||
(is_array($data[0]) ||
|
||||
@ -42,9 +43,10 @@ class Neuron {
|
||||
* __get
|
||||
*
|
||||
* @param string $index
|
||||
* @return mixed
|
||||
* @return null
|
||||
*/
|
||||
public function __get(string $index) : mixed {
|
||||
public function __get(string $index): null
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user