Selaa lähdekoodia

Applied fixes from StyleCI (#4005)

Sullivan SENECHAL 8 vuotta sitten
vanhempi
commit
d70696dc3b

+ 1 - 1
Admin/Admin.php

@@ -18,7 +18,7 @@ namespace Sonata\AdminBundle\Admin;
 );
 
 /**
- * @deprecated since version 3.1, to be removed in 4.0. Use Sonata\AdminBundle\AbstractAdmin instead.
+ * @deprecated since version 3.1, to be removed in 4.0. Use Sonata\AdminBundle\AbstractAdmin instead
  *
  * @author  Thomas Rabaix <thomas.rabaix@sonata-project.org>
  */

+ 1 - 1
Admin/AdminExtension.php

@@ -18,7 +18,7 @@ namespace Sonata\AdminBundle\Admin;
 );
 
 /**
- * @deprecated since version 3.1, to be removed in 4.0. Use Sonata\AdminBundle\AbstractAdminExtension instead.
+ * @deprecated since version 3.1, to be removed in 4.0. Use Sonata\AdminBundle\AbstractAdminExtension instead
  *
  * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  */

+ 1 - 1
Admin/AdminHelper.php

@@ -225,7 +225,7 @@ class AdminHelper
      *
      * @return string
      *
-     * @deprecated Deprecated since version 3.1. Use \Doctrine\Common\Inflector\Inflector::classify() instead.
+     * @deprecated Deprecated since version 3.1. Use \Doctrine\Common\Inflector\Inflector::classify() instead
      */
     public function camelize($property)
     {

+ 2 - 2
Admin/AdminInterface.php

@@ -216,13 +216,13 @@ interface AdminInterface
     /**
      * @return Request
      *
-     * @throws \RuntimeException if no request is set.
+     * @throws \RuntimeException if no request is set
      */
     public function getRequest();
 
     /**
      * @return bool true if a request object is linked to this Admin, false
-     *              otherwise.
+     *              otherwise
      */
     public function hasRequest();
 

+ 1 - 1
Admin/BaseFieldDescription.php

@@ -423,7 +423,7 @@ abstract class BaseFieldDescription implements FieldDescriptionInterface
      *
      * @return string
      *
-     * @deprecated Deprecated since version 3.1. Use \Doctrine\Common\Inflector\Inflector::classify() instead.
+     * @deprecated Deprecated since version 3.1. Use \Doctrine\Common\Inflector\Inflector::classify() instead
      */
     public static function camelize($property)
     {

+ 1 - 1
Controller/CRUDController.php

@@ -843,7 +843,7 @@ class CRUDController extends Controller
      *
      * @return Response|RedirectResponse
      *
-     * @throws AccessDeniedException If access is not granted.
+     * @throws AccessDeniedException If access is not granted
      * @throws NotFoundHttpException If the object does not exist or the ACL is not enabled
      */
     public function aclAction($id = null)

+ 1 - 1
Controller/CoreController.php

@@ -121,7 +121,7 @@ class CoreController extends Controller
      * This method is compatible with both Symfony 2.3 and Symfony 3
      *
      * @deprecated Use the Request action argument. This method will be removed
-     *             in SonataAdminBundle 4.0 and the action methods adjusted.
+     *             in SonataAdminBundle 4.0 and the action methods adjusted
      *
      * @return Request
      */

+ 1 - 1
Datagrid/SimplePager.php

@@ -106,7 +106,7 @@ class SimplePager extends Pager
     /**
      * {@inheritdoc}
      *
-     * @throws \RuntimeException the QueryBuilder is uninitialized.
+     * @throws \RuntimeException the QueryBuilder is uninitialized
      */
     public function init()
     {

+ 2 - 2
Util/AdminObjectAclData.php

@@ -172,7 +172,7 @@ class AdminObjectAclData
      *
      * @return AdminObjectAclData
      *
-     * @deprecated Deprecated since version 3.0. Use setAclUsersForm() instead.
+     * @deprecated Deprecated since version 3.0. Use setAclUsersForm() instead
      */
     public function setForm(Form $form)
     {
@@ -186,7 +186,7 @@ class AdminObjectAclData
      *
      * @return Form
      *
-     * @deprecated Deprecated since version 3.0. Use getAclUsersForm() instead.
+     * @deprecated Deprecated since version 3.0. Use getAclUsersForm() instead
      */
     public function getForm()
     {

+ 2 - 2
Util/AdminObjectAclManipulator.php

@@ -68,7 +68,7 @@ class AdminObjectAclManipulator
      *
      * @return Form
      *
-     * @deprecated Deprecated since version 3.0. Use createAclUsersForm() instead.
+     * @deprecated Deprecated since version 3.0. Use createAclUsersForm() instead
      */
     public function createForm(AdminObjectAclData $data)
     {
@@ -142,7 +142,7 @@ class AdminObjectAclManipulator
      *
      * @param AdminObjectAclData $data
      *
-     * @deprecated Deprecated since version 3.0. Use updateAclUsers() instead.
+     * @deprecated Deprecated since version 3.0. Use updateAclUsers() instead
      */
     public function updateAcl(AdminObjectAclData $data)
     {