Passed
Pull Request — master (#209)
by
unknown
33:50 queued 24:56
created
Classes/Services/Transfer/Repository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-interface Repository
18
-{
17
+interface Repository {
19 18
 
20 19
     public function ingest($document, $metsXml);
21 20
 
Please login to merge, or discard this patch.
Classes/Services/Transfer/FileId.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,13 +14,11 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class FileId
18
-{
17
+class FileId {
19 18
 
20 19
     protected $id = 0;
21 20
 
22
-    public function __construct($document)
23
-    {
21
+    public function __construct($document) {
24 22
 
25 23
         $idList   = array();
26 24
         $this->id = 0;
@@ -42,8 +40,7 @@  discard block
 block discarded – undo
42 40
 
43 41
     }
44 42
 
45
-    public function getId($file)
46
-    {
43
+    public function getId($file) {
47 44
 
48 45
         $fileId = $file->getDatastreamIdentifier();
49 46
         if (empty($fileId)) {
Please login to merge, or discard this patch.
Classes/Services/Identifier/Urn.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class Urn
18
-{
17
+class Urn {
19 18
 
20 19
     /**
21 20
      * clientRepository
@@ -25,8 +24,7 @@  discard block
 block discarded – undo
25 24
      */
26 25
     protected $clientRepository = null;
27 26
 
28
-    public function getUrn($niss)
29
-    {
27
+    public function getUrn($niss) {
30 28
 
31 29
         $client = $this->clientRepository->findAll()->current();
32 30
 
Please login to merge, or discard this patch.
Classes/Services/Identifier/UrnBuilder.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class UrnBuilder
18
-{
17
+class UrnBuilder {
19 18
 
20 19
     /**
21 20
      * Standard prefix of the URN for DNB (Deutsche Nationalbibliothek).
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
      * @throws InvalidArgumentException Thrown if at least one of the subnamespace parts contain other
47 46
      *                                  characters than characters.
48 47
      */
49
-    public function __construct($snid1, $snid2)
50
-    {
48
+    public function __construct($snid1, $snid2) {
51 49
 
52 50
         if (0 === preg_match('/^[a-zA-Z]+$/', $snid1)) {
53 51
             throw new \InvalidArgumentException('Used invalid first subnamespace identifier.');
@@ -67,8 +65,7 @@  discard block
 block discarded – undo
67 65
      * @throws InvalidArgumentException Thrown if the niss contains invalid characters.
68 66
      * @return string The URN.
69 67
      */
70
-    public function getUrn($niss)
71
-    {
68
+    public function getUrn($niss) {
72 69
 
73 70
         // regexp pattern for valid niss
74 71
         if (0 === preg_match('/^[a-zA-Z0-9\-]+$/', $niss)) {
@@ -89,8 +86,7 @@  discard block
 block discarded – undo
89 86
      * @throws InvalidArgumentException Thrown if the niss contains invalid characters.
90 87
      * @return integer Check digit.
91 88
      */
92
-    public function getCheckDigit($niss)
93
-    {
89
+    public function getCheckDigit($niss) {
94 90
 
95 91
         // regexp pattern for valid niss
96 92
         if (0 === preg_match('/^[a-zA-Z0-9\-]+$/', $niss)) {
@@ -140,8 +136,7 @@  discard block
 block discarded – undo
140 136
      * @param string $urn A partial URN with the checkdigit missing.
141 137
      * @return string The given URN with all characters replaced by numbers.
142 138
      */
143
-    private function replaceUrnChars($urn)
144
-    {
139
+    private function replaceUrnChars($urn) {
145 140
         // However, the preg_replace function calls itself on the result of a previos run. In order to get
146 141
         // the replacement right, characters and numbers in the arrays below have got a specific order to make
147 142
         // it work. Be careful when changing those numbers! Tests may help ;)
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/Controller/PaginateController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 /*
30 30
  * Class PaginateController
31 31
  */
32
-class PaginateController extends AbstractWidgetController
33
-{
32
+class PaginateController extends AbstractWidgetController {
34 33
     /**
35 34
      * @var array
36 35
      */
@@ -76,8 +75,7 @@  discard block
 block discarded – undo
76 75
     /**
77 76
      * @return void
78 77
      */
79
-    public function initializeAction()
80
-    {
78
+    public function initializeAction() {
81 79
         $this->objects = $this->widgetConfiguration['objects'];
82 80
         ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false);
83 81
         $itemsPerPage               = (int) $this->configuration['itemsPerPage'];
@@ -89,8 +87,7 @@  discard block
 block discarded – undo
89 87
      * @param int $currentPage
90 88
      * @return void
91 89
      */
92
-    public function indexAction($currentPage = 1)
93
-    {
90
+    public function indexAction($currentPage = 1) {
94 91
         // set current page
95 92
         if(!empty($this->widgetConfiguration['currentPage'])) {
96 93
             $currentPage = $this->widgetConfiguration['currentPage'];
@@ -123,8 +120,7 @@  discard block
 block discarded – undo
123 120
      *
124 121
      * @return void
125 122
      */
126
-    protected function calculateDisplayRange()
127
-    {
123
+    protected function calculateDisplayRange() {
128 124
         $maximumNumberOfLinks = $this->maximumNumberOfLinks;
129 125
         if ($maximumNumberOfLinks > $this->numberOfPages) {
130 126
             $maximumNumberOfLinks = $this->numberOfPages;
@@ -148,8 +144,7 @@  discard block
 block discarded – undo
148 144
      *
149 145
      * @return array
150 146
      */
151
-    protected function buildPagination()
152
-    {
147
+    protected function buildPagination() {
153 148
         $this->calculateDisplayRange();
154 149
         $pages = array();
155 150
         for ($i = $this->displayRangeStart; $i <= $this->displayRangeEnd; $i++) {
Please login to merge, or discard this patch.
Classes/Domain/Repository/DocumentTransferLogRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for DocumentTransferLogs
19 19
  */
20
-class DocumentTransferLogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
21
-{
20
+class DocumentTransferLogRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.
Classes/Domain/Repository/InputOptionListRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 /**
18 18
  * The repository for InputOptionLists
19 19
  */
20
-class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
21
-{
20
+class InputOptionListRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/DocumentFormPage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class DocumentFormPage extends AbstractFormElement
18
-{
17
+class DocumentFormPage extends AbstractFormElement {
19 18
 
20 19
 }
Please login to merge, or discard this patch.
Classes/Domain/Model/SysLanguage.php 1 patch
Braces   +11 added lines, -22 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@  discard block
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class SysLanguage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
18
-{
17
+class SysLanguage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
19 18
 
20 19
     /**
21 20
      * uid
@@ -57,8 +56,7 @@  discard block
 block discarded – undo
57 56
      *
58 57
      * @return string $uid
59 58
      */
60
-    public function getUid()
61
-    {
59
+    public function getUid() {
62 60
         return $this->uid;
63 61
     }
64 62
 
@@ -67,8 +65,7 @@  discard block
 block discarded – undo
67 65
      *
68 66
      * @param string $uid
69 67
      */
70
-    public function setUid($uid)
71
-    {
68
+    public function setUid($uid) {
72 69
         $this->uid = $uid;
73 70
     }
74 71
 
@@ -77,8 +74,7 @@  discard block
 block discarded – undo
77 74
      *
78 75
      * @return string $pid
79 76
      */
80
-    public function getPid()
81
-    {
77
+    public function getPid() {
82 78
         return $this->pid;
83 79
     }
84 80
 
@@ -87,8 +83,7 @@  discard block
 block discarded – undo
87 83
      *
88 84
      * @param string $pid
89 85
      */
90
-    public function setPid($pid)
91
-    {
86
+    public function setPid($pid) {
92 87
         $this->pid = $pid;
93 88
     }
94 89
 
@@ -97,8 +92,7 @@  discard block
 block discarded – undo
97 92
      *
98 93
      * @return string $title
99 94
      */
100
-    public function getTitle()
101
-    {
95
+    public function getTitle() {
102 96
         return $this->title;
103 97
     }
104 98
 
@@ -107,8 +101,7 @@  discard block
 block discarded – undo
107 101
      *
108 102
      * @param string $title
109 103
      */
110
-    public function setTitle($title)
111
-    {
104
+    public function setTitle($title) {
112 105
         $this->title = $title;
113 106
     }
114 107
 
@@ -117,8 +110,7 @@  discard block
 block discarded – undo
117 110
      *
118 111
      * @return string $flag
119 112
      */
120
-    public function getFlag()
121
-    {
113
+    public function getFlag() {
122 114
         return $this->flag;
123 115
     }
124 116
 
@@ -127,8 +119,7 @@  discard block
 block discarded – undo
127 119
      *
128 120
      * @param string $flag
129 121
      */
130
-    public function setFlag($flag)
131
-    {
122
+    public function setFlag($flag) {
132 123
         $this->flag = $flag;
133 124
     }
134 125
 
@@ -137,8 +128,7 @@  discard block
 block discarded – undo
137 128
      *
138 129
      * @return string $langIsocode
139 130
      */
140
-    public function getLangIsocode()
141
-    {
131
+    public function getLangIsocode() {
142 132
         return $this->langIsocode;
143 133
     }
144 134
 
@@ -147,8 +137,7 @@  discard block
 block discarded – undo
147 137
      *
148 138
      * @param string $langIsocode
149 139
      */
150
-    public function setLangIsocode($langIsocode)
151
-    {
140
+    public function setLangIsocode($langIsocode) {
152 141
         $this->langIsocode = $langIsocode;
153 142
     }
154 143
 }
Please login to merge, or discard this patch.