@@ -373,6 +373,9 @@ discard block |
||
373 | 373 | return $this->items; |
374 | 374 | } |
375 | 375 | |
376 | + /** |
|
377 | + * @param string $value |
|
378 | + */ |
|
376 | 379 | public function setTransient($value) { |
377 | 380 | if ($value != $this->transient) { |
378 | 381 | $this->_onPropertyChanged('transient', $this->transient, $value); |
@@ -384,6 +387,9 @@ discard block |
||
384 | 387 | return $this->data; |
385 | 388 | } |
386 | 389 | |
390 | + /** |
|
391 | + * @param string $data |
|
392 | + */ |
|
387 | 393 | public function setData($data) { |
388 | 394 | if ($data != $this->data) { |
389 | 395 | $this->_onPropertyChanged('data', $this->data, $data); |
@@ -396,6 +402,9 @@ discard block |
||
396 | 402 | $this->_listeners[] = $listener; |
397 | 403 | } |
398 | 404 | |
405 | + /** |
|
406 | + * @param string $propName |
|
407 | + */ |
|
399 | 408 | protected function _onPropertyChanged($propName, $oldValue, $newValue) { |
400 | 409 | if ($this->_listeners) { |
401 | 410 | foreach ($this->_listeners as $listener) { |
@@ -426,6 +435,9 @@ discard block |
||
426 | 435 | return $this->owner; |
427 | 436 | } |
428 | 437 | |
438 | + /** |
|
439 | + * @param NotifyChangedEntity|null $owner |
|
440 | + */ |
|
429 | 441 | public function setOwner($owner) { |
430 | 442 | $this->owner = $owner; |
431 | 443 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | protected $secondLevelCacheDriverImpl = null; |
53 | 53 | |
54 | 54 | /** |
55 | - * @param array $paths |
|
55 | + * @param string[] $paths |
|
56 | 56 | * @param mixed $alias |
57 | 57 | * |
58 | 58 | * @return \Doctrine\ORM\Mapping\Driver\AnnotationDriver |
@@ -83,6 +83,7 @@ |
||
83 | 83 | |
84 | 84 | /** |
85 | 85 | * {@inheritDoc} |
86 | + * @param string $value |
|
86 | 87 | */ |
87 | 88 | public function setValue($object, $value = null) |
88 | 89 | { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | /** |
184 | 184 | * |
185 | - * @param kateglo\application\models\Type $type |
|
185 | + * @param Type $type |
|
186 | 186 | * @return void |
187 | 187 | */ |
188 | 188 | public function addType(Type $type){ |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | |
195 | 195 | /** |
196 | 196 | * |
197 | - * @param kateglo\application\models\Type $type |
|
197 | + * @param Type $type |
|
198 | 198 | * @return void |
199 | 199 | */ |
200 | 200 | public function removeType(Type $type) |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | |
305 | 305 | /** |
306 | 306 | * |
307 | - * @param kateglo\application\models\Lemma $lemma |
|
307 | + * @param Lemma $lemma |
|
308 | 308 | * @return void |
309 | 309 | */ |
310 | 310 | public function addLemma(Lemma $lemma) |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | |
318 | 318 | /** |
319 | 319 | * |
320 | - * @param kateglo\application\models\Lemma $lemma |
|
320 | + * @param Lemma $lemma |
|
321 | 321 | * @return void |
322 | 322 | */ |
323 | 323 | public function removeLEmma(Lemma $lemma) |
@@ -45,6 +45,9 @@ |
||
45 | 45 | */ |
46 | 46 | class ConvertDoctrine1SchemaTest extends OrmTestCase |
47 | 47 | { |
48 | + /** |
|
49 | + * @param YamlDriver $metadataDriver |
|
50 | + */ |
|
48 | 51 | protected function _createEntityManager($metadataDriver) |
49 | 52 | { |
50 | 53 | $driverMock = new DriverMock(); |
@@ -25,7 +25,6 @@ |
||
25 | 25 | use Doctrine\ORM\Mapping\Driver\YamlDriver; |
26 | 26 | use Doctrine\ORM\Tools\Export\ClassMetadataExporter; |
27 | 27 | use Doctrine\ORM\Tools\ConvertDoctrine1Schema; |
28 | -use Doctrine\Tests\Mocks\MetadataDriverMock; |
|
29 | 28 | use Doctrine\Tests\Mocks\EntityManagerMock; |
30 | 29 | use Doctrine\Tests\Mocks\ConnectionMock; |
31 | 30 | use Doctrine\Tests\Mocks\DriverMock; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * @param field_type $fooTitle |
|
130 | + * @param string $fooTitle |
|
131 | 131 | */ |
132 | 132 | public function setFooTitle($fooTitle) |
133 | 133 | { |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | } |
206 | 206 | |
207 | 207 | /** |
208 | - * @param field_type $barTitle |
|
208 | + * @param string $barTitle |
|
209 | 209 | */ |
210 | 210 | public function setBarTitle($barTitle) |
211 | 211 | { |
@@ -301,14 +301,14 @@ |
||
301 | 301 | */ |
302 | 302 | private function resolveMagicCall($method, $by, array $arguments) |
303 | 303 | { |
304 | - if (! $arguments) { |
|
305 | - throw ORMException::findByRequiresParameter($method . $by); |
|
304 | + if ( ! $arguments) { |
|
305 | + throw ORMException::findByRequiresParameter($method.$by); |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | $fieldName = lcfirst(Inflector::classify($by)); |
309 | 309 | |
310 | - if (! ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName))) { |
|
311 | - throw ORMException::invalidMagicCall($this->_entityName, $fieldName, $method . $by); |
|
310 | + if ( ! ($this->_class->hasField($fieldName) || $this->_class->hasAssociation($fieldName))) { |
|
311 | + throw ORMException::invalidMagicCall($this->_entityName, $fieldName, $method.$by); |
|
312 | 312 | } |
313 | 313 | |
314 | 314 | return $this->$method([$fieldName => $arguments[0]], ...array_slice($arguments, 1)); |
@@ -33,7 +33,6 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param \Doctrine\ORM\EntityManager $entityClassName |
|
37 | 36 | * @return \Doctrine\ORM\Mapping\ClassMetadataFactory |
38 | 37 | */ |
39 | 38 | protected function createClassMetadataFactory(EntityManager $em = null) |
@@ -224,8 +224,8 @@ discard block |
||
224 | 224 | */ |
225 | 225 | public function transactional($func) |
226 | 226 | { |
227 | - if (!is_callable($func)) { |
|
228 | - throw new \InvalidArgumentException('Expected argument of type "callable", got "' . gettype($func) . '"'); |
|
227 | + if ( ! is_callable($func)) { |
|
228 | + throw new \InvalidArgumentException('Expected argument of type "callable", got "'.gettype($func).'"'); |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | $this->conn->beginTransaction(); |
@@ -753,7 +753,7 @@ discard block |
||
753 | 753 | */ |
754 | 754 | public function isOpen() |
755 | 755 | { |
756 | - return (!$this->closed); |
|
756 | + return ( ! $this->closed); |
|
757 | 757 | } |
758 | 758 | |
759 | 759 | /** |
@@ -864,7 +864,7 @@ discard block |
||
864 | 864 | sprintf( |
865 | 865 | 'Invalid $connection argument of type %s given%s.', |
866 | 866 | is_object($connection) ? get_class($connection) : gettype($connection), |
867 | - is_object($connection) ? '' : ': "' . $connection . '"' |
|
867 | + is_object($connection) ? '' : ': "'.$connection.'"' |
|
868 | 868 | ) |
869 | 869 | ); |
870 | 870 | } |