@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $this->app->singleton( |
| 45 | 45 | ConfigProviderContract::class, |
| 46 | - function (): ConfigProviderContract { |
|
| 46 | + function(): ConfigProviderContract { |
|
| 47 | 47 | return new ConfigProvider( |
| 48 | 48 | new ReliqArtsConfigProvider( |
| 49 | 49 | resolve(ConfigRepository::class), |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | $this->app->singleton( |
| 57 | 57 | LoggerContract::class, |
| 58 | - function (): LoggerContract { |
|
| 58 | + function(): LoggerContract { |
|
| 59 | 59 | $logger = new Logger($this->getLoggerName()); |
| 60 | 60 | $logFile = storage_path(sprintf('logs/%s.log', $this->getLogFilename())); |
| 61 | 61 | $logger->pushHandler(new StreamHandler($logFile, Logger::DEBUG)); |
@@ -36,10 +36,10 @@ |
||
| 36 | 36 | public function getEventsForStatus(string $statusIdentifier): array |
| 37 | 37 | { |
| 38 | 38 | $eventKey = sprintf('%s.%s', self::EVENT_MAP_KEY, $statusIdentifier); |
| 39 | - $eventClasses = $this->configAccessor->get($eventKey, []); |
|
| 39 | + $eventClasses = $this->configAccessor->get($eventKey, [ ]); |
|
| 40 | 40 | |
| 41 | 41 | if (empty($eventClasses) || !is_array($eventClasses)) { |
| 42 | - return []; |
|
| 42 | + return [ ]; |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | return array_map('trim', $eventClasses); |
@@ -13,5 +13,5 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @return Model|self |
| 15 | 15 | */ |
| 16 | - public function create(array $attributes = []); |
|
| 16 | + public function create(array $attributes = [ ]); |
|
| 17 | 17 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | public const TABLE_KEY = 'tracking_updates'; |
| 14 | 14 | |
| 15 | - protected $fillable = ['trackable_identifier', 'trackable_type', 'status_identifier']; |
|
| 15 | + protected $fillable = [ 'trackable_identifier', 'trackable_type', 'status_identifier' ]; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @return string |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * |
| 29 | 29 | * @return Model|TrackingUpdateContract |
| 30 | 30 | */ |
| 31 | - public function create(array $attributes = []) |
|
| 31 | + public function create(array $attributes = [ ]) |
|
| 32 | 32 | { |
| 33 | 33 | return parent::create($attributes); |
| 34 | 34 | } |
@@ -41,9 +41,9 @@ |
||
| 41 | 41 | public function createForTrackable(string $eventClassName, Trackable $trackable) |
| 42 | 42 | { |
| 43 | 43 | try { |
| 44 | - $eventClass = $this->application->make(ReflectionClass::class, [self::ARGUMENT => $eventClassName]); |
|
| 44 | + $eventClass = $this->application->make(ReflectionClass::class, [ self::ARGUMENT => $eventClassName ]); |
|
| 45 | 45 | |
| 46 | - return $eventClass->newInstanceArgs([$trackable]); |
|
| 46 | + return $eventClass->newInstanceArgs([ $trackable ]); |
|
| 47 | 47 | } catch (BindingResolutionException $exception) { |
| 48 | 48 | throw TrackableEventCreationFailed::forEventClass($eventClassName, $trackable, $exception); |
| 49 | 49 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function up() |
| 38 | 38 | { |
| 39 | - Schema::create($this->table, function (Blueprint $table) { |
|
| 39 | + Schema::create($this->table, function(Blueprint $table) { |
|
| 40 | 40 | $table->bigIncrements('id'); |
| 41 | 41 | $table->string('trackable_identifier'); |
| 42 | 42 | $table->string('trackable_type'); |