@@ -153,11 +153,11 @@ public function aanmaken()
153
153
PinTransactieMatch::class
154
154
);
155
155
156
- if ($ pinTransactieMatch ->bestelling !== null ) {
156
+ if (isset ( $ pinTransactieMatch ->bestelling ) ) {
157
157
throw new CsrGebruikerException ('Er bestaat al een bestelling. ' );
158
158
}
159
159
160
- if ($ pinTransactieMatch ->transactie === null ) {
160
+ if (! isset ( $ pinTransactieMatch ->transactie ) ) {
161
161
throw new CsrGebruikerException (
162
162
'Geen transactie gevonden om een bestelling voor aan te maken '
163
163
);
@@ -249,11 +249,11 @@ public function ontkoppel()
249
249
PinTransactieMatch::class
250
250
);
251
251
252
- if ($ pinTransactieMatch ->bestelling === null ) {
252
+ if (! isset ( $ pinTransactieMatch ->bestelling ) ) {
253
253
throw new CsrGebruikerException (
254
254
'Ontoppelen niet mogelijk, geen bestelling gevonden. '
255
255
);
256
- } elseif ($ pinTransactieMatch ->transactie === null ) {
256
+ } elseif (! isset ( $ pinTransactieMatch ->transactie ) ) {
257
257
throw new CsrGebruikerException (
258
258
'Ontkoppelen niet mogelijk, geen transactie gevonden. '
259
259
);
@@ -318,16 +318,16 @@ public function koppel()
318
318
$ pinTransactieMatch2
319
319
) {
320
320
if (
321
- $ pinTransactieMatch1 ->bestelling === null &&
322
- $ pinTransactieMatch2 ->transactie === null
321
+ ! isset ( $ pinTransactieMatch1 ->bestelling ) &&
322
+ ! isset ( $ pinTransactieMatch2 ->transactie )
323
323
) {
324
324
$ nieuwePinTransactieMatch = $ this ->koppelMatches (
325
325
$ pinTransactieMatch2 ,
326
326
$ pinTransactieMatch1
327
327
);
328
328
} elseif (
329
- $ pinTransactieMatch2 ->bestelling === null &&
330
- $ pinTransactieMatch1 ->transactie === null
329
+ ! isset ( $ pinTransactieMatch2 ->bestelling ) &&
330
+ ! isset ( $ pinTransactieMatch1 ->transactie )
331
331
) {
332
332
$ nieuwePinTransactieMatch = $ this ->koppelMatches (
333
333
$ pinTransactieMatch1 ,
@@ -408,11 +408,11 @@ public function crediteer()
408
408
$ form = new PinBestellingCrediterenForm ($ oudePinTransactieMatch );
409
409
$ values = $ form ->getValues ();
410
410
411
- if ($ oudePinTransactieMatch ->transactie !== null ) {
411
+ if (isset ( $ oudePinTransactieMatch ->transactie ) ) {
412
412
throw new CsrGebruikerException ('Er bestaat wel een transactie. ' );
413
413
}
414
414
415
- if ($ oudePinTransactieMatch ->bestelling === null ) {
415
+ if (! isset ( $ oudePinTransactieMatch ->bestelling ) ) {
416
416
throw new CsrGebruikerException (
417
417
'Geen bestelling gevonden om een creditbestelling voor aan te maken '
418
418
);
@@ -511,13 +511,13 @@ public function update()
511
511
$ form = new PinBestellingVeranderenForm ($ oudePinTransactieMatch );
512
512
$ values = $ form ->getValues ();
513
513
514
- if ($ oudePinTransactieMatch ->transactie === null ) {
514
+ if (! isset ( $ oudePinTransactieMatch ->transactie ) ) {
515
515
throw new CsrGebruikerException (
516
516
'Geen transactie gevonden voor verkeerd bedrag '
517
517
);
518
518
}
519
519
520
- if ($ oudePinTransactieMatch ->bestelling === null ) {
520
+ if (! isset ( $ oudePinTransactieMatch ->bestelling ) ) {
521
521
throw new CsrGebruikerException (
522
522
'Geen bestelling gevonden voor verkeerd bedrag '
523
523
);
0 commit comments