Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSR-4 #23

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
todo:
keyword: "@makeAnIssue"
39 changes: 39 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: PHP Composer

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

vendor/
.idea/
2 changes: 2 additions & 0 deletions Library/NCL/NCL.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
namespace seagullua\NameCaseLib\NCL;

/**
* @license Dual licensed under the MIT or GPL Version 2 licenses.
* @package NameCaseLib
Expand Down
11 changes: 3 additions & 8 deletions Library/NCL/NCLNameCaseCore.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
namespace seagullua\NameCaseLib\NCL;

use seagullua\NameCaseLib\NCLNameCaseRu;

/**
* @license Dual licensed under the MIT or GPL Version 2 licenses.
Expand All @@ -7,14 +10,6 @@
/**
*
*/
if (!defined('NCL_DIR'))
{
define('NCL_DIR', dirname(__FILE__));
}

require_once NCL_DIR . '/NCL.php';
require_once NCL_DIR . '/NCLStr.php';
require_once NCL_DIR . '/NCLNameCaseWord.php';

/**
* <b>NCL NameCase Core</b>
Expand Down
1 change: 1 addition & 0 deletions Library/NCL/NCLNameCaseWord.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
namespace seagullua\NameCaseLib\NCL;
/**
* @license Dual licensed under the MIT or GPL Version 2 licenses.
* @package NameCaseLib
Expand Down
1 change: 1 addition & 0 deletions Library/NCL/NCLStr.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
namespace seagullua\NameCaseLib\NCL;
/**
* @license Dual licensed under the MIT or GPL Version 2 licenses.
* @package NameCaseLib
Expand Down
Loading