Robert 11 年 前
コミット
5197cd5972
2 ファイル変更13 行追加11 行削除
  1. 10 8
      src/ORM/Registry/DefaultRegistry.php
  2. 3 3
      src/ORM/TableRegistry.php

+ 10 - 8
src/ORM/Registry/DefaultRegistry.php

@@ -87,7 +87,8 @@ class DefaultRegistry implements RegistryInterface
         }
         if (isset($this->_instances[$alias])) {
             throw new RuntimeException(sprintf(
-                'You cannot configure "%s", it has already been constructed.', $alias
+                'You cannot configure "%s", it has already been constructed.',
+                $alias
             ));
         }
         return $this->_config[$alias] = $options;
@@ -132,7 +133,8 @@ class DefaultRegistry implements RegistryInterface
         if (isset($this->_instances[$alias])) {
             if (!empty($options) && $this->_options[$alias] !== $options) {
                 throw new RuntimeException(sprintf(
-                    'You cannot configure "%s", it already exists in the registry.', $alias
+                    'You cannot configure "%s", it already exists in the registry.',
+                    $alias
                 ));
             }
             return $this->_instances[$alias];
@@ -186,7 +188,7 @@ class DefaultRegistry implements RegistryInterface
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     public function exists($alias)
     {
@@ -194,7 +196,7 @@ class DefaultRegistry implements RegistryInterface
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     public function set($alias, Table $object)
     {
@@ -202,7 +204,7 @@ class DefaultRegistry implements RegistryInterface
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     public function clear()
     {
@@ -225,13 +227,13 @@ class DefaultRegistry implements RegistryInterface
     }
 
     /**
-     * @inheritDoc
+     * {@inheritDoc}
      */
     public function remove($alias)
     {
         unset(
-            $this->_instances[$alias], 
-            $this->_config[$alias], 
+            $this->_instances[$alias],
+            $this->_config[$alias],
             $this->_fallbacked[$alias]
         );
     }

+ 3 - 3
src/ORM/TableRegistry.php

@@ -70,7 +70,7 @@ class TableRegistry
     /**
      * Sets and returns singleton instance of Registry.
      *
-     * @param \Cake\ORM\Registry\RegistryInterface $instance
+     * @param \Cake\ORM\Registry\RegistryInterface $instance Instance of registry to set.
      * @return \Cake\ORM\Registry\RegistryInterface
      */
     public static function instance(RegistryInterface $instance = null)
@@ -89,8 +89,8 @@ class TableRegistry
     /**
      * Proxy for static calls on a singleton.
      *
-     * @param string $name
-     * @param array $arguments
+     * @param string $name Method name.
+     * @param array $arguments Method arguments.
      * @return mixed
      */
     public static function __callStatic($name, $arguments)