Skip to content

Commit

Permalink
reformat sources for PSR-12 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
apemsel committed Mar 29, 2024
1 parent f38a1e4 commit 2fa2aef
Show file tree
Hide file tree
Showing 10 changed files with 1,143 additions and 1,058 deletions.
67 changes: 40 additions & 27 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
{
"name": "apemsel/attributed-string",
"description": "A collection of fast and easy to use attributed string classes for PHP. Attributed strings can have multiple attributes for each character of the string and are for example used for word processors and natural language processing.",
"keywords": ["string", "attribute", "attributed", "mutable", "span", "tokenized", "token", "tokenizer", "text", "analysis", "language", "nlp"],
"homepage": "http://github.com/apemsel/AttributedString",
"license": "MIT",
"authors": [
{
"name": "Adrian Pemsel",
"email": "[email protected]",
"homepage": "http://adrianpemsel.de",
"role": "Developer"
"name": "apemsel/attributed-string",
"description": "A collection of fast and easy to use attributed string classes for PHP. Attributed strings can have multiple attributes for each character of the string and are for example used for word processors and natural language processing.",
"keywords": [
"string",
"attribute",
"attributed",
"mutable",
"span",
"tokenized",
"token",
"tokenizer",
"text",
"analysis",
"language",
"nlp"
],
"homepage": "http://github.com/apemsel/AttributedString",
"license": "MIT",
"authors": [
{
"name": "Adrian Pemsel",
"email": "[email protected]",
"homepage": "https://adrianpemsel.de",
"role": "Developer"
}
],
"config": {
"vendor-dir": "vendor"
},
"require": {
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
"apemsel\\AttributedString\\": "src/"
}
}
],
"config": {
"vendor-dir": "vendor"
},
"require": {
"php": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
"apemsel\\AttributedString\\": "src/"
}
}
}
}
7 changes: 4 additions & 3 deletions src/Attribute.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php

namespace apemsel\AttributedString;

interface Attribute extends \ArrayAccess, \Countable
{
public function setRange(int $from, int $to, bool $state = true): void;
public function toString(string $true = "1", string $false = "0"): string;
public function search(int $offset = 0, bool $returnLength = false, bool $state = true, bool $strict = true);
public function setRange(int $from, int $to, bool $state = true): void;
public function toString(string $true = "1", string $false = "0"): string;
public function search(int $offset = 0, bool $returnLength = false, bool $state = true, bool $strict = true);
}
Loading

0 comments on commit 2fa2aef

Please sign in to comment.