@@ -84,6 +84,10 @@ |
||
84 | 84 | /** @Column(type="integer") */ |
85 | 85 | public $numericValue; |
86 | 86 | |
87 | + /** |
|
88 | + * @param string $name |
|
89 | + * @param integer $number |
|
90 | + */ |
|
87 | 91 | public function __construct($name, $number) |
88 | 92 | { |
89 | 93 | $this->name = $name; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $this->_em->getClassMetadata(ReadOnlyEntity::class), |
22 | 22 | ] |
23 | 23 | ); |
24 | - } catch(\Exception $e) { |
|
24 | + } catch (\Exception $e) { |
|
25 | 25 | } |
26 | 26 | } |
27 | 27 |
@@ -329,6 +329,9 @@ |
||
329 | 329 | $this->callbacks = $callbacks; |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param string $eventName |
|
334 | + */ |
|
332 | 335 | private function dispatch($eventName, $args) |
333 | 336 | { |
334 | 337 | if (isset($this->callbacks[$eventName])) { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | { |
198 | 198 | $listener = new ListenerSecondLevelCacheTest( |
199 | 199 | [ |
200 | - Events::postFlush => function(){ |
|
200 | + Events::postFlush => function() { |
|
201 | 201 | throw new \RuntimeException('post flush failure'); |
202 | 202 | } |
203 | 203 | ] |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | $listener = new ListenerSecondLevelCacheTest( |
233 | 233 | [ |
234 | - Events::postUpdate => function(){ |
|
234 | + Events::postUpdate => function() { |
|
235 | 235 | throw new \RuntimeException('post update failure'); |
236 | 236 | } |
237 | 237 | ] |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | $this->assertInstanceOf(State::class, $state); |
251 | 251 | $this->assertEquals($stateName, $state->getName()); |
252 | 252 | |
253 | - $state->setName($stateName . uniqid()); |
|
253 | + $state->setName($stateName.uniqid()); |
|
254 | 254 | |
255 | 255 | $this->_em->persist($state); |
256 | 256 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | |
280 | 280 | $listener = new ListenerSecondLevelCacheTest( |
281 | 281 | [ |
282 | - Events::postRemove => function(){ |
|
282 | + Events::postRemove => function() { |
|
283 | 283 | throw new \RuntimeException('post remove failure'); |
284 | 284 | } |
285 | 285 | ] |
@@ -203,7 +203,7 @@ |
||
203 | 203 | } |
204 | 204 | |
205 | 205 | /** |
206 | - * @param Product $product |
|
206 | + * @param DDC1163Product $product |
|
207 | 207 | */ |
208 | 208 | public function setProduct(DDC1163Product $product) |
209 | 209 | { |
@@ -90,6 +90,9 @@ |
||
90 | 90 | return $this->name; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $name |
|
95 | + */ |
|
93 | 96 | public function setName($name) |
94 | 97 | { |
95 | 98 | $this->name = $name; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | $this->_em->getClassMetadata(DDC1238User::class), |
17 | 17 | ] |
18 | 18 | ); |
19 | - } catch(\Exception $e) { |
|
19 | + } catch (\Exception $e) { |
|
20 | 20 | |
21 | 21 | } |
22 | 22 | } |
@@ -89,6 +89,7 @@ |
||
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Set file |
92 | + * @param DDC1392File $value |
|
92 | 93 | */ |
93 | 94 | public function setFile($value = null) |
94 | 95 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | $em->flush(); |
59 | 59 | |
60 | - $q = $this->_em->createQuery("SELECT COUNT(e) FROM " . __NAMESPACE__ . '\DDC1392File e'); |
|
60 | + $q = $this->_em->createQuery("SELECT COUNT(e) FROM ".__NAMESPACE__.'\DDC1392File e'); |
|
61 | 61 | $result = $q->getSingleScalarResult(); |
62 | 62 | |
63 | 63 | self::assertEquals(1, $result); |
@@ -170,6 +170,9 @@ |
||
170 | 170 | return $this->id; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param string $status |
|
175 | + */ |
|
173 | 176 | public function __construct($status) |
174 | 177 | { |
175 | 178 | $this->status = $status; |
@@ -226,11 +226,11 @@ discard block |
||
226 | 226 | class DDC1430OrderProduct |
227 | 227 | { |
228 | 228 | |
229 | - /** |
|
230 | - * @Id |
|
231 | - * @Column(type="integer") |
|
232 | - * @GeneratedValue() |
|
233 | - */ |
|
229 | + /** |
|
230 | + * @Id |
|
231 | + * @Column(type="integer") |
|
232 | + * @GeneratedValue() |
|
233 | + */ |
|
234 | 234 | protected $id; |
235 | 235 | |
236 | 236 | /** |
@@ -254,9 +254,9 @@ discard block |
||
254 | 254 | $this->value = $value; |
255 | 255 | } |
256 | 256 | |
257 | - /** |
|
258 | - * @return int |
|
259 | - */ |
|
257 | + /** |
|
258 | + * @return int |
|
259 | + */ |
|
260 | 260 | public function getId() |
261 | 261 | { |
262 | 262 | return $this->id; |
@@ -81,6 +81,9 @@ |
||
81 | 81 | return $this->parent; |
82 | 82 | } |
83 | 83 | |
84 | + /** |
|
85 | + * @param null|DDC1436Page $parent |
|
86 | + */ |
|
84 | 87 | public function setParent($parent) |
85 | 88 | { |
86 | 89 | $this->parent = $parent; |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | // step 1 |
40 | 40 | $page = $this->_em |
41 | - ->createQuery('SELECT p, parent FROM ' . __NAMESPACE__ . '\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
41 | + ->createQuery('SELECT p, parent FROM '.__NAMESPACE__.'\DDC1436Page p LEFT JOIN p.parent parent WHERE p.id = :id') |
|
42 | 42 | ->setParameter('id', $id) |
43 | 43 | ->getOneOrNullResult(); |
44 | 44 |
@@ -85,6 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * Set file |
88 | + * @param DDC1509File $value |
|
88 | 89 | */ |
89 | 90 | public function setFile($value = null) |
90 | 91 | { |
@@ -104,6 +105,9 @@ discard block |
||
104 | 105 | return $this->thumbnail; |
105 | 106 | } |
106 | 107 | |
108 | + /** |
|
109 | + * @param DDC1509File $thumbnail |
|
110 | + */ |
|
107 | 111 | public function setThumbnail($thumbnail) |
108 | 112 | { |
109 | 113 | $this->thumbnail = $thumbnail; |
@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | } |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param string $propName |
|
88 | + */ |
|
86 | 89 | protected function onPropertyChanged($propName, $oldValue, $newValue) { |
87 | 90 | if ($this->listeners) { |
88 | 91 | foreach ($this->listeners as $listener) { |
@@ -111,11 +114,17 @@ discard block |
||
111 | 114 | return $this->name; |
112 | 115 | } |
113 | 116 | |
117 | + /** |
|
118 | + * @param string $name |
|
119 | + */ |
|
114 | 120 | function setName($name) { |
115 | 121 | $this->onPropertyChanged('name', $this->name, $name); |
116 | 122 | $this->name = $name; |
117 | 123 | } |
118 | 124 | |
125 | + /** |
|
126 | + * @param DDC1690Child $child |
|
127 | + */ |
|
119 | 128 | function setChild($child) { |
120 | 129 | $this->child = $child; |
121 | 130 | } |
@@ -144,11 +153,17 @@ discard block |
||
144 | 153 | return $this->name; |
145 | 154 | } |
146 | 155 | |
156 | + /** |
|
157 | + * @param string $name |
|
158 | + */ |
|
147 | 159 | function setName($name) { |
148 | 160 | $this->onPropertyChanged('name', $this->name, $name); |
149 | 161 | $this->name = $name; |
150 | 162 | } |
151 | 163 | |
164 | + /** |
|
165 | + * @param DDC1690Parent $parent |
|
166 | + */ |
|
152 | 167 | function setParent($parent) { |
153 | 168 | $this->parent = $parent; |
154 | 169 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | public $listeners = []; |
78 | 78 | |
79 | 79 | public function addPropertyChangedListener(PropertyChangedListener $listener) { |
80 | - if (!in_array($listener, $this->listeners)) { |
|
80 | + if ( ! in_array($listener, $this->listeners)) { |
|
81 | 81 | $this->listeners[] = $listener; |
82 | 82 | } |
83 | 83 | } |