Completed
Push — master ( 2bbac1...dfe03e )
by Kirill
04:01
created
src/AppBundle/Action/Service.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/AppBundle/Action/Executor/Saytext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.