Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Jul 9, 2020
1 parent 98dcac7 commit ec63429
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ if (\class_exists(PhpCsFixer\Config::class, false)) {
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
'@PHP56Migration' => true,
'@PHP56Migration:risky' => true,
'@PHPUnit57Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
Expand Down Expand Up @@ -47,6 +50,7 @@ if (\class_exists(PhpCsFixer\Config::class, false)) {
'phpdoc_order' => true,
'single_line_throw' => false,
'static_lambda' => true,
'strict_param' => true,
])
->setFinder(
PhpCsFixer\Finder::create()->exclude(['Tests/Functional/cache'])->in(__DIR__)
Expand All @@ -57,11 +61,18 @@ if (\class_exists(PhpCsFixer\Config::class, false)) {
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->fixers([
'combine_consecutive_unsets',
'ereg_to_preg',
'header_comment' => $header,
'newline_after_open_tag',
'ordered_use',
'php_unit_construct',
'php_unit_dedicate_assert',
'php_unit_strict',
'phpdoc_order',
'short_array_syntax',
'short_echo_tag',
'strict_param',
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
Expand Down
4 changes: 2 additions & 2 deletions Entity/Traits/TicketMessageTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function setStatus($status)
*/
public function setStatusString($status)
{
$status = array_search(strtolower($status), TicketMessageInterface::STATUSES);
$status = array_search(strtolower($status), TicketMessageInterface::STATUSES, true);

if ($status > 0) {
$this->setStatus($status);
Expand Down Expand Up @@ -136,7 +136,7 @@ public function setPriority($priority)
*/
public function setPriorityString($priority)
{
$priority = array_search(strtolower($priority), TicketMessageInterface::PRIORITIES);
$priority = array_search(strtolower($priority), TicketMessageInterface::PRIORITIES, true);

if ($priority > 0) {
$this->setPriority($priority);
Expand Down
4 changes: 2 additions & 2 deletions Entity/Traits/TicketTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function setStatus($status)
*/
public function setStatusString($status)
{
$status = array_search(strtolower($status), TicketMessageInterface::STATUSES);
$status = array_search(strtolower($status), TicketMessageInterface::STATUSES, true);

if ($status > 0) {
$this->setStatus($status);
Expand Down Expand Up @@ -155,7 +155,7 @@ public function setPriority($priority)
*/
public function setPriorityString($priority)
{
$priority = array_search(strtolower($priority), TicketMessageInterface::PRIORITIES);
$priority = array_search(strtolower($priority), TicketMessageInterface::PRIORITIES, true);

if ($priority > 0) {
$this->setPriority($priority);
Expand Down
4 changes: 2 additions & 2 deletions Manager/TicketManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function getTicketStatus($statusStr)
}
}

return array_search($statusStr, $statuses);
return array_search($statusStr, $statuses, true);
}

/**
Expand All @@ -329,6 +329,6 @@ public function getTicketPriority($priorityStr)
}
}

return array_search($priorityStr, $priorities);
return array_search($priorityStr, $priorities, true);
}
}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Available translations for:

## Requirements

* PHP >= 5.6
* PHP ^5.6\|^7.0
* [Symfony][1] ^2.8|^3.4|^4.0
* [Knp Paginator bundle][2]

Expand All @@ -30,12 +30,12 @@ Available translations for:

## Version Matrix

| Ticket Bundle | Symfony | PHP |
| --------------| ---------------- | ----- |
| [3.x][6] | ^2.8\|^3.4\|^4.0 | >=5.6 |
| [2.x][7] | ^2.7\|^3.4 | >=5.3 |
| [1.x][8] | ^2.3 | >=5.3 |
| [0.x][9] | ^2.3 | >=5.3 |
| Ticket Bundle | Symfony | PHP |
| --------------| ---------------- | ---------- |
| [3.x][6] | ^2.8\|^3.4\|^4.0 | ^5.6\|^7.0 |
| [2.x][7] | ^2.7\|^3.4 | ^5.3\|^7.0 |
| [1.x][8] | ^2.3 | ^5.3\|^7.0 |
| [0.x][9] | ^2.3 | ^5.3\|^7.0 |

## Demo

Expand Down

0 comments on commit ec63429

Please sign in to comment.