Skip to content

Commit

Permalink
Prepare Release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen authored and github-actions[bot] committed Mar 18, 2024
1 parent 99ede38 commit 368509c
Show file tree
Hide file tree
Showing 27 changed files with 74 additions and 76 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]

## [1.3.0] - 2024-03-18

### Added

- Ability to pass a 'tagdata' parameter to the ExpressionEngine Template library
Expand Down Expand Up @@ -216,7 +218,9 @@

- Initial Beta Release

[Unreleased]: https://github.com/ExpressionEngine/Coilpack/compare/1.2.2...HEAD
[Unreleased]: https://github.com/ExpressionEngine/Coilpack/compare/1.3.0...HEAD

[1.3.0]: https://github.com/ExpressionEngine/Coilpack/compare/1.2.2...1.3.0

[1.2.2]: https://github.com/ExpressionEngine/Coilpack/compare/1.2.1...1.2.2

Expand Down
4 changes: 0 additions & 4 deletions src/Auth/CoilpackUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class CoilpackUserProvider extends EloquentUserProvider
/**
* Retrieve a user by the given credentials.
*
* @param array $credentials
* @return \Illuminate\Contracts\Auth\Authenticatable|null
*/
public function retrieveByCredentials(array $credentials)
Expand All @@ -29,8 +28,6 @@ public function retrieveByCredentials(array $credentials)
/**
* Validate a user against the given credentials.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param array $credentials
* @return bool
*/
public function validateCredentials(Authenticatable $user, array $credentials)
Expand Down Expand Up @@ -78,7 +75,6 @@ public function retrieveByToken($identifier, $token)
/**
* Update the "remember me" token for the given user in storage.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param string $token
* @return void
*/
Expand Down
1 change: 0 additions & 1 deletion src/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public function user()
return $this->user;
}


/**
* Remove the user data from the session and cookies.
*
Expand Down
52 changes: 26 additions & 26 deletions src/CacheDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ public function __construct(CacheRepository $repository)
* Look for a value in the cache. If it exists, return the data
* if not, return FALSE
*
* @param string $key Key name
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return mixed value matching $key or FALSE on failure
* @param string $key Key name
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return mixed value matching $key or FALSE on failure
*/
public function get($key, $scope = Cache::LOCAL_SCOPE)
{
Expand All @@ -39,12 +39,12 @@ public function get($key, $scope = Cache::LOCAL_SCOPE)
/**
* Save value to cache
*
* @param string $key Key name
* @param mixed $data Data to store
* @param int $ttl = 60 Cache TTL (in seconds)
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return bool TRUE on success, FALSE on failure
* @param string $key Key name
* @param mixed $data Data to store
* @param int $ttl = 60 Cache TTL (in seconds)
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return bool TRUE on success, FALSE on failure
*/
public function save($key, $data, $ttl = 60, $scope = Cache::LOCAL_SCOPE)
{
Expand All @@ -67,10 +67,10 @@ public function save($key, $data, $ttl = 60, $scope = Cache::LOCAL_SCOPE)
*
* ee()->cache->delete('/namespace_name/');
*
* @param string $key Key name
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return bool TRUE on success, FALSE on failure
* @param string $key Key name
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return bool TRUE on success, FALSE on failure
*/
public function delete($key, $scope = Cache::LOCAL_SCOPE)
{
Expand All @@ -84,9 +84,9 @@ public function delete($key, $scope = Cache::LOCAL_SCOPE)
/**
* Clean the cache
*
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return bool TRUE on success, FALSE on failure
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return bool TRUE on success, FALSE on failure
*/
public function clean($scope = Cache::LOCAL_SCOPE)
{
Expand All @@ -100,7 +100,7 @@ public function clean($scope = Cache::LOCAL_SCOPE)
/**
* Cache Info
*
* @return mixed array containing cache info on success OR FALSE on failure
* @return mixed array containing cache info on success OR FALSE on failure
*/
public function cache_info()
{
Expand All @@ -110,10 +110,10 @@ public function cache_info()
/**
* Get Cache Metadata
*
* @param string $key Key to get cache metadata on
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return mixed cache item metadata
* @param string $key Key to get cache metadata on
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE for
* local or global scoping of the cache item
* @return mixed cache item metadata
*/
public function get_metadata($key, $scope = Cache::LOCAL_SCOPE)
{
Expand Down Expand Up @@ -173,10 +173,10 @@ protected function unwrapData($data)
*
* For the file driver, namespaces will be actual folders
*
* @param string $key Key name
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE
* for local or global scoping of the cache item
* @return string Key prefixed with namespace
* @param string $key Key name
* @param const $scope Cache::LOCAL_SCOPE or Cache::GLOBAL_SCOPE
* for local or global scoping of the cache item
* @return string Key prefixed with namespace
*/
protected function _namespaced_key($key, $scope = Cache::LOCAL_SCOPE)
{
Expand Down
4 changes: 2 additions & 2 deletions src/CacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function accessRestrictedProperty($object, $property)
/**
* Returns the name of the adapter currently in use
*
* @return string Name of adapter
* @return string Name of adapter
*/
public function get_adapter()
{
Expand All @@ -82,7 +82,7 @@ public function get_adapter()
* Configuration screen, and also optionally an error message if the driver
* selected cannot be used
*
* @return string HTML dropdown and optional error message
* @return string HTML dropdown and optional error message
*/
public function admin_setting()
{
Expand Down
1 change: 0 additions & 1 deletion src/CoilpackServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Expressionengine\Coilpack;

use Expressionengine\Coilpack\Auth\CoilpackUserProvider;
use Expressionengine\Coilpack\Api\Graph\Support\FieldtypeRegistrar;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Event;
Expand Down
4 changes: 2 additions & 2 deletions src/Extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __construct($data = [])
*
* @param string Name of the extension hook
* @param mixed
* @return mixed
* @return mixed
*/
public function call($which)
{
Expand Down Expand Up @@ -64,7 +64,7 @@ public function call($which)
* Check If Hook Has Activated Extension
*
* @param string Name of the extension hook
* @return bool
* @return bool
*/
public function active_hook($which)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Date extends Generic
{
public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return [
new Parameter([
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Duration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Duration extends Generic
{
public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return [
new Parameter([
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Fieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function withSettings($settings)
/**
* A list of supported parameters for the fieldtype
*/
public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function generateGraphType(ChannelField $field)
]);
}

public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
$parameters = $this->presenter->defineParameters();
$parameters[] = new Parameter([
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function apply(FieldContent $content, $parameters = [])
return FieldtypeOutput::for($this)->value($data);
}

public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return $this->presenter->defineParameters();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Number extends Generic
{
public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return [
new Parameter([
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/OptionFieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function apply(FieldContent $content, array $parameters = [])
]);
}

public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return [
new Parameter([
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function apply(FieldContent $content, $parameters = [])
return FieldtypeOutput::for($this)->value($data);
}

public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return $this->presenter->defineParameters();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Fieldtypes/Rte.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Rte extends Generic
{
public function parametersForField(Field $field = null): array
public function parametersForField(?Field $field = null): array
{
return [
new Parameter([
Expand Down
10 changes: 5 additions & 5 deletions src/Models/Content/ContentModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ abstract class ContentModel extends VariableColumnModel
/**
* A link back to the owning Structure object.
*
* @return Structure A link back to the Structure object that defines
* this Content's structure.
* @return Structure A link back to the Structure object that defines
* this Content's structure.
*/
abstract public function getStructure();

Expand Down Expand Up @@ -150,7 +150,7 @@ public function getCustomFieldNames()
/**
* Get the layout for this content.
*/
public function getDisplay(LayoutInterface $layout = null)
public function getDisplay(?LayoutInterface $layout = null)
{
$this->usesCustomFields();

Expand All @@ -172,7 +172,7 @@ function ($field) {
* Safely updates any properties that might exist,
* passing them through the getters along the way.
*
* @param array $data Data to update
* @param array $data Data to update
* @return $this
*/
public function set(array $data = [])
Expand Down Expand Up @@ -414,7 +414,7 @@ protected function addFacade($id, $info, $name_prefix = '')
* tables. If the list of changed properties is not supplied we will get
* the list of dirty properties.
*
* @param array $changed An associative array of class properties that have changed
* @param array $changed An associative array of class properties that have changed
*/
public function saveFieldData($changed = null)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Models/Content/Display/LayoutDisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class LayoutDisplay
/**
* Adds a LayoutTab to the display
*
* @param LayoutTab $tab The LayoutTab to add
* @param LayoutTab $tab The LayoutTab to add
* @return void
*/
public function addTab(LayoutTab $tab)
Expand All @@ -28,7 +28,7 @@ public function addTab(LayoutTab $tab)
/**
* Sets the tabs (in bulk) to the display
*
* @param array $tab An array of LayoutTabs
* @param array $tab An array of LayoutTabs
* @return void
*/
public function setTabs(array $tabs)
Expand All @@ -41,7 +41,7 @@ public function setTabs(array $tabs)
/**
* Fetches a LayoutTab based on its tab id.
*
* @param mixed $tab_id The id of the tab
* @param mixed $tab_id The id of the tab
* @return LayoutTab The requested LayoutTab
*
* @throws InvalidArgumentException When no tab with the given id is available
Expand Down
Loading

0 comments on commit 368509c

Please sign in to comment.