pborreli преди 14 години
родител
ревизия
7d38b87696

+ 9 - 9
Admin/Admin.php

@@ -52,7 +52,7 @@ abstract class Admin extends ContainerAware
 
     /**
      * 
-     * @var string the classname label (used in the title/breadcrumb ...)
+     * @var string the label class name  (used in the title/breadcrumb ...)
      */
     protected $classnameLabel;
 
@@ -69,7 +69,7 @@ abstract class Admin extends ContainerAware
      */
     protected $formOptions = array();
 
-    // note : don't like this, but havn't find a better way to do it
+    // note : don't like this, but haven't find a better way to do it
     protected $configurationPool;
 
     protected $code;
@@ -197,7 +197,7 @@ abstract class Admin extends ContainerAware
         
         if($this->parentAssociationMapping) {
             if(!isset($this->getClassMetaData()->associationMappings[$this->parentAssociationMapping])) {
-                throw new \RuntimeException(sprintf('The value set to `relatedReflectionProperty` refer to a non existant association', $this->relatedReflectionProperty));
+                throw new \RuntimeException(sprintf('The value set to `relatedReflectionProperty` refer to a non existent association', $this->relatedReflectionProperty));
             }
             $this->parentAssociationMapping = $this->getClassMetaData()->associationMappings[$this->parentAssociationMapping];
         }
@@ -627,7 +627,7 @@ abstract class Admin extends ContainerAware
             $params[$this->getParent()->getIdParameter()] = $this->container->get('request')->get($this->getParent()->getIdParameter());
         }
 
-        // if the admin is linked to a FieldDescription (ie, embeded widget)
+        // if the admin is linked to a FieldDescription (ie, embedded widget)
         if($this->hasParentFieldDescription()) {
             $params['uniqid']  = $this->getUniqid();
             $params['code']    = $this->getCode();
@@ -672,7 +672,7 @@ abstract class Admin extends ContainerAware
     /**
      * return the reflection fields related to the classname
      *
-     * @return array the reflection fields related to the classname
+     * @return array The reflection fields related to the classname
      */
     public function getReflectionFields()
     {
@@ -680,9 +680,9 @@ abstract class Admin extends ContainerAware
     }
 
     /**
-     * return a instance of the related classname
+     * return an instance of the related classname
      *
-     * @return object a instance of the related classname
+     * @return Object An instance of the related classname
      */
     public function getNewInstance()
     {
@@ -734,7 +734,7 @@ abstract class Admin extends ContainerAware
     }
 
     /**
-     * return the target objet
+     * return the target object
      *
      * @param  $id
      * @return
@@ -1287,7 +1287,7 @@ abstract class Admin extends ContainerAware
     }
 
     /**
-     * return true if the admin has childre, false otherwise
+     * return true if the admin has children, false otherwise
      *
      * @return bool if the admin has children
      */

+ 1 - 1
Admin/FieldDescription.php

@@ -19,7 +19,7 @@ namespace Sonata\BaseApplicationBundle\Admin;
  * - list: used by the list
  * - filter: used by the list filter
  *
- * Some options are global accross the different contexts, other are
+ * Some options are global across the different contexts, other are
  * context specifics.
  *
  * Global options :

+ 4 - 4
Builder/FormBuilder.php

@@ -310,13 +310,13 @@ class FormBuilder implements FormBuilderInterface
      * The method add a new field to the provided Form, there are 4 ways to add new field :
      *
      *   - if $name is a string with no related FieldDescription, then the form will use the FieldFactory
-     *     to instanciate a new Field
+     *     to instantiate a new Field
      *   - if $name is a FormDescription, the method uses information defined in the FormDescription to
-     *     instanciate a new Field
+     *     instantiate a new Field
      *   - if $name is a FieldInterface, then a FieldDescription is created, the FieldInterface is added to
      *     the form
-     *   - if $name is a string with a related FieldDescription, then the medhod uses information defined in the
-     *     FormDescription to instanciate a new Field
+     *   - if $name is a string with a related FieldDescription, then the method uses information defined in the
+     *     FormDescription to instantiate a new Field
      *
      *
      * @param Form $form

+ 5 - 5
Datagrid/Datagrid.php

@@ -84,25 +84,25 @@ class Datagrid
         $em             = $this->getEntityManager();
         $repository     = $em->getRepository($this->getClassname());
 
-        $queryBuidler = $repository
+        $queryBuilder = $repository
             ->createQueryBuilder('o');
 
-        return $queryBuidler;
+        return $queryBuilder;
     }
 
     public function getQueryBuilder($values = array())
     {
 
-        $queryBuidler = $this->getBaseQueryBuilder();
+        $queryBuilder = $this->getBaseQueryBuilder();
 
         foreach ($this->getFilters() as $name => $filter) {
 
             $value = isset($values[$name]) ? $values[$name] : null;
 
-            $filter->apply($queryBuidler, $value);
+            $filter->apply($queryBuilder, $value);
         }
 
-        return $queryBuidler;
+        return $queryBuilder;
     }
 
     public function setClassname($classname)

+ 1 - 1
DependencyInjection/SonataBaseApplicationExtension.php

@@ -39,7 +39,7 @@ class SonataBaseApplicationExtension extends Extension
     );
     
     /**
-     * Parses the configuration to setup the admin controllers and setup rouing
+     * Parses the configuration to setup the admin controllers and setup routing
      * information. Format is following:
      * 
      * sonata_base_application:

+ 1 - 1
Form/ValueTransformer/ArrayToObjectTransformer.php

@@ -37,7 +37,7 @@ class ArrayToObjectTransformer extends Configurable implements ValueTransformerI
         $metadata   = $this->getOption('em')->getClassMetadata($class);
 
         // when the object is created the form return an array
-        // one the object is persited, the edit $array is the user instance
+        // one the object is persisted, the edit $array is the user instance
         if ($array instanceof $class)
         {
             return $array;

+ 2 - 2
Resources/public/base.js

@@ -7,10 +7,10 @@ jQuery(document).ready(function() {
 
 var BaseApplication = {
 
-    add_pretty_errors: function(subjet) {
+    add_pretty_errors: function(subject) {
 
 
-        jQuery('div.sonata-ba-field-error', subjet).each(function(index, element) {
+        jQuery('div.sonata-ba-field-error', subject).each(function(index, element) {
             var input = jQuery('input, textarea', element);
 
             var message = jQuery('div.sonata-ba-field-error-messages', element).html();

+ 4 - 4
Route/AdminPoolLoader.php

@@ -22,7 +22,7 @@ use Sonata\BaseApplicationBundle\Admin\Pool;
 class AdminPoolLoader extends FileLoader
 {
     /**
-     * @var Bundle\Soanta\BaseApplicationBundle\Admin\Pool
+     * @var Bundle\Sonata\BaseApplicationBundle\Admin\Pool
      */
     protected $pool;
 
@@ -72,11 +72,11 @@ class AdminPoolLoader extends FileLoader
     /**
      * Convert a word in to the format for a symfony action action_name => actionName
      *
-     * @param string  $word  Word to actionify
-     * @return string $word  Actionified word
+     * @param string  $word Word to actionify
+     * @return string $word Actionified word
      */
     public static function actionify($word)
     {
-        return lcfirst(str_replace(" ", "", ucwords(strtr($word, "_-", "  "))));
+        return lcfirst(str_replace(' ', '', ucwords(strtr($word, '_-', '  '))));
     }
 }

+ 1 - 2
Tool/Pager.php

@@ -11,12 +11,11 @@
 namespace Sonata\BaseApplicationBundle\Tool;
 
 /**
- * sfPager class.
+ * Pager class.
  *
  * @package    symfony
  * @subpackage addon
  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
- * @version    SVN: $Id: sfPager.class.php 27747 2010-02-08 18:02:19Z Kris.Wallsmith $
  */
 abstract class Pager implements \Iterator, \Countable
 {