@@ -221,8 +221,7 @@ |
||
221 | 221 | strpos($error->message, $message) === 0 && ('' === $file ?: strpos($error->location, $file) === 0), |
222 | 222 | $negate |
223 | 223 | )) { |
224 | - case 1: |
|
225 | - throw new \Exception(sprintf('The "%s" error found, but should not be.', $message)); |
|
224 | + case 1 : throw new \Exception(sprintf('The "%s" error found, but should not be.', $message)); |
|
226 | 225 | |
227 | 226 | case 2: |
228 | 227 | throw new \Exception(sprintf('The "%s" error not found, but should be.', $message)); |
@@ -155,7 +155,7 @@ |
||
155 | 155 | $entity = entity_create($entityType, $values); |
156 | 156 | |
157 | 157 | entity_save($entityType, $entity); |
158 | - list($entityId, , $bundle) = entity_extract_ids($entityType, $entity); |
|
158 | + list($entityId,, $bundle) = entity_extract_ids($entityType, $entity); |
|
159 | 159 | |
160 | 160 | return [$entityId, $entityType, $bundle]; |
161 | 161 | } |
@@ -300,9 +300,9 @@ |
||
300 | 300 | $replace = ''; |
301 | 301 | } else { |
302 | 302 | // Copy the file. |
303 | - copy(str_replace('Cores', 'JavaScript', __DIR__) . '/' . $file, $destination); |
|
303 | + copy(str_replace('Cores', 'JavaScript', __DIR__).'/'.$file, $destination); |
|
304 | 304 | // Find an unique line and append injection. |
305 | - $replace = $search . $injection; |
|
305 | + $replace = $search.$injection; |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | file_put_contents($target, str_replace($search, $replace, file_get_contents($target))); |