Passed
Pull Request — master (#132)
by
unknown
10:03
created
Classes/Services/Transfer/ElasticsearchRepository.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @var \EWW\Dpf\Domain\Repository\ClientRepository
31 31
      * @inject
32 32
      */
33
-    protected $clientRepository = null;
33
+    protected $clientRepository = NULL;
34 34
 
35 35
     protected $host;
36 36
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -16 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
 use TYPO3\CMS\Extbase\Object\ObjectManager;
24 24
 use EWW\Dpf\Configuration\ClientConfigurationManager;
25 25
 
26
-class ElasticsearchRepository implements Repository
27
-{
26
+class ElasticsearchRepository implements Repository {
28 27
 
29 28
     /**
30 29
      * clientRepository
@@ -42,8 +41,7 @@  discard block
 block discarded – undo
42 41
 
43 42
     protected $url;
44 43
 
45
-    public function __construct()
46
-    {
44
+    public function __construct() {
47 45
 
48 46
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
49 47
         $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class);
@@ -62,8 +60,7 @@  discard block
 block discarded – undo
62 60
      * saves new document into elasticsearch local
63 61
      * @param \EWW\Dpf\Domain\Model\Document $document
64 62
      */
65
-    public function add($document, $json)
66
-    {
63
+    public function add($document, $json) {
67 64
 
68 65
         $client = $this->clientRepository->findAll()->current();
69 66
 
@@ -94,8 +91,7 @@  discard block
 block discarded – undo
94 91
      * @param \EWW\Dpf\Domain\Model\Document $document
95 92
      * @param string $state
96 93
      */
97
-    public function delete($document, $state)
98
-    {
94
+    public function delete($document, $state) {
99 95
 
100 96
         try {
101 97
             $response = Request::delete($this->url . $document->getUid())
@@ -107,23 +103,19 @@  discard block
 block discarded – undo
107 103
 
108 104
     }
109 105
 
110
-    public function retrieve($id)
111
-    {
106
+    public function retrieve($id) {
112 107
         # not implemented yet
113 108
     }
114 109
 
115
-    public function ingest($document, $metsXML)
116
-    {
110
+    public function ingest($document, $metsXML) {
117 111
         # not implemented yet
118 112
     }
119 113
 
120
-    public function update($document, $metsXml)
121
-    {
114
+    public function update($document, $metsXml) {
122 115
         # not implemented yet
123 116
     }
124 117
 
125
-    public function getNextDocumentId()
126
-    {
118
+    public function getNextDocumentId() {
127 119
         # not implemented yet
128 120
     }
129 121
 
Please login to merge, or discard this patch.
Classes/Services/Identifier/Urn.php 2 patches
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.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      * @var \EWW\Dpf\Domain\Repository\ClientRepository
24 24
      * @inject
25 25
      */
26
-    protected $clientRepository = null;
26
+    protected $clientRepository = NULL;
27 27
 
28 28
     public function getUrn($niss)
29 29
     {
Please login to merge, or discard this patch.
Classes/Services/Identifier/UrnBuilder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,13 +150,13 @@
 block discarded – undo
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
Please login to merge, or discard this 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/Services/Email/Notifier.php 3 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,13 +163,13 @@
 block discarded – undo
163 163
 
164 164
     protected function sendMail($reveiver, $subject, $body, $args, $mailType)
165 165
     {
166
-        $emailReceiver = array();
166
+        $emailReceiver = array ();
167 167
         $emailReceiver[$reveiver] = $reveiver;
168 168
         $message = (new \TYPO3\CMS\Core\Mail\MailMessage())
169
-            ->setFrom(array('[email protected]' => '[email protected]'))
169
+            ->setFrom(array ('[email protected]' => '[email protected]'))
170 170
             ->setTo($emailReceiver)
171
-            ->setSubject($this->replaceMarkers($subject,$args))
172
-            ->setBody($this->replaceMarkers($body,$args),$mailType);
171
+            ->setSubject($this->replaceMarkers($subject, $args))
172
+            ->setBody($this->replaceMarkers($body, $args), $mailType);
173 173
         $message->send();
174 174
     }
175 175
 
Please login to merge, or discard this 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 Notifier
18
-{
17
+class Notifier {
19 18
 
20 19
     /**
21 20
      * clientRepository
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      */
35 34
     protected $documentTypeRepository = null;
36 35
 
37
-    public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document)
38
-    {
36
+    public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document) {
39 37
 
40 38
         try {
41 39
             $client = $this->clientRepository->findAll()->current();
@@ -102,8 +100,7 @@  discard block
 block discarded – undo
102 100
 
103 101
     }
104 102
 
105
-    public function sendIngestNotification(\EWW\Dpf\Domain\Model\Document $document)
106
-    {
103
+    public function sendIngestNotification(\EWW\Dpf\Domain\Model\Document $document) {
107 104
 
108 105
         try {
109 106
             $client = $this->clientRepository->findAll()->current();
@@ -150,8 +147,7 @@  discard block
 block discarded – undo
150 147
     }
151 148
 
152 149
 
153
-    protected function replaceMarkers($message, $args)
154
-    {
150
+    protected function replaceMarkers($message, $args) {
155 151
         if (is_array($args)) {
156 152
             foreach ($args as $key => $value) {
157 153
                 $message = str_replace($key, $value, $message);
@@ -161,8 +157,7 @@  discard block
 block discarded – undo
161 157
     }
162 158
 
163 159
 
164
-    protected function sendMail($reveiver, $subject, $body, $args, $mailType)
165
-    {
160
+    protected function sendMail($reveiver, $subject, $body, $args, $mailType) {
166 161
         $emailReceiver = array();
167 162
         $emailReceiver[$reveiver] = $reveiver;
168 163
         $message = (new \TYPO3\CMS\Core\Mail\MailMessage())
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @var \EWW\Dpf\Domain\Repository\ClientRepository
24 24
      * @inject
25 25
      */
26
-    protected $clientRepository = null;
26
+    protected $clientRepository = NULL;
27 27
 
28 28
 
29 29
     /**
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @var \EWW\Dpf\Domain\Repository\DocumentTypeRepository
33 33
      * @inject
34 34
      */
35
-    protected $documentTypeRepository = null;
35
+    protected $documentTypeRepository = NULL;
36 36
 
37 37
     public function sendNewDocumentNotification(\EWW\Dpf\Domain\Model\Document $document)
38 38
     {
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/PaginateViewHelper.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      * @param array $configuration
69 69
      * @return string
70 70
      */
71
-    public function render($objects, $total, $as, $currentPage, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
71
+    public function render($objects, $total, $as, $currentPage, array $configuration = array ('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
72 72
     {
73 73
         return $this->initiateSubRequest();
74 74
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
  * So, there is no negative performance overhead in using the Paginate Widget.
51 51
  *
52 52
  */
53
-class PaginateViewHelper extends \TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper
54
-{
53
+class PaginateViewHelper extends \TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper {
55 54
 
56 55
     /**
57 56
      * @var \EWW\Dpf\ViewHelpers\Widget\Controller\PaginateController
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * @param array $configuration
69 68
      * @return string
70 69
      */
71
-    public function render($objects, $total, $as, $currentPage, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
72
-    {
70
+    public function render($objects, $total, $as, $currentPage, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99)) {
73 71
         return $this->initiateSubRequest();
74 72
     }
75 73
 }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      * @param array $configuration
69 69
      * @return string
70 70
      */
71
-    public function render($objects, $total, $as, $currentPage, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => false, 'insertBelow' => true, 'maximumNumberOfLinks' => 99))
71
+    public function render($objects, $total, $as, $currentPage, array $configuration = array('itemsPerPage' => 10, 'insertAbove' => FALSE, 'insertBelow' => TRUE, 'maximumNumberOfLinks' => 99))
72 72
     {
73 73
         return $this->initiateSubRequest();
74 74
     }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/Controller/PaginateController.php 3 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this 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.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected $configuration = array(
38 38
         'itemsPerPage'         => 10,
39
-        'insertAbove'          => false,
40
-        'insertBelow'          => true,
39
+        'insertAbove'          => FALSE,
40
+        'insertBelow'          => TRUE,
41 41
         'maximumNumberOfLinks' => 99,
42 42
         'addQueryStringMethod' => '',
43 43
         'section'              => '',
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * @var int
68 68
      */
69
-    protected $displayRangeStart = null;
69
+    protected $displayRangeStart = NULL;
70 70
 
71 71
     /**
72 72
      * @var int
73 73
      */
74
-    protected $displayRangeEnd = null;
74
+    protected $displayRangeEnd = NULL;
75 75
 
76 76
     /**
77 77
      * @return void
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function initializeAction()
80 80
     {
81 81
         $this->objects = $this->widgetConfiguration['objects'];
82
-        ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], false);
82
+        ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $this->widgetConfiguration['configuration'], FALSE);
83 83
         $itemsPerPage               = (int) $this->configuration['itemsPerPage'];
84 84
         $this->numberOfPages        = $itemsPerPage > 0 ? ceil($this->widgetConfiguration['total'] / $itemsPerPage) : 0;
85 85
         $this->maximumNumberOfLinks = (int) $this->configuration['maximumNumberOfLinks'];
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
         if ($this->currentPage > $this->numberOfPages) {
103 103
             // set $modifiedObjects to NULL if the page does not exist
104
-            $modifiedObjects = null;
104
+            $modifiedObjects = NULL;
105 105
         } else {
106 106
             // modify query
107 107
             $itemsPerPage = (int) $this->configuration['itemsPerPage'];
Please login to merge, or discard this patch.
Classes/ViewHelpers/InArrayViewHelper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,15 +14,13 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class InArrayViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
18
-{
17
+class InArrayViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
19 18
 
20 19
     /**
21 20
      * @param mixed $needle The searched value
22 21
      * @param mixed $array The array
23 22
      */
24
-    public function render($needle, $array)
25
-    {
23
+    public function render($needle, $array) {
26 24
         return in_array($needle, $array);
27 25
     }
28 26
 
Please login to merge, or discard this patch.
Classes/ViewHelpers/ShowStateViewHelper.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,16 +14,14 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class ShowStateViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
18
-{
17
+class ShowStateViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
19 18
 
20 19
     /**
21 20
      *
22 21
      * @param string $state
23 22
      *
24 23
      */
25
-    public function render($state)
26
-    {
24
+    public function render($state) {
27 25
 
28 26
         $key = "";
29 27
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
                 break;
43 43
         }
44 44
 
45
-        return \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf', $arguments = null);
45
+        return \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($key, 'dpf', $arguments = NULL);
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
Classes/ViewHelpers/ActiveManagerMenuViewHelper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,16 +14,14 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class ActiveManagerMenuViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
18
-{
17
+class ActiveManagerMenuViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
19 18
 
20 19
     /**
21 20
      *
22 21
      * @param string $controllerName The controller to be active.
23 22
      * @param string $actionName The action to be active.
24 23
      */
25
-    public function render($controllerName, $actionName = '')
26
-    {
24
+    public function render($controllerName, $actionName = '') {
27 25
 
28 26
         if ($this->controllerContext->getRequest()->getControllerName() == $controllerName) {
29 27
 
Please login to merge, or discard this patch.