@@ -48,7 +48,7 @@ |
||
48 | 48 | public function provideLanguageAndVersionListAndSiteId() |
49 | 49 | { |
50 | 50 | return array( |
51 | - array(0,'fake_component', 'en', '2'), |
|
51 | + array(0, 'fake_component', 'en', '2'), |
|
52 | 52 | array(2, 'tiny_mce_wysiwyg', 'fr', '2'), |
53 | 53 | array(2, 'tiny_mce_wysiwyg', 'en', '2'), |
54 | 54 | array(1, 'menu', 'en', '2'), |
@@ -28,13 +28,13 @@ discard block |
||
28 | 28 | |
29 | 29 | $commandTester->execute(array('command' => $command->getName())); |
30 | 30 | $this->assertRegExp( |
31 | - '/Publishing '.$entityName.'s for siteId ' . $siteId . '/', |
|
31 | + '/Publishing '.$entityName.'s for siteId '.$siteId.'/', |
|
32 | 32 | $commandTester->getDisplay() |
33 | 33 | ); |
34 | 34 | |
35 | 35 | foreach ($elements as $element) { |
36 | 36 | $this->assertRegExp( |
37 | - '/-> ' . $element->getName() . ' \(v' . $element->getVersion() . ' ' . $element->getLanguage() . '\) published/', |
|
37 | + '/-> '.$element->getName().' \(v'.$element->getVersion().' '.$element->getLanguage().'\) published/', |
|
38 | 38 | $commandTester->getDisplay() |
39 | 39 | ); |
40 | 40 | } |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | |
61 | 61 | $commandTester->execute(array('command' => $command->getName())); |
62 | 62 | $this->assertRegExp( |
63 | - '/Unpublishing '.$entityName.'s for siteId ' . $siteId . '/', |
|
63 | + '/Unpublishing '.$entityName.'s for siteId '.$siteId.'/', |
|
64 | 64 | $commandTester->getDisplay() |
65 | 65 | ); |
66 | 66 | |
67 | 67 | foreach ($elements as $element) { |
68 | 68 | $this->assertRegExp( |
69 | - '/-> ' . $element->getName() . ' \(v' . $element->getVersion() . ' ' . $element->getLanguage() . '\) unpublished/', |
|
69 | + '/-> '.$element->getName().' \(v'.$element->getVersion().' '.$element->getLanguage().'\) unpublished/', |
|
70 | 70 | $commandTester->getDisplay() |
71 | 71 | ); |
72 | 72 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | return array( |
60 | 60 | array('draft', 'toTranslate', false), |
61 | - array('draft', 'published' , true), |
|
61 | + array('draft', 'published', true), |
|
62 | 62 | ); |
63 | 63 | } |
64 | 64 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function testApi($url, $method = 'GET') |
21 | 21 | { |
22 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
22 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
23 | 23 | |
24 | 24 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
25 | 25 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function testApi($url, $method = 'GET') |
24 | 24 | { |
25 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
25 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
26 | 26 | |
27 | 27 | $this->assertEquals(403, $this->client->getResponse()->getStatusCode()); |
28 | 28 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $status = $this->statusRepository->findOneByInitial(); |
35 | 35 | |
36 | - $this->client->request('DELETE', '/api/status/' . $status->getId() . '/delete'); |
|
36 | + $this->client->request('DELETE', '/api/status/'.$status->getId().'/delete'); |
|
37 | 37 | |
38 | 38 | $this->assertSame(403, $this->client->getResponse()->getStatusCode()); |
39 | 39 | $this->assertContains('open_orchestra_api.status.delete_not_granted', $this->client->getResponse()->getContent()); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function testApi($url, $method = 'GET') |
24 | 24 | { |
25 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
25 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
26 | 26 | |
27 | 27 | $this->assertEquals(403, $this->client->getResponse()->getStatusCode()); |
28 | 28 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function testApi($url, $method = 'GET') |
21 | 21 | { |
22 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
22 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
23 | 23 | |
24 | 24 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
25 | 25 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
@@ -548,7 +548,7 @@ |
||
548 | 548 | /** |
549 | 549 | * @param string $condition |
550 | 550 | * |
551 | - * @return array |
|
551 | + * @return string |
|
552 | 552 | */ |
553 | 553 | protected function replaceKeywordLabelById($condition) |
554 | 554 | { |
@@ -126,10 +126,10 @@ |
||
126 | 126 | */ |
127 | 127 | public function providePaginateConfiguration() |
128 | 128 | { |
129 | - $mapping = array(); |
|
130 | - $conf1 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, null); |
|
131 | - $conf2 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array('label' => 'dolor', 'language' => 'en')); |
|
132 | - $conf3 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array('type' => 'pdf')); |
|
129 | + $mapping = array(); |
|
130 | + $conf1 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, null); |
|
131 | + $conf2 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array('label' => 'dolor', 'language' => 'en')); |
|
132 | + $conf3 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array('type' => 'pdf')); |
|
133 | 133 | |
134 | 134 | return array( |
135 | 135 | 'No criteria' => array($conf1, 6, 6), |