mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-02-16 21:08:41 +00:00
phpstan fixes
This commit is contained in:
parent
f1581f71c2
commit
e087e42c20
|
|
@ -52,13 +52,16 @@ final class SearchController extends Controller
|
||||||
$lang = $this->app->l11nServer->getLanguage();
|
$lang = $this->app->l11nServer->getLanguage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$searchIdStartPos = \stripos($request->getData('search'), ':');
|
||||||
|
$patternStartPos = $searchIdStartPos === false ? -1 : \stripos(
|
||||||
|
$request->getData('search'),
|
||||||
|
' ',
|
||||||
|
$searchIdStartPos
|
||||||
|
);
|
||||||
|
|
||||||
$pattern = \substr(
|
$pattern = \substr(
|
||||||
$request->getData('search'),
|
$request->getData('search'),
|
||||||
\stripos(
|
$patternStartPos + 1
|
||||||
$request->getData('search'),
|
|
||||||
' ',
|
|
||||||
\stripos($request->getData('search'), ':')
|
|
||||||
) + 1
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$files = [];
|
$files = [];
|
||||||
|
|
@ -79,7 +82,7 @@ final class SearchController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$contentLength = \strlen($content);
|
$contentLength = \strlen($content);
|
||||||
$headline = \strtok($content, "\n");
|
$headline = ($temp = \strtok($content, "\n")) === false ? '' : $temp;
|
||||||
|
|
||||||
$t1 = \strripos($content, "\n", -$contentLength + $found);
|
$t1 = \strripos($content, "\n", -$contentLength + $found);
|
||||||
$t2 = \strripos($content, '.', -$contentLength + $found);
|
$t2 = \strripos($content, '.', -$contentLength + $found);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user