Test Setup Failed
Branch develop (09bacc)
by ReliQ
04:31
created
Category
src/Utility/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Utility/Services/ConfigProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Tracking/Contracts/TrackingUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,5 +13,5 @@
 block discarded – undo
13 13
      *
14 14
      * @return Model|self
15 15
      */
16
-    public function create(array $attributes = []);
16
+    public function create(array $attributes = [ ]);
17 17
 }
Please login to merge, or discard this patch.
src/Tracking/Models/TrackingUpdate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Tracking/Services/EventCreator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
migrations/2019_05_19_000000_create_logistiq_tracking_updates_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.