Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-the-Diamond authored and github-actions[bot] committed Aug 29, 2024
1 parent a99b5c5 commit 1f56ce7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/flags/tests/CompilesIconsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace Tests;

use Moox\Flags\FlagsServiceProvider;
use BladeUI\Icons\BladeIconsServiceProvider;
use Moox\Flags\FlagsServiceProvider;

// TODO: Care for Testbench
class CompilesIconsTest extends \Orchestra\Testbench\TestCase
Expand Down
7 changes: 4 additions & 3 deletions packages/press/src/Models/WpBasePost.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function __construct(array $attributes = [])
parent::__construct($attributes);

$this->wpPrefix = config('press.wordpress_prefix');
$this->table = $this->wpPrefix . 'posts';
$this->metatable = $this->wpPrefix . 'postmeta';
$this->table = $this->wpPrefix.'posts';
$this->metatable = $this->wpPrefix.'postmeta';

$this->appends = [
'verantwortlicher',
Expand Down Expand Up @@ -192,7 +192,7 @@ public function author(): BelongsTo

public function taxonomies(): BelongsToMany
{
return $this->belongsToMany(WpTermTaxonomy::class, config('press.wordpress_prefix') . 'term_relationships', 'object_id', 'term_taxonomy_id');
return $this->belongsToMany(WpTermTaxonomy::class, config('press.wordpress_prefix').'term_relationships', 'object_id', 'term_taxonomy_id');
}

public function categories(): BelongsToMany
Expand All @@ -209,6 +209,7 @@ public function comment(): HasMany
{
return $this->hasMany(WpComment::class, 'comment_post_ID');
}

/*
* ACF- Fields Getter and Setter
*/
Expand Down
5 changes: 2 additions & 3 deletions packages/press/src/Models/WpMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->wpPrefix = config('press.wordpress_prefix');
$this->table = $this->wpPrefix . 'posts';
$this->table = $this->wpPrefix.'posts';
}

public static function boot()
Expand All @@ -31,7 +31,6 @@ public static function boot()
});
}


public function getImageUrlAttribute()
{
return $this->postMeta()->where('meta_key', '_wp_attached_file')->first()->meta_value ?? '';
Expand All @@ -47,7 +46,7 @@ public function getAssetAttribute()
// TODO: Check if the file is an image
// TODO: Read wp-config.php to get the upload path

return $file ? asset($wpslug . '/wp-content/uploads/' . $file) : '';
return $file ? asset($wpslug.'/wp-content/uploads/'.$file) : '';
}

public function getImageSizesAttribute()
Expand Down
4 changes: 2 additions & 2 deletions packages/press/src/Models/WpUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public function __construct(array $attributes = [])
$this->fillable = array_keys($defaultUserMeta);

$this->wpPrefix = config('press.wordpress_prefix');
$this->table = $this->wpPrefix . 'users';
$this->metatable = $this->wpPrefix . 'usermeta';
$this->table = $this->wpPrefix.'users';
$this->metatable = $this->wpPrefix.'usermeta';

$this->initializeMetaFields();
}
Expand Down

0 comments on commit 1f56ce7

Please sign in to comment.