@@ -28,12 +28,12 @@ |
||
28 | 28 | |
29 | 29 | foreach ($assets as $asset) { |
30 | 30 | if (strpos($asset['name'], $this->url) !== false) { |
31 | - $this->testCase->assertEquals(0, $asset['duration'], 'Asset was not cached: ' . $asset['name']); |
|
31 | + $this->testCase->assertEquals(0, $asset['duration'], 'Asset was not cached: '.$asset['name']); |
|
32 | 32 | $foundAsset = true; |
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
36 | - $this->testCase->assertTrue($foundAsset, 'Unable to find asset: ' . $this->url); |
|
36 | + $this->testCase->assertTrue($foundAsset, 'Unable to find asset: '.$this->url); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | } |
40 | 40 | \ No newline at end of file |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | $log = $this->webDriver->manage()->getLog('browser'); |
15 | 15 | foreach ($log as $l) { |
16 | - $this->logger->err('Message found: ' . serialize($l)); |
|
16 | + $this->logger->err('Message found: '.serialize($l)); |
|
17 | 17 | } |
18 | 18 | $this->testCase->assertCount(0, $log); |
19 | 19 | } |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Facebook\WebDriver\WebDriverElement; |
7 | 7 | use Facebook\WebDriver\WebDriverSelect; |
8 | 8 | use Magium\NotFoundException; |
9 | -use Magium\WebDriver\FastSelectElement; |
|
10 | 9 | use Magium\WebDriver\WebDriver; |
11 | 10 | |
12 | 11 | class SetFormValue |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | public function setById($id, $value) |
31 | 31 | { |
32 | - $this->set('id:' . $id, $value); |
|
32 | + $this->set('id:'.$id, $value); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | public function set($name, $value) |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | } else { |
42 | 42 | $element = $this->webDriver->byXpath(sprintf('//label[.="%s"]', $name)); |
43 | 43 | if (!$element->getAttribute('for')) { |
44 | - throw new NotFoundException('Unable to find the "for" attribute for a label with the text: ' . $name); |
|
44 | + throw new NotFoundException('Unable to find the "for" attribute for a label with the text: '.$name); |
|
45 | 45 | } |
46 | 46 | $formElement = $this->webDriver->byId($element->getAttribute('for')); |
47 | 47 | } |
@@ -31,10 +31,10 @@ |
||
31 | 31 | |
32 | 32 | public function configureDi(Di $di) |
33 | 33 | { |
34 | - $di->instanceManager()->addSharedInstance($this->configurationReader, get_class($this->configurationReader)); |
|
35 | - $di->instanceManager()->addSharedInstance($this->classConfigurationReader, get_class($this->classConfigurationReader)); |
|
36 | - $di->instanceManager()->addSharedInstance($this->environmentConfigurationReader, get_class($this->environmentConfigurationReader)); |
|
37 | - $di->instanceManager()->addSharedInstance($this, get_class($this)); |
|
34 | + $di->instanceManager()->addSharedInstance($this->configurationReader, get_class($this->configurationReader)); |
|
35 | + $di->instanceManager()->addSharedInstance($this->classConfigurationReader, get_class($this->classConfigurationReader)); |
|
36 | + $di->instanceManager()->addSharedInstance($this->environmentConfigurationReader, get_class($this->environmentConfigurationReader)); |
|
37 | + $di->instanceManager()->addSharedInstance($this, get_class($this)); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | public function configureObject(ConfigurableObjectInterface $obj) |
@@ -22,7 +22,7 @@ |
||
22 | 22 | |
23 | 23 | public function interpolate($string) |
24 | 24 | { |
25 | - $this->logger->info('Interpolating string: ' . $string); |
|
25 | + $this->logger->info('Interpolating string: '.$string); |
|
26 | 26 | $matches = null; |
27 | 27 | // Finding {{product->setEntityId(123)->load()}} type methods |
28 | 28 | if (preg_match('/\{\{([^{]+)\}\}/', $string, $matches)) { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | foreach ($classes as $class) { |
14 | 14 | |
15 | - $variablePrefix = 'MAGIUM_' . str_replace('\\', '_', strtoupper($class)) . '_'; |
|
15 | + $variablePrefix = 'MAGIUM_'.str_replace('\\', '_', strtoupper($class)).'_'; |
|
16 | 16 | |
17 | 17 | // Fixes https://github.com/magium/Magium/issues/114 |
18 | 18 | $props = array_merge($_SERVER, $_ENV); |