Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SolumDeSignum/Invoices
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.00
Choose a base ref
...
head repository: SolumDeSignum/Invoices
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 8 commits
  • 8 files changed
  • 2 contributors

Commits on Sep 13, 2024

  1. 1.) added: standartized package skeleton

    Signed-off-by: Oskars Germovs <oskars_germovs@inbox.lv>
    Faks committed Sep 13, 2024
    Copy the full SHA
    d0e6830 View commit details

Commits on Oct 18, 2024

  1. 1.) added: DeferrableProvider

    2.) added: standardization
    3.) added: code format
    
    Signed-off-by: Oskars Germovs <oskars_germovs@inbox.lv>
    Faks committed Oct 18, 2024
    Copy the full SHA
    b882644 View commit details
  2. 1.) added: bugfix to typo in singleton

    2.) added: bugfix to ordering in class methods
    
    Signed-off-by: Oskars Germovs <oskars_germovs@inbox.lv>
    Faks committed Oct 18, 2024
    Copy the full SHA
    450f966 View commit details
  3. Merge pull request #5 from SolumDeSignum/dev

    Dev
    Faks authored Oct 18, 2024
    Copy the full SHA
    2958f31 View commit details
  4. 1.) added: better names on publishing

    2.) added: code format
    
    Signed-off-by: Oskars Germovs <oskars_germovs@inbox.lv>
    Faks committed Oct 18, 2024
    Copy the full SHA
    837407e View commit details
  5. Merge pull request #6 from SolumDeSignum/dev

    1.) added: better names on publishing
    Faks authored Oct 18, 2024
    Copy the full SHA
    15a6323 View commit details
  6. 1.) reverted: back wrong funciality we are not using DeferrableProvider

    Signed-off-by: Oskars Germovs <oskars_germovs@inbox.lv>
    Faks committed Oct 18, 2024
    Copy the full SHA
    1c60be4 View commit details
  7. Merge pull request #7 from SolumDeSignum/dev

    1.) reverted: back wrong funciality we are not using DeferrableProvider
    Faks authored Oct 18, 2024
    Copy the full SHA
    2e7aff3 View commit details
Showing with 117 additions and 17 deletions.
  1. +18 −0 .editorconfig
  2. +20 −0 .eslintrc.js
  3. +16 −0 .gitattributes
  4. +13 −0 .gitignore
  5. +2 −0 phpstan-baseline.neon
  6. +14 −0 phpstan.neon.dist
  7. +17 −0 phpunit.xml.dist
  8. +17 −17 src/InvoicesServiceProvider.php
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'esnext',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'plugin:prettier/recommended'],
rules: {
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
},
};
16 changes: 16 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html

# Ignore all test and documentation with "export-ignore".
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpunit.xml.dist export-ignore
/art export-ignore
/docs export-ignore
/tests export-ignore
/.editorconfig export-ignore
/.php_cs.dist.php export-ignore
/phpstan* export-ignore
/CHANGELOG.md export-ignore
/CONTRIBUTING.md export-ignore
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
vendor
composer.lock
.idea/
.DS_Store
.phpunit.result.cache
node_modules/
images/
packages/*
build
.idea
.phpunit.cache
.phpunit.result.cache
.php-cs-fixer.cache
2 changes: 2 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
ignoreErrors:
14 changes: 14 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
includes:
- ./vendor/larastan/larastan/extension.neon
- phpstan-baseline.neon

parameters:
level: 9
paths:
- src
- config
tmpDir: build/phpstan
checkOctaneCompatibility: true

ignoreErrors:
- '#Unsafe usage of new static#'
17 changes: 17 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
colors="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
34 changes: 17 additions & 17 deletions src/InvoicesServiceProvider.php
Original file line number Diff line number Diff line change
@@ -39,34 +39,34 @@ public function register(): void
);

// Register the service the package provides.
$this->app->singleton(
'package-translator-loader',
function ($app) {
return new Invoices($app);
}
);
$this->app->singleton('invoices', function ($app) {
return new Invoices($app);
});
}

/**
* Console-specific booting.
* Get the services provided by the provider.
*
* @return void
* @return array
*/
protected function bootForConsole(): void
public function provides(): array
{
$this->publishes([
__DIR__ . '/../resources/views/' => resource_path('views/vendor/invoices'),
__DIR__ . '/../config/invoices.php' => config_path('invoices.php'),
], 'invoices');
return ['invoices'];
}

/**
* Get the services provided by the provider.
* Console-specific booting.
*
* @return array
* @return void
*/
public function provides(): array
protected function bootForConsole(): void
{
return ['invoices'];
$this->publishes([
__DIR__ . '/../resources/views/' => resource_path('views/vendor/invoices'),
__DIR__ . '/../config/invoices.php' => config_path('invoices.php'),
], [
'invoices.views',
'invoices.config'
]);
}
}