@@ -34,6 +34,9 @@ |
||
34 | 34 | return $this->execute($action, $source, $changeSet, true); |
35 | 35 | } |
36 | 36 | |
37 | + /** |
|
38 | + * @param string $source |
|
39 | + */ |
|
37 | 40 | public function executeReal(Action $action, $source, $arguments) |
38 | 41 | { |
39 | 42 | return $this->execute($action, $source, $arguments, false); |
@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | if (!$virtual) { |
48 | 48 | list($executor, $method) = explode(':', $action->getExecutor()); |
49 | 49 | |
50 | - $executor = 'AppBundle\Action\Executor\\' . ucfirst($executor); |
|
50 | + $executor = 'AppBundle\Action\Executor\\'.ucfirst($executor); |
|
51 | 51 | |
52 | 52 | if (!class_exists($executor)) { |
53 | - throw new \Exception('Unknown executor: ' . $executor); |
|
53 | + throw new \Exception('Unknown executor: '.$executor); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** @var ExecutorInterface $executor */ |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | if (!method_exists($executor, $method)) { |
66 | - throw new \Exception('Unknown executor method: ' . $action->getExecutor().'()'); |
|
66 | + throw new \Exception('Unknown executor method: '.$action->getExecutor().'()'); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | $executor->setParameters($changeSet); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } catch (\Exception $exception) { |
74 | 74 | $result = $exception->getMessage(); |
75 | 75 | } |
76 | - $changeSet['result']=$result; |
|
76 | + $changeSet['result'] = $result; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | $state = new ActionHistory(); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | public function say(Action $action) |
11 | 11 | { |
12 | - $args = json_decode($action->getArguments(), true); |
|
12 | + $args = json_decode($action->getArguments(), true); |
|
13 | 13 | |
14 | 14 | if (isset($this->parameters['text'])) { |
15 | 15 | $text = $this->parameters['text']; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | urlencode($text)."&tl=De_de"); |
37 | 37 | file_put_contents($file, $res); |
38 | 38 | |
39 | - $result= 'Saved in cache'; |
|
39 | + $result = 'Saved in cache'; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $res = exec('which mplayer'); |