Completed
Push — master ( 214c62...9adc1b )
by Pavel
03:02
created
src/Bankiru/Api/Doctrine/Configuration.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     /**
82 82
      * Returns class cache configuration
83 83
      *
84
-     * @param $class
84
+     * @param string $class
85 85
      *
86 86
      * @return array|null Null if cache is not enabled for this class (use implementation defaults)
87 87
      */
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Mapping/EntityMetadata.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
         return $this->identifier;
126 126
     }
127 127
 
128
+    /**
129
+     * @param string[] $identifier
130
+     */
128 131
     public function setIdentifier($identifier)
129 132
     {
130 133
         $this->identifier            = $identifier;
@@ -345,6 +348,9 @@  discard block
 block discarded – undo
345 348
         return $this->associations[$fieldName];
346 349
     }
347 350
 
351
+    /**
352
+     * @param string $customRepositoryClassName
353
+     */
348 354
     public function setCustomRepositoryClass($customRepositoryClassName)
349 355
     {
350 356
         $this->repositoryClass = $customRepositoryClassName;
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/UnitOfWork.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
     /**
88
-     * @param $className
88
+     * @param string $className
89 89
      *
90 90
      * @return EntityPersister
91 91
      */
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     }
143 143
 
144 144
     /**
145
-     * @param             $className
145
+     * @param             string $className
146 146
      * @param \stdClass   $data
147 147
      * @param object|null $unmanagedProxy
148 148
      *
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Hydration/EntityHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
                     $this->manager->getConfiguration()
126 126
                                   ->getTypeRegistry()
127 127
                                   ->get($targetMetadata->getTypeOfField($targetIdName));
128
-                $identifiers    = [$targetIdName => $type->fromApiValue($value)];
128
+                $identifiers = [$targetIdName => $type->fromApiValue($value)];
129 129
             }
130 130
 
131 131
             return $targetPersister->getToOneEntity($mapping, $entity, $identifiers);
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Proxy/ProxyFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $wakeupProxy = $classMetadata->getReflectionClass()->hasMethod('__wakeup');
91 91
 
92
-        return function (Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) {
92
+        return function(Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) {
93 93
             $initializer = $proxy->__getInitializer();
94 94
             $cloner      = $proxy->__getCloner();
95 95
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     private function createCloner(ApiMetadata $classMetadata, ApiPersister $persister)
132 132
     {
133
-        return function (Proxy $proxy) use ($classMetadata, $persister) {
133
+        return function(Proxy $proxy) use ($classMetadata, $persister) {
134 134
             if ($proxy->__isInitialized()) {
135 135
                 return;
136 136
             }
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/ApiEntityCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      * @param ApiMetadata $metadata
80 80
      * @param array       $identifiers
81 81
      *
82
-     * @return mixed
82
+     * @return string
83 83
      */
84 84
     private function getEntityKey(ApiMetadata $metadata, array $identifiers)
85 85
     {
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Rpc/Method/EntityMethodProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return $this->provider->getMethod($method);
46 46
         }
47 47
 
48
-        return $this->entityPath.$this->pathSeparator.$method;
48
+        return $this->entityPath . $this->pathSeparator . $method;
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Persister/ApiPersister.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 /** @var EntityMetadata $target */
111 111
                 $target = $this->manager->getClassMetadata($mapping['target']);
112 112
 
113
-                $converter = function ($value) use ($target) {
113
+                $converter = function($value) use ($target) {
114 114
                     if (!is_object($value)) {
115 115
                         return $value;
116 116
                     }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         $targetMetadata = $this->manager->getClassMetadata($targetClass);
275 275
 
276 276
         if ($this->metadata->isIdentifierComposite) {
277
-            throw new \BadMethodCallException(__METHOD__.' on composite reference is not supported');
277
+            throw new \BadMethodCallException(__METHOD__ . ' on composite reference is not supported');
278 278
         }
279 279
 
280 280
         $criteria = [
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/EntityMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             throw MappingException::unknownAlias($namespaceAlias);
55 55
         }
56 56
 
57
-        return $this->aliases[$namespaceAlias].$simpleClassName;
57
+        return $this->aliases[$namespaceAlias] . $simpleClassName;
58 58
     }
59 59
 
60 60
     /** {@inheritdoc} */
Please login to merge, or discard this patch.