@@ -106,6 +106,6 @@ |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | public function getProcessNumberString() { |
109 | - return strtoupper($this->getOwnerId()).'-'. $this->getYear().'-'.$this->getCounter(); |
|
109 | + return strtoupper($this->getOwnerId()) . '-' . $this->getYear() . '-' . $this->getCounter(); |
|
110 | 110 | } |
111 | 111 | } |
112 | 112 | \ No newline at end of file |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $datetime = new \DateTime(); |
32 | 32 | $currentYear = $datetime->format('y'); |
33 | 33 | |
34 | - $processNumber = $processNumberRepository->getHighestProcessNumberByOwnerIdAndYear(strtolower($ownerId),$currentYear); |
|
34 | + $processNumber = $processNumberRepository->getHighestProcessNumberByOwnerIdAndYear(strtolower($ownerId), $currentYear); |
|
35 | 35 | |
36 | 36 | if ($processNumber) { |
37 | 37 | $counter = $processNumber->getCounter() + 1; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $this->currentPage = 1; |
89 | 89 | } else { |
90 | 90 | // restore query |
91 | - $this->query = (!empty($session[$this->action]['query'])) ? $session[$this->action]['query'] : array(); |
|
91 | + $this->query = (!empty($session[$this->action]['query'])) ? $session[$this->action]['query'] : array (); |
|
92 | 92 | // set current page |
93 | 93 | if ((!empty($currentPage))) { |
94 | 94 | $this->currentPage = MathUtility::forceIntegerInRange($currentPage, 1); |
@@ -197,8 +197,8 @@ discard block |
||
197 | 197 | */ |
198 | 198 | private function viewAssign() |
199 | 199 | { |
200 | - $this->view->assign('query', $this->query); |
|
201 | - $this->view->assign('resultList', $this->resultList); |
|
200 | + $this->view->assign('query', $this->query); |
|
201 | + $this->view->assign('resultList', $this->resultList); |
|
202 | 202 | $this->view->assign('currentPage', $this->currentPage); |
203 | 203 | } |
204 | 204 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | public function __construct($document) |
23 | 23 | { |
24 | 24 | |
25 | - $idList = array(); |
|
25 | + $idList = array (); |
|
26 | 26 | $this->id = 0; |
27 | 27 | |
28 | 28 | if (is_a($document->getFile(), '\TYPO3\CMS\Extbase\Persistence\ObjectStorage')) { |
@@ -66,9 +66,9 @@ |
||
66 | 66 | $client = $this->clientRepository->findAll()->current(); |
67 | 67 | |
68 | 68 | // build es json |
69 | - $esJson = array(); |
|
69 | + $esJson = array (); |
|
70 | 70 | $esJson['OWNER_ID'] = $client->getOwnerId(); |
71 | - $esJson['_dissemination'] = array(); |
|
71 | + $esJson['_dissemination'] = array (); |
|
72 | 72 | $esJson['_dissemination']['_content'] = json_decode($json); |
73 | 73 | |
74 | 74 | $esJson = json_encode($esJson); |
@@ -150,13 +150,13 @@ |
||
150 | 150 | $nbn = strtolower($urn); |
151 | 151 | |
152 | 152 | // array of characters to match |
153 | - $search_pattern = array('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/', |
|
153 | + $search_pattern = array ('/9/', '/8/', '/7/', '/6/', '/5/', '/4/', '/3/', '/2/', '/1/', '/0/', '/a/', '/b/', '/c/', |
|
154 | 154 | '/d/', '/e/', '/f/', '/g/', '/h/', '/i/', '/j/', '/k/', '/l/', '/m/', '/n/', '/o/', '/p/', '/q/', '/r/', '/s/', |
155 | 155 | '/t/', '/u/', '/v/', '/w/', '/x/', '/y/', '/z/', '/-/', '/:/'); |
156 | 156 | |
157 | 157 | // array of corresponding replacements, '9' will be temporarily replaced with placeholder '_' to prevent |
158 | 158 | // replacement of '41' with '52' |
159 | - $replacements = array('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29, |
|
159 | + $replacements = array ('_', 9, 8, 7, 6, 5, 4, 3, 2, 1, 18, 14, 19, 15, 16, 21, 22, 23, 24, 25, 42, 26, 27, 13, 28, 29, |
|
160 | 160 | 31, 12, 32, 33, 11, 34, 35, 36, 37, 38, 39, 17); |
161 | 161 | |
162 | 162 | // replace matching pattern in given nbn with corresponding replacement |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @var array |
36 | 36 | */ |
37 | - protected $configuration = array( |
|
37 | + protected $configuration = array ( |
|
38 | 38 | 'itemsPerPage' => 10, |
39 | 39 | 'insertAbove' => false, |
40 | 40 | 'insertBelow' => true, |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | public function indexAction($currentPage = 1) |
93 | 93 | { |
94 | 94 | // set current page |
95 | - if(!empty($this->widgetConfiguration['currentPage'])) { |
|
95 | + if (!empty($this->widgetConfiguration['currentPage'])) { |
|
96 | 96 | $currentPage = $this->widgetConfiguration['currentPage']; |
97 | 97 | }; |
98 | 98 | $this->currentPage = (int) $currentPage; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $offset = ((int) ($itemsPerPage * ($this->currentPage - 1))); |
111 | 111 | } |
112 | 112 | } |
113 | - $this->view->assign('contentArguments', array( |
|
113 | + $this->view->assign('contentArguments', array ( |
|
114 | 114 | $this->widgetConfiguration['as'] => $this->objects, |
115 | 115 | )); |
116 | 116 | $this->view->assign('configuration', $this->configuration); |
@@ -151,11 +151,11 @@ discard block |
||
151 | 151 | protected function buildPagination() |
152 | 152 | { |
153 | 153 | $this->calculateDisplayRange(); |
154 | - $pages = array(); |
|
154 | + $pages = array (); |
|
155 | 155 | for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) { |
156 | - $pages[] = array('number' => $i, 'isCurrent' => $i === $this->currentPage); |
|
156 | + $pages[] = array ('number' => $i, 'isCurrent' => $i === $this->currentPage); |
|
157 | 157 | } |
158 | - $pagination = array( |
|
158 | + $pagination = array ( |
|
159 | 159 | 'pages' => $pages, |
160 | 160 | 'current' => $this->currentPage, |
161 | 161 | 'numberOfPages' => $this->numberOfPages, |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | * @var string ownerId |
34 | 34 | * @return array The found ProcessNumber Object |
35 | 35 | */ |
36 | - public function getHighestProcessNumberByOwnerIdAndYear($ownerId,$year) |
|
36 | + public function getHighestProcessNumberByOwnerIdAndYear($ownerId, $year) |
|
37 | 37 | { |
38 | 38 | |
39 | 39 | $query = $this->createQuery(); |
40 | 40 | |
41 | - $constraints = array(); |
|
41 | + $constraints = array (); |
|
42 | 42 | $constraints[] = $query->equals('owner_id', $ownerId, false); |
43 | 43 | |
44 | 44 | $constraints[] = $query->equals('year', $year); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $query->matching($query->logicalAnd($constraints)); |
48 | 48 | } |
49 | 49 | |
50 | - $query->setOrderings(array("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
|
50 | + $query->setOrderings(array ("counter" => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING)); |
|
51 | 51 | |
52 | 52 | $result = $query->execute(); |
53 | 53 |
@@ -247,7 +247,7 @@ |
||
247 | 247 | |
248 | 248 | public function getNewFileNames() |
249 | 249 | { |
250 | - $fileNames = array(); |
|
250 | + $fileNames = array (); |
|
251 | 251 | foreach ($this->getNewFiles() as $file) { |
252 | 252 | $fileNames[] = $file->getTitle(); |
253 | 253 | } |