Skip to content

Commit 0b6cdcf

Browse files
authored
Merge pull request #977 from Blair2004/osama1998H-master
Osama1998 h master
2 parents 9695853 + 3cf2af4 commit 0b6cdcf

File tree

12 files changed

+1172
-3986
lines changed

12 files changed

+1172
-3986
lines changed

app/Services/DoctorService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function restoreRoles()
7171

7272
public function fixDuplicateOptions()
7373
{
74-
$options = Option::get();
74+
$options = Option::get();
7575
$options->each( function( $option ) {
7676
try {
7777
$option->refresh();
@@ -80,9 +80,9 @@ public function fixDuplicateOptions()
8080
->where( 'id', '<>', $option->id )
8181
->delete();
8282
}
83-
} catch( Exception $exception ) {
83+
} catch ( Exception $exception ) {
8484
// the option might be deleted, let's skip that.
8585
}
86-
});
86+
});
8787
}
8888
}

app/Services/ProductService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ public function saveGallery( Product $product, $groups )
541541
* @todo should be tested
542542
*/
543543
$manyPrimary = collect( $groups )->map( function( $fields ) {
544-
return isset( $fields[ 'featured' ] ) && (int) $fields[ 'featured' ] === 1;
545-
})
544+
return isset( $fields[ 'featured' ] ) && (int) $fields[ 'featured' ] === 1;
545+
})
546546
->filter( fn( $result ) => $result === true )
547547
->count() > 1;
548548

app/Services/Setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function testDBConnexion()
243243

244244
return [
245245
'status' => 'success',
246-
'message' => __( 'Database connexion was successful' ),
246+
'message' => __( 'Database connection was successful.' ),
247247
];
248248
} catch (\Exception $e) {
249249
switch ( $e->getCode() ) {

app/Services/TaxService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ public function computeNetAndGrossPrice( $orderProduct )
459459
*/
460460
public function getGrossPriceFromNetPrice( $net_price, $rate )
461461
{
462-
if( ( int ) $net_price == 0 ) {
462+
if ( (int) $net_price == 0 ) {
463463
return 0;
464464
}
465465

0 commit comments

Comments
 (0)