@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | function($event) use ($namespace) { |
104 | 104 | $className = str_replace(' ', '', ucwords(str_replace(array('_', ':'), ' ', $event))); |
105 | 105 | |
106 | - return $namespace . $className . 'Event'; |
|
106 | + return $namespace.$className.'Event'; |
|
107 | 107 | }, |
108 | 108 | $eventNames |
109 | 109 | ); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->requestUuid |
151 | 151 | ); |
152 | 152 | } else { |
153 | - throw new \InvalidArgumentException('Unknown event type: ' . $this->eventName . '.'); |
|
153 | + throw new \InvalidArgumentException('Unknown event type: '.$this->eventName.'.'); |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | if (null !== $this->eventDispatcher && $dispatch) { |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | |
44 | 44 | foreach ($calls as $group => $types) { |
45 | 45 | foreach ($types as $type => $properties) { |
46 | - echo 'check ' . $group . ':' . $type . "\n"; |
|
46 | + echo 'check '.$group.':'.$type."\n"; |
|
47 | 47 | |
48 | - $server['HTTP_X_EVENT_KEY'] = $group . ':' . $type; |
|
49 | - $content = file_get_contents('./test/payloads/' . $group . '/' . $type . '.json'); |
|
48 | + $server['HTTP_X_EVENT_KEY'] = $group.':'.$type; |
|
49 | + $content = file_get_contents('./test/payloads/'.$group.'/'.$type.'.json'); |
|
50 | 50 | |
51 | 51 | $request = new \Symfony\Component\HttpFoundation\Request( |
52 | 52 | array(), array(), array(), array(), array(), $server, $content |
@@ -58,8 +58,8 @@ discard block |
||
58 | 58 | |
59 | 59 | echo " check event class name\n"; |
60 | 60 | |
61 | - if ($classname != trim($map[$group . ':' . $type], '\\')) { |
|
62 | - var_dump($classname, $map[$group . ':' . $type]); |
|
61 | + if ($classname != trim($map[$group.':'.$type], '\\')) { |
|
62 | + var_dump($classname, $map[$group.':'.$type]); |
|
63 | 63 | throw new \Exception('Invalid class used'); |
64 | 64 | } |
65 | 65 | |
@@ -67,17 +67,17 @@ discard block |
||
67 | 67 | |
68 | 68 | echo " check model class name\n"; |
69 | 69 | |
70 | - if (get_class($model) != trim(preg_replace('/Event/', 'Model', $map[$group . ':' . $type]), '\\')) { |
|
71 | - var_dump(get_class($model), trim(preg_replace('/Event/', 'Model', $map[$group . ':' . $type]), '\\')); |
|
70 | + if (get_class($model) != trim(preg_replace('/Event/', 'Model', $map[$group.':'.$type]), '\\')) { |
|
71 | + var_dump(get_class($model), trim(preg_replace('/Event/', 'Model', $map[$group.':'.$type]), '\\')); |
|
72 | 72 | throw new \Exception('Invalid class used'); |
73 | 73 | } |
74 | 74 | |
75 | 75 | echo " check actions\n"; |
76 | 76 | |
77 | 77 | foreach ($properties as $property) { |
78 | - $action = 'get' . str_replace(' ', '', ucfirst(str_replace('_', ' ', $property))); |
|
78 | + $action = 'get'.str_replace(' ', '', ucfirst(str_replace('_', ' ', $property))); |
|
79 | 79 | |
80 | - echo ' ' . $action . "\n"; |
|
80 | + echo ' '.$action."\n"; |
|
81 | 81 | |
82 | 82 | if (!method_exists($model, $action)) { |
83 | 83 | var_dump(get_class($model), $action); |