فهرست منبع

Applied fixes from StyleCI (#3752)

Sullivan SENECHAL 9 سال پیش
والد
کامیت
813d987b64

+ 1 - 1
Admin/Admin.php

@@ -3029,7 +3029,7 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
 
     /**
      * Get the list of actions that can be accessed directly from the dashboard.
-     * 
+     *
      * @return array
      */
     public function getDashboardActions()

+ 1 - 1
Form/FormMapper.php

@@ -179,7 +179,7 @@ class FormMapper extends BaseGroupedMapper
      * @param string $group          The group to delete
      * @param string $tab            The tab the group belongs to, defaults to 'default'
      * @param bool   $deleteEmptyTab Whether or not the Tab should be deleted, when the deleted group leaves the tab empty after deletion
-     * 
+     *
      * @return $this
      */
     public function removeGroup($group, $tab = 'default', $deleteEmptyTab = false)

+ 1 - 1
Tests/Admin/AdminTest.php

@@ -1612,7 +1612,7 @@ class AdminTest extends \PHPUnit_Framework_TestCase
 
         $datagridBuilder->expects($this->exactly(3))
             ->method('addFilter')
-            ->will($this->returnCallback(function ($datagrid, $type = null, $fieldDescription, AdminInterface $admin) {
+            ->will($this->returnCallback(function ($datagrid, $type, $fieldDescription, AdminInterface $admin) {
                 $admin->addFilterFieldDescription($fieldDescription->getName(), $fieldDescription);
                 $fieldDescription->mergeOption('field_options', array('required' => false));
             }));

+ 1 - 1
Tests/Form/Widget/FormSonataFilterChoiceWidgetTest.php

@@ -85,7 +85,7 @@ class FormSonataFilterChoiceWidgetTest extends BaseWidgetTest
 
         $mock->expects($this->exactly(3))
             ->method('trans')
-            ->will($this->returnCallback(function ($arg) { return $arg;})
+            ->will($this->returnCallback(function ($arg) { return $arg; })
             );
 
         $extensions = parent::getExtensions();

+ 9 - 9
Tests/Twig/Extension/SonataAdminExtensionTest.php

@@ -537,7 +537,7 @@ class SonataAdminExtensionTest extends \PHPUnit_Framework_TestCase
                 array('editable' => false),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-boolean" objectId="12345">
     <span
         class="x-editable"
@@ -558,7 +558,7 @@ EOT
                 array('editable' => true),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-boolean" objectId="12345">
     <span
         class="x-editable"
@@ -578,7 +578,7 @@ EOT
                 array('editable' => true),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-boolean" objectId="12345">
     <span
         class="x-editable"
@@ -746,7 +746,7 @@ EOT
                     'Status3' => '<b>Alias3</b>',
                 ), 'multiple' => true), ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-choice" objectId="12345">
     <span
         class="x-editable"
@@ -767,7 +767,7 @@ EOT
                 array('editable' => true),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-choice" objectId="12345">
     <span
         class="x-editable"
@@ -793,7 +793,7 @@ EOT
                 ),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-choice" objectId="12345">
     <span
         class="x-editable"
@@ -820,7 +820,7 @@ EOT
                 ),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-choice" objectId="12345">
     <span
         class="x-editable"
@@ -846,7 +846,7 @@ EOT
                 ),
             ),
             array(
-                <<<EOT
+                <<<'EOT'
 <td class="sonata-ba-list-field sonata-ba-list-field-choice" objectId="12345">
     <span
         class="x-editable"
@@ -1744,7 +1744,7 @@ EOT
 
         $this->environment->enableDebug();
         $this->assertSame(
-            $this->removeExtraWhitespace(<<<EOT
+            $this->removeExtraWhitespace(<<<'EOT'
 <!-- START
     fieldName: fd_name
     template: SonataAdminBundle:CRUD:base_list_field.html.twig

+ 1 - 1
Twig/Extension/SonataAdminExtension.php

@@ -186,7 +186,7 @@ class SonataAdminExtension extends \Twig_Extension
         $content = $template->render($parameters);
 
         if ($environment->isDebug()) {
-            $commentTemplate = <<<EOT
+            $commentTemplate = <<<'EOT'
 
 <!-- START
     fieldName: %s