File tree Expand file tree Collapse file tree 6 files changed +12
-15
lines changed Expand file tree Collapse file tree 6 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function getItems(): array;
1919
2020 /**
2121 * Returns the price per item in the DTO.
22- *
22+ *
2323 * @return int|non-empty-string|null
2424 */
2525 public function getPricePerItem (): int |string |null ;
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ interface TransactionDtoInterface
1010{
1111 /**
1212 * Get the UUID of the transaction.
13- *
13+ *
1414 * @return non-empty-string
1515 */
1616 public function getUuid (): string ;
1717
1818 /**
1919 * Get the type of the payable.
20- *
20+ *
2121 * @return class-string
2222 */
2323 public function getPayableType (): string ;
@@ -39,7 +39,7 @@ public function getType(): string;
3939
4040 /**
4141 * Get the amount of the transaction.
42- *
42+ *
4343 * @return float|int|non-empty-string
4444 */
4545 public function getAmount (): float |int |string ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ interface TransferDtoInterface
1010{
1111 /**
1212 * Get the UUID of the transfer.
13- *
13+ *
1414 * @return non-empty-string
1515 */
1616 public function getUuid (): string ;
@@ -47,7 +47,7 @@ public function getDiscount(): int;
4747
4848 /**
4949 * Get the fee amount of the transfer.
50- *
50+ *
5151 * @return non-empty-string
5252 */
5353 public function getFee (): string ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function getDiscount(): int;
2525
2626 /**
2727 * Get the fee amount of the transfer.
28- *
28+ *
2929 * @return non-empty-string
3030 */
3131 public function getFee (): string ;
@@ -47,7 +47,7 @@ public function getStatus(): string;
4747
4848 /**
4949 * Get the UUID of the transfer.
50- *
50+ *
5151 * @return non-empty-string|null
5252 */
5353 public function getUuid (): ?string ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function getWalletId(): int;
2525
2626 /**
2727 * Returns the UUID of the wallet.
28- *
28+ *
2929 * @return non-empty-string
3030 */
3131 public function getWalletUuid (): string ;
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function getOriginalBalanceAttribute(): string
141141 $ balance = (string ) $ this ->getRawOriginal ('balance ' , 0 );
142142
143143 // Perform assertion to check if balance is not an empty string
144- assert ($ balance != '' , 'Balance should not be an empty string ' );
144+ assert ($ balance !== '' , 'Balance should not be an empty string ' );
145145
146146 return $ balance ;
147147 }
@@ -153,7 +153,7 @@ public function getAvailableBalanceAttribute(): float|int|string
153153 ->sum ('amount ' );
154154
155155 // Perform assertion to check if balance is not an empty string
156- assert ($ balance != '' , 'Balance should not be an empty string ' );
156+ assert ($ balance !== '' , 'Balance should not be an empty string ' );
157157
158158 return $ balance ;
159159 }
@@ -181,10 +181,7 @@ public function getCreditAttribute(): string
181181 // Assert that credit is not an empty string
182182 // This is to ensure that the credit attribute always has a value
183183 // If the credit attribute is empty, it can cause issues with the math service
184- assert (
185- $ credit != '' ,
186- 'Credit should not be an empty string. It can cause issues with the math service. '
187- );
184+ assert ($ credit !== '' , 'Credit should not be an empty string. It can cause issues with the math service. ' );
188185
189186 return $ credit ;
190187 }
You can’t perform that action at this time.
0 commit comments