Skip to content

Commit

Permalink
Prepare Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen authored and github-actions[bot] committed Jan 14, 2025
1 parent 98717cc commit 957c148
Show file tree
Hide file tree
Showing 20 changed files with 32 additions and 49 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

## [2.0.0] - 2025-01-14

### Added

- Now supporting Laravel 11
Expand Down Expand Up @@ -294,7 +296,9 @@

- Initial Beta Release

[Unreleased]: https://github.com/ExpressionEngine/Coilpack/compare/1.4.3...HEAD
[Unreleased]: https://github.com/ExpressionEngine/Coilpack/compare/2.0.0...HEAD

[2.0.0]: https://github.com/ExpressionEngine/Coilpack/compare/1.4.3...2.0.0

[1.4.3]: https://github.com/ExpressionEngine/Coilpack/compare/1.4.2...1.4.3

Expand Down
4 changes: 1 addition & 3 deletions src/Fieldtypes/FileGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Expressionengine\Coilpack\Fieldtypes;

class FileGrid extends Grid
{
}
class FileGrid extends Grid {}
2 changes: 1 addition & 1 deletion src/Fieldtypes/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function generateGraphType(ChannelField $field)
'selectable' => false,
// 'is_relation' => false,
'resolve' => function ($root, array $args) use ($column) {
$value = $root->{$column->col_name}; //->value();
$value = $root->{$column->col_name}; // ->value();

return $value;
},
Expand Down
4 changes: 1 addition & 3 deletions src/Fieldtypes/MultiSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Expressionengine\Coilpack\Fieldtypes;

class MultiSelect extends OptionFieldtype
{
}
class MultiSelect extends OptionFieldtype {}
4 changes: 1 addition & 3 deletions src/Fieldtypes/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Expressionengine\Coilpack\Fieldtypes;

class Select extends OptionFieldtype
{
}
class Select extends OptionFieldtype {}
4 changes: 1 addition & 3 deletions src/Fieldtypes/SelectableButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Expressionengine\Coilpack\Fieldtypes;

class SelectableButtons extends OptionFieldtype
{
}
class SelectableButtons extends OptionFieldtype {}
8 changes: 2 additions & 6 deletions src/Models/Channel/ChannelEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,9 @@ public function hiddenFields()
);
}

public function grids()
{
}
public function grids() {}

public function parents()
{
}
public function parents() {}

public function children()
{
Expand Down
4 changes: 1 addition & 3 deletions src/Models/Content/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
/**
* Content interface
*/
interface Content
{
}
interface Content {}
2 changes: 1 addition & 1 deletion src/Models/Content/FieldModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public function parse($data, $content_id, $content_type, $variable_mods, $tagdat

if ($this->field_type == 'date') {
// Set 0 to NULL, kill any formatting
//$row['field_ft_'.$dval] = 'none';
// $row['field_ft_'.$dval] = 'none';
$data = ($data == 0) ? null : $data;
}

Expand Down
4 changes: 1 addition & 3 deletions src/Models/Content/Structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
/**
* Content Structure interface
*/
interface Structure
{
}
interface Structure {}
4 changes: 1 addition & 3 deletions src/Models/Content/StructureModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@
/**
* Content Structure Model abstract
*/
abstract class StructureModel extends Model implements Structure
{
}
abstract class StructureModel extends Model implements Structure {}
1 change: 1 addition & 0 deletions src/Models/Cookie/CookieSetting.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* This source file is part of the open source project
* ExpressionEngine (https://expressionengine.com)
Expand Down
4 changes: 2 additions & 2 deletions src/Models/File/FileDimension.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class FileDimension extends Model
protected $table = 'file_dimensions';

protected $casts = [
//'width' => 'integer',
//'height' => 'integer'
// 'width' => 'integer',
// 'height' => 'integer'
'quality' => 'integer',
];

Expand Down
16 changes: 8 additions & 8 deletions src/Models/File/Watermark.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ class Watermark extends Model
protected $casts = [
'wm_use_font' => \Expressionengine\Coilpack\Casts\BooleanString::class,
'wm_use_drop_shadow' => \Expressionengine\Coilpack\Casts\BooleanString::class,
//'wm_font_size' => 'integer',
//'wm_padding' => 'integer',
//'wm_opacity' => 'integer',
//'wm_hor_offset' => 'integer',
//'wm_vrt_offset' => 'integer',
//'wm_x_transp' => 'integer',
//'wm_y_transp' => 'integer',
//'wm_shadow_distance' => 'integer'
// 'wm_font_size' => 'integer',
// 'wm_padding' => 'integer',
// 'wm_opacity' => 'integer',
// 'wm_hor_offset' => 'integer',
// 'wm_vrt_offset' => 'integer',
// 'wm_x_transp' => 'integer',
// 'wm_y_transp' => 'integer',
// 'wm_shadow_distance' => 'integer'
];

protected static $_relationships = [
Expand Down
1 change: 1 addition & 0 deletions src/Models/Site/Site.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* ExpressionEngine (https://expressionengine.com)
*
Expand Down
4 changes: 1 addition & 3 deletions src/Routing/TemplateRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

class TemplateRoute
{
public function __construct()
{
}
public function __construct() {}

// public function templates($segment, $path, callable $callback = null)
// {
Expand Down
4 changes: 1 addition & 3 deletions src/View/Exceptions/TagNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Expressionengine\Coilpack\View\Exceptions;

class TagNotFoundException extends \Exception
{
}
class TagNotFoundException extends \Exception {}
1 change: 0 additions & 1 deletion src/View/Tags/Member/EditAvatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ public function fields()
{
return collect($this->getFormAttribute('fields', []));
}

}
2 changes: 1 addition & 1 deletion src/View/TemplateStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function parse(&$str, $is_embed = false, $site_id = '', $is_layout = fals

// Write the cache file if needed
if ($cache_status == 'EXPIRED') {
//if the template is not embedded, ensure the cache is restricted to current URI
// if the template is not embedded, ensure the cache is restricted to current URI
if (! $is_embed) {
$this->cache_prefix = '';
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/Channel/EntriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class EntriesTest extends TestCase
{
private $channel;

public function setUp(): void
protected function setUp(): void
{
parent::setUp();

Expand Down

0 comments on commit 957c148

Please sign in to comment.