@@ -65,17 +65,17 @@ discard block |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | if (!$createFunction) { |
68 | - $query = 'local ' . implode(', ', array_keys($params)) . ' = ...' . PHP_EOL . $query; |
|
68 | + $query = 'local '.implode(', ', array_keys($params)).' = ...'.PHP_EOL.$query; |
|
69 | 69 | return $this->client->evaluate($query, ...array_values($params)); |
70 | 70 | } |
71 | 71 | |
72 | - $name = 'evaluate_' . md5($query . json_encode(array_keys($params))); |
|
72 | + $name = 'evaluate_'.md5($query.json_encode(array_keys($params))); |
|
73 | 73 | try { |
74 | 74 | return $this->client->call($name, ...array_values($params)); |
75 | 75 | } catch (RequestFailed $e) { |
76 | 76 | if ($e->getMessage() == "Procedure '$name' is not defined") { |
77 | 77 | $body = implode(PHP_EOL, [ |
78 | - "function(" . implode(', ', array_keys($params)) . ")", |
|
78 | + "function(".implode(', ', array_keys($params)).")", |
|
79 | 79 | $query, |
80 | 80 | "end", |
81 | 81 | ]); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | return $this->middleware->getChanges(); |
132 | 132 | } |
133 | 133 | |
134 | - public function getClassSpace(int|string $class): int|string |
|
134 | + public function getClassSpace(int | string $class): int | string |
|
135 | 135 | { |
136 | 136 | if (!is_integer($class) && class_exists($class)) { |
137 | 137 | if (!array_key_exists($class, $this->classNames)) { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | return $class; |
144 | 144 | } |
145 | 145 | |
146 | - public function getSpace(int|string $id): Space |
|
146 | + public function getSpace(int | string $id): Space |
|
147 | 147 | { |
148 | 148 | if (!count($this->spaces)) { |
149 | 149 | $this->setSchemaId(0); |