Browse Source

fix typos

Grégoire Paris 8 năm trước cách đây
mục cha
commit
dfe708766c

+ 3 - 3
Admin/AdminInterface.php

@@ -145,7 +145,7 @@ interface AdminInterface extends FieldDescriptionRegistryInterface
     public function generateObjectUrl($name, $object, array $parameters = array(), $absolute = false);
 
     /**
-     * Generates an url for the given parameters.
+     * Generates a url for the given parameters.
      *
      * @param string $name
      * @param array  $parameters
@@ -156,7 +156,7 @@ interface AdminInterface extends FieldDescriptionRegistryInterface
     public function generateUrl($name, array $parameters = array(), $absolute = false);
 
     /**
-     * Generates an url for the given parameters.
+     * Generates a url for the given parameters.
      *
      * @param string $name
      * @param array  $parameters
@@ -331,7 +331,7 @@ interface AdminInterface extends FieldDescriptionRegistryInterface
     /**
      * @param mixed $entity
      *
-     * @return string a string representation of the id that is save to use in an url
+     * @return string a string representation of the id that is safe to use in a url
      */
     public function getUrlsafeIdentifier($entity);
 

+ 3 - 3
Model/ModelManagerInterface.php

@@ -138,14 +138,14 @@ interface ModelManagerInterface
     public function getNormalizedIdentifier($model);
 
     /**
-     * Get the identifiers as a string that is save to use in an url.
+     * Get the identifiers as a string that is safe to use in a url.
      *
      * This is similar to getNormalizedIdentifier but guarantees an id that can
-     * be used in an URL.
+     * be used in a URL.
      *
      * @param object $model
      *
-     * @return string string representation of the id that is save to use in an url
+     * @return string string representation of the id that is safe to use in a url
      */
     public function getUrlsafeIdentifier($model);
 

+ 2 - 2
Twig/Extension/SonataAdminExtension.php

@@ -364,12 +364,12 @@ EOT;
     }
 
     /**
-     * Get the identifiers as a string that is save to use in an url.
+     * Get the identifiers as a string that is safe to use in a url.
      *
      * @param object         $model
      * @param AdminInterface $admin
      *
-     * @return string string representation of the id that is save to use in an url
+     * @return string string representation of the id that is safe to use in a url
      */
     public function getUrlsafeIdentifier($model, AdminInterface $admin = null)
     {