@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function load(ObjectManager $manager) |
44 | 44 | { |
45 | - for ($i=0; self::NUMBER_OF_NODE > $i; $i++) { |
|
46 | - $name = 'node' . $i; |
|
47 | - $pattern = '/node' . $i; |
|
48 | - $content = 'Node ' . $i . 'on ' . self::NUMBER_OF_NODE; |
|
45 | + for ($i = 0; self::NUMBER_OF_NODE > $i; $i++) { |
|
46 | + $name = 'node'.$i; |
|
47 | + $pattern = '/node'.$i; |
|
48 | + $content = 'Node '.$i.'on '.self::NUMBER_OF_NODE; |
|
49 | 49 | $this->generateSimpleNode($name, 'en', $manager, $content, $pattern); |
50 | 50 | $this->generateSimpleNode($name, 'fr', $manager, $content, $pattern); |
51 | 51 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $titleBlock = new Block(); |
79 | 79 | $titleBlock->setClass('block-body-header'); |
80 | 80 | $titleBlock->setComponent(TinyMCEWysiwygStrategy::TINYMCEWYSIWYG); |
81 | - $titleBlock->setAttributes(array('htmlContent' => '<h1>' . $name . '</h1>')); |
|
81 | + $titleBlock->setAttributes(array('htmlContent' => '<h1>'.$name.'</h1>')); |
|
82 | 82 | |
83 | 83 | $contentBlock = new Block(); |
84 | 84 | $contentBlock->setClass('block-body'); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $tokenReponse = json_decode($this->client->getResponse()->getContent(), true); |
37 | 37 | $refreshToken = $tokenReponse['refresh_token']; |
38 | 38 | |
39 | - $this->client->request('GET', '/oauth/access_token?grant_type=refresh_token&refresh_token=' . $refreshToken, array(), array(), array('PHP_AUTH_USER' => 'test_key', 'PHP_AUTH_PW' => 'test_secret')); |
|
39 | + $this->client->request('GET', '/oauth/access_token?grant_type=refresh_token&refresh_token='.$refreshToken, array(), array(), array('PHP_AUTH_USER' => 'test_key', 'PHP_AUTH_PW' => 'test_secret')); |
|
40 | 40 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
41 | 41 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
42 | 42 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $mediaFolderRepository = static::$kernel->getContainer()->get('open_orchestra_media.repository.media_folder'); |
72 | 72 | $mediaFolder = $mediaFolderRepository->findOneByName('Images folder'); |
73 | 73 | |
74 | - $url = '/admin/folder/form/' . $mediaFolder->getId(); |
|
74 | + $url = '/admin/folder/form/'.$mediaFolder->getId(); |
|
75 | 75 | $crawler = $this->client->request('GET', $url); |
76 | 76 | |
77 | 77 | return $crawler; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | */ |
32 | 32 | public function testMediaForms($form) |
33 | 33 | { |
34 | - $url = '/admin/media/' . $this->media->getId() . '/' . $form; |
|
34 | + $url = '/admin/media/'.$this->media->getId().'/'.$form; |
|
35 | 35 | |
36 | 36 | $this->client->request('GET', $url); |
37 | 37 |
@@ -56,11 +56,11 @@ |
||
56 | 56 | $descriptionEntity = $this->getDescriptionColumnEntity(); |
57 | 57 | |
58 | 58 | return array( |
59 | - array($descriptionEntity, null, null, 0 ,5 , 2), |
|
60 | - array($descriptionEntity, $this->generateSearchProvider('validator'), null, 0 ,5 , 1), |
|
61 | - array($descriptionEntity, $this->generateSearchProvider('contributor'), null, 0 ,5 , 1), |
|
62 | - array($descriptionEntity, $this->generateSearchProvider('fakeName'), null, 0 ,5 , 0), |
|
63 | - array($descriptionEntity, $this->generateSearchProvider('', 'validator'), null, 0 ,5 , 1), |
|
59 | + array($descriptionEntity, null, null, 0, 5, 2), |
|
60 | + array($descriptionEntity, $this->generateSearchProvider('validator'), null, 0, 5, 1), |
|
61 | + array($descriptionEntity, $this->generateSearchProvider('contributor'), null, 0, 5, 1), |
|
62 | + array($descriptionEntity, $this->generateSearchProvider('fakeName'), null, 0, 5, 0), |
|
63 | + array($descriptionEntity, $this->generateSearchProvider('', 'validator'), null, 0, 5, 1), |
|
64 | 64 | ); |
65 | 65 | } |
66 | 66 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function testApi($url) |
20 | 20 | { |
21 | - $this->client->request('GET', $url . '?access_token=' . $this->getAccessToken()); |
|
21 | + $this->client->request('GET', $url.'?access_token='.$this->getAccessToken()); |
|
22 | 22 | |
23 | 23 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
24 | 24 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
@@ -56,11 +56,11 @@ discard block |
||
56 | 56 | $descriptionEntity = $this->getDescriptionColumnEntity(); |
57 | 57 | |
58 | 58 | return array( |
59 | - array($descriptionEntity, null, null, 0 ,5 , 5), |
|
60 | - array($descriptionEntity, $this->generateSearchProvider('group'), null, 0 ,5 , 5), |
|
61 | - array($descriptionEntity, $this->generateSearchProvider('', 'group'), null, 0 ,5 , 5), |
|
62 | - array($descriptionEntity, $this->generateSearchProvider('', 'fakeGroup'), null, 0 ,5 , 0), |
|
63 | - array($descriptionEntity, $this->generateSearchProvider('Demo'), null, 0 ,5 , 1), |
|
59 | + array($descriptionEntity, null, null, 0, 5, 5), |
|
60 | + array($descriptionEntity, $this->generateSearchProvider('group'), null, 0, 5, 5), |
|
61 | + array($descriptionEntity, $this->generateSearchProvider('', 'group'), null, 0, 5, 5), |
|
62 | + array($descriptionEntity, $this->generateSearchProvider('', 'fakeGroup'), null, 0, 5, 0), |
|
63 | + array($descriptionEntity, $this->generateSearchProvider('Demo'), null, 0, 5, 1), |
|
64 | 64 | ); |
65 | 65 | } |
66 | 66 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * @return array |
103 | 103 | */ |
104 | - public function provideColumnsAndSearchAndCount(){ |
|
104 | + public function provideColumnsAndSearchAndCount() { |
|
105 | 105 | $descriptionEntity = $this->getDescriptionColumnEntity(); |
106 | 106 | |
107 | 107 | return array( |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | $descriptionEntity = $this->getDescriptionColumnEntity(); |
57 | 57 | |
58 | 58 | return array( |
59 | - array(false, array(), null, 0 ,1 , 1), |
|
60 | - array(true, array(), null, 0 ,2 , 1), |
|
59 | + array(false, array(), null, 0, 1, 1), |
|
60 | + array(true, array(), null, 0, 2, 1), |
|
61 | 61 | array(false, $descriptionEntity, $this->generateSearchProvider(array('site_id' => '2'), 'demo'), null, null, 1), |
62 | 62 | array(false, $descriptionEntity, $this->generateSearchProvider(array('site_id' => '1'), 'demo'), null, null, 0), |
63 | 63 | array(false, $descriptionEntity, $this->generateSearchProvider(array('site_id' => '1', 'name' => 'demo')), null, null, 0), |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | $descriptionEntity = $this->getDescriptionColumnEntity(); |
91 | 91 | |
92 | 92 | return array( |
93 | - array(array(), $this->generateSearchProvider(array('deleted' => false)), 0 ,1 , 1), |
|
94 | - array(array(), $this->generateSearchProvider(array('deleted' => true)), 0 ,1 , 1), |
|
93 | + array(array(), $this->generateSearchProvider(array('deleted' => false)), 0, 1, 1), |
|
94 | + array(array(), $this->generateSearchProvider(array('deleted' => true)), 0, 1, 1), |
|
95 | 95 | array($descriptionEntity, $this->generateSearchProvider(array('deleted' => false, 'site_id' => '2'), 'demo'), null, null, 1), |
96 | 96 | array($descriptionEntity, $this->generateSearchProvider(array('deleted' => false, 'site_id' => '1'), 'demo'), null, null, 0), |
97 | 97 | array($descriptionEntity, $this->generateSearchProvider(array('deleted' => false, 'site_id' => '1', 'name' => 'demo')), null, null, 0), |
@@ -128,7 +128,7 @@ |
||
128 | 128 | } |
129 | 129 | if (count($nodes) > 1) { |
130 | 130 | for ($i = 1; $i < count($nodes); $i++) { |
131 | - $this->assertGreaterThan($nodes[$i]->getVersion(), $nodes[$i-1]->getVersion()); |
|
131 | + $this->assertGreaterThan($nodes[$i]->getVersion(), $nodes[$i - 1]->getVersion()); |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 | } |