Skip to content

Commit

Permalink
Merge pull request #44 from codebar-ag/feature-refresh
Browse files Browse the repository at this point in the history
Feature Refresh
  • Loading branch information
StanBarrows authored Feb 7, 2024
2 parents cdbd06f + 81dffb5 commit 719a62d
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 75 deletions.
52 changes: 52 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Bug Report
description: Report an Issue or Bug with the Package
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
- type: textarea
id: what-happened
attributes:
label: What happened?
description: What did you expect to happen?
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
validations:
required: true

- type: input
id: package-version
attributes:
label: Package Version
description: What version of our Package are you running? Please be as specific as possible
placeholder: 2.0.0
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP Version
description: What version of PHP are you running? Please be as specific as possible
placeholder: 8.2.0
validations:
required: true
- type: input
id: laravel-version
attributes:
label: Laravel Version
description: What version of Laravel are you running? Please be as specific as possible
placeholder: 9.0.0
validations:
required: true
- type: dropdown
id: operating-systems
attributes:
label: Which operating systems does with happen with?
description: You may select more than one.
multiple: true
options:
- macOS
- Windows
- Linux
11 changes: 4 additions & 7 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
- name: Questions & Feature Requests
url: https://github.com/codebar-ag/laravel-default/issues/new
about: Ask the community for help
- name: Request a feature
url: https://github.com/codebar-ag/laravel-default/issues/new
about: Share ideas for new features
- name: Report a bug
url: https://github.com/codebar-ag/laravel-default/issues/new
about: Report a reproducable bug
- name: Report a security issue
url: https://github.com/codebar-ag/laravel-default/security/policy
about: Learn how to notify us for sensitive bugs
5 changes: 2 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
matrix:
os: [ ubuntu-latest ]
php: [ 8.2, 8.3 ]
laravel: [ 10.*]
laravel: [ 10.33.* ]
testbench: [ 8.* ]
stability: [ prefer-lowest, prefer-stable ]
include:
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand Down
31 changes: 15 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@
"require": {
"php": "^8.2",
"codebar-ag/laravel-feature-policy": "^1.0",
"guzzlehttp/guzzle": "^7.2",
"guzzlehttp/guzzle": "^7.8",
"illuminate/contracts": "^10.0",
"spatie/laravel-csp": "^2.8",
"spatie/laravel-enum": "^3.0",
"spatie/laravel-health": "^1.22",
"spatie/laravel-package-tools": "^1.14",
"spatie/laravel-ray": "^1.32",
"spatie/security-advisories-health-check": "^1.0"
"spatie/laravel-health": "^1.23",
"spatie/laravel-package-tools": "^1.16",
"spatie/laravel-ray": "^1.33",
"spatie/security-advisories-health-check": "^1.1"
},
"require-dev": {
"laravel/pint": "^1.5",
"nunomaduro/collision": "^7.0",
"nunomaduro/larastan": "^2.4.0",
"orchestra/testbench": "^8.0",
"pestphp/pest": "2.x-dev",
"pestphp/pest-plugin-laravel": "2.x-dev",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^10.0"
"laravel/pint": "^1.13",
"nunomaduro/collision": "^7.10",
"nunomaduro/larastan": "^2.8",
"orchestra/testbench": "^8.20",
"pestphp/pest": "^2.30",
"pestphp/pest-plugin-laravel": "^2.2",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -69,7 +69,6 @@
"CodebarAg\\LaravelDefault\\LaravelDefaultServiceProvider"
],
"aliases": {
"HelperCache": "CodebarAg\\LaravelDefault\\Facades\\HelperCache",
"HelperDate": "CodebarAg\\LaravelDefault\\Facades\\HelperDate",
"HelperIcon": "CodebarAg\\LaravelDefault\\Facades\\HelperIcon",
"HelperMoney": "CodebarAg\\LaravelDefault\\Facades\\HelperMoney",
Expand Down
18 changes: 0 additions & 18 deletions src/Facades/HelperCache.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Helpers/HelperCache.php

This file was deleted.

9 changes: 4 additions & 5 deletions src/Helpers/HelperFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@

namespace CodebarAg\LaravelDefault\Helpers;

use Illuminate\Support\Number;

class HelperFile
{
public function formatBytes(int $size, int $precision = 1): string
public function formatBytes(int $size, int $precision = 0): string
{
$base = log($size, 1024);
$suffixes = ['B', 'KB', 'MB', 'GB', 'TB'];

return round(pow(1024, $base - floor($base)), $precision).' '.$suffixes[floor($base)];
return Number::fileSize($size, $precision);
}

public function nameWithDate(string $name): string
Expand Down
9 changes: 0 additions & 9 deletions tests/Helper/HelperCacheClassTest.php

This file was deleted.

0 comments on commit 719a62d

Please sign in to comment.