Completed
Push — master ( 106d3c...7eed6f )
by amaury
03:05
created
Tests/Functional/ModelBundle/Repository/BlockRepositoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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'),
Please login to merge, or discard this patch.
Tests/Functional/BackofficeBundle/Command/PublishElementCommandTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Tests/Functional/ModelBundle/Repository/WorkflowProfileRepositoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/Functional/UserAdminBundle/Controller/ApiControllersTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
Tests/Functional/UserAdminBundle/Controller/ApiControllersSecurityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Functional/WorkflowAdminBundle/Controller/StatusControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
Tests/Functional/ApiBundle/Controller/ApiControllersSecurityTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Tests/Functional/WorkflowAdminBundle/Controller/ApiControllersTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
Tests/Functional/MediaAdminBundle/Repository/MediaRepositoryTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -548,7 +548,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,10 +126,10 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.