-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reformat sources for PSR-12 compliance
- Loading branch information
Showing
10 changed files
with
1,143 additions
and
1,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
Oops, something went wrong.