1 | <?php |
||
25 | |||
26 | /** |
||
27 | * Class tx_crawler_domain_process_repository |
||
28 | */ |
||
29 | class tx_crawler_domain_process_repository extends AOE\Crawler\Domain\Repository\AbstractRepository |
||
30 | { |
||
31 | |||
32 | /** |
||
33 | * @var string object class name |
||
34 | */ |
||
35 | protected $objectClassname = 'tx_crawler_domain_process'; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $tableName = 'tx_crawler_process'; |
||
41 | |||
42 | /** |
||
43 | * This method is used to find all cli processes within a limit. |
||
44 | * |
||
45 | * @param string $orderField |
||
46 | * @param string $orderDirection |
||
47 | * @param integer $itemCount |
||
48 | * @param integer $offset |
||
49 | * @param string $where |
||
50 | * |
||
51 | * @return tx_crawler_domain_process_collection |
||
52 | */ |
||
53 | public function findAll($orderField = '', $orderDirection = 'DESC', $itemCount = null, $offset = null, $where = '') |
||
54 | { |
||
55 | /** @var tx_crawler_domain_process_collection $collection */ |
||
56 | $collection = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_crawler_domain_process_collection'); |
||
|
|||
57 | |||
58 | $orderField = trim($orderField); |
||
59 | $orderField = empty($orderField) ? 'process_id' : $orderField; |
||
60 | |||
61 | $orderDirection = strtoupper(trim($orderDirection)); |
||
62 | $orderDirection = in_array($orderDirection, ['ASC', 'DESC']) ? $orderDirection : 'DESC'; |
||
63 | |||
64 | $rows = $this->getDB()->exec_SELECTgetRows( |
||
65 | '*', |
||
66 | $this->tableName, |
||
67 | $where, |
||
68 | '', |
||
69 | htmlspecialchars($orderField) . ' ' . htmlspecialchars($orderDirection), |
||
70 | self::getLimitFromItemCountAndOffset($itemCount, $offset) |
||
71 | ); |
||
72 | |||
73 | if (is_array($rows)) { |
||
74 | foreach ($rows as $row) { |
||
75 | $collection->append(\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($this->objectClassname, $row)); |
||
76 | } |
||
77 | } |
||
78 | |||
79 | return $collection; |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * This method is used to count all processes in the process table. |
||
84 | * |
||
85 | * @param string $where Where clause |
||
86 | * |
||
87 | * @return integer |
||
88 | */ |
||
89 | public function countAll($where = '1 = 1') |
||
92 | } |
||
93 | |||
94 | /** |
||
95 | * Returns the number of active processes. |
||
96 | * |
||
97 | * @return integer |
||
98 | */ |
||
99 | public function countActive() |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * Returns the number of processes that live longer than the given timestamp. |
||
106 | * |
||
107 | * @param integer $ttl |
||
108 | * |
||
109 | * @return integer |
||
110 | */ |
||
111 | public function countNotTimeouted($ttl) |
||
114 | } |
||
115 | |||
116 | /** |
||
117 | * Get limit clause |
||
118 | * |
||
119 | * @param integer $itemCount |
||
120 | * @param integer $offset |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | public static function getLimitFromItemCountAndOffset($itemCount, $offset) |
||
125 | { |
||
133 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths