Passed
Pull Request — master (#209)
by
unknown
33:50 queued 24:56
created
Classes/Exceptions/ElasticSearchConnectionErrorException.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class ElasticSearchConnectionErrorException extends \Exception implements DPFExceptionInterface
18
-{
19
-    public function messageLanguageKey()
20
-    {
17
+class ElasticSearchConnectionErrorException extends \Exception implements DPFExceptionInterface {
18
+    public function messageLanguageKey() {
21 19
         return 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:document_transfer.elasticsearch_connection_error';
22 20
     }
23 21
 }
24 22
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Exceptions/RepositoryConnectionErrorException.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class RepositoryConnectionErrorException extends \Exception implements DPFExceptionInterface
18
-{
19
-    public function messageLanguageKey()
20
-    {
17
+class RepositoryConnectionErrorException extends \Exception implements DPFExceptionInterface {
18
+    public function messageLanguageKey() {
21 19
         return 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:document_transfer.repository_connection_error';
22 20
     }
23 21
 }
24 22
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Services/ElasticSearch.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         // initialize elasticsearch lib
53 53
         $extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('dpf');
54 54
 
55
-        $params['hosts'] = array(
55
+        $params['hosts'] = array (
56 56
             $this->server . ':' . $this->port,
57 57
         );
58 58
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $this->resultList = $results['hits'];
87 87
 
88 88
             return $this->resultList;
89
-        } catch ( \Elasticsearch\Common\Exceptions\Curl\CouldNotConnectToHost $exception) {
89
+        } catch (\Elasticsearch\Common\Exceptions\Curl\CouldNotConnectToHost $exception) {
90 90
             throw new \EWW\Dpf\Exceptions\ElasticSearchConnectionErrorException("Could not connect to repository server.");
91 91
         } catch (\Elasticsearch\Common\Exceptions\Curl\CouldNotResolveHostException $exception) {
92 92
             throw new \EWW\Dpf\Exceptions\ElasticSearchConnectionErrorException("Could not connect to repository server.");
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @package EWW\Dpf\Services
25 25
  * @deprecated since version 4.0
26 26
  */
27
-class ElasticSearch
28
-{
27
+class ElasticSearch {
29 28
     protected $es;
30 29
 
31 30
     protected $server = ''; //127.0.0.1';
@@ -43,8 +42,7 @@  discard block
 block discarded – undo
43 42
     /**
44 43
      * elasticsearch client constructor
45 44
      */
46
-    public function __construct()
47
-    {
45
+    public function __construct() {
48 46
         $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(ObjectManager::class);
49 47
         $clientConfigurationManager = $objectManager->get(ClientConfigurationManager::class);
50 48
 
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
      * @param  array $query search query
69 67
      * @return array        result list
70 68
      */
71
-    public function search($query, $type)
72
-    {
69
+    public function search($query, $type) {
73 70
         try {
74 71
             // define type and index
75 72
             if (empty($query['index'])) {
@@ -99,8 +96,7 @@  discard block
 block discarded – undo
99 96
      * returns the result list
100 97
      * @return [type] [description]
101 98
      */
102
-    public function getResults()
103
-    {
99
+    public function getResults() {
104 100
         // return results from the last search request
105 101
         return $this->resultList;
106 102
     }
Please login to merge, or discard this patch.
Classes/Exceptions/DocumentMaxSizeErrorException.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,10 +14,8 @@
 block discarded – undo
14 14
  * The TYPO3 project - inspiring people to share!
15 15
  */
16 16
 
17
-class DocumentMaxSizeErrorException extends \Exception implements DPFExceptionInterface
18
-{
19
-    public function messageLanguageKey()
20
-    {
17
+class DocumentMaxSizeErrorException extends \Exception implements DPFExceptionInterface {
18
+    public function messageLanguageKey() {
21 19
         return 'LLL:EXT:dpf/Resources/Private/Language/locallang.xlf:document_save.max_size_error';
22 20
     }
23 21
 }
24 22
\ No newline at end of file
Please login to merge, or discard this patch.
Classes/Plugins/MetaTags/MetaTags.php 4 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,6 @@
 block discarded – undo
107 107
 
108 108
     /**
109 109
      * Get PDF document list
110
-
111 110
      * @return array of attachments
112 111
      */
113 112
     protected function getAttachments()
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             }
72 72
         }
73 73
 
74
-        $metadata = array();
74
+        $metadata = array ();
75 75
         $metadata = $this->doc->getTitleData($this->conf['pages']);
76 76
 
77 77
         // Collect files from download file group
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 case 'title':
127 127
                     if (is_array($values)) {
128 128
                         $outArray['citation_title'][] = $values[0];
129
-                        $GLOBALS['TSFE']->page['title'] =  $values[0];
129
+                        $GLOBALS['TSFE']->page['title'] = $values[0];
130 130
                     }
131 131
                     break;
132 132
 
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
                     break;
149 149
 
150 150
                 case 'attachments':
151
-                    foreach($values as $attachment) {
152
-                        $conf = array(
151
+                    foreach ($values as $attachment) {
152
+                        $conf = array (
153 153
                             'useCacheHash'     => 0,
154 154
                             'parameter'        => $this->conf['apiPid'],
155 155
                             'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment&tx_dpf[attachment]=' . $attachment['ID'],
@@ -209,14 +209,14 @@  discard block
 block discarded – undo
209 209
      */
210 210
     protected function getAttachments()
211 211
     {
212
-        $attachments = array();
212
+        $attachments = array ();
213 213
 
214 214
         $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file';
215 215
         $files = $this->doc->mets->xpath($xPath);
216 216
 
217 217
         if (is_array($files)) {
218 218
             foreach ($files as $key => $file) {
219
-                $singleFile = array();
219
+                $singleFile = array ();
220 220
                 foreach ($file->attributes('mext', 1) as $attribute => $value) {
221 221
                     $singleFile[$attribute] = $value;
222 222
                 }
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
  * @subpackage    tx_dpf
26 26
  * @access    public
27 27
  */
28
-class MetaTags extends \Kitodo\Dlf\Common\AbstractPlugin
29
-{
28
+class MetaTags extends \Kitodo\Dlf\Common\AbstractPlugin {
30 29
     public $scriptRelPath = 'Classes/Plugins/MetaTags.php';
31 30
 
32 31
     /**
@@ -45,8 +44,7 @@  discard block
 block discarded – undo
45 44
      *
46 45
      * @return    string        The content that is displayed on the website
47 46
      */
48
-    public function main($content, $conf)
49
-    {
47
+    public function main($content, $conf) {
50 48
 
51 49
         $this->init($conf);
52 50
 
@@ -107,8 +105,7 @@  discard block
 block discarded – undo
107 105
      *
108 106
      * @return    string        The metadata array ready for output
109 107
      */
110
-    protected function printMetaTags(array $metadata)
111
-    {
108
+    protected function printMetaTags(array $metadata) {
112 109
 
113 110
         $output = '';
114 111
         // Load all the metadata values into the content object's data array.
@@ -196,8 +193,7 @@  discard block
 block discarded – undo
196 193
      *
197 194
      * @return Formatted date
198 195
      */
199
-    protected function safelyFormatDate($format, $date)
200
-    {
196
+    protected function safelyFormatDate($format, $date) {
201 197
         return (strlen($date) == 4) ? $date : date($format, strtotime($date));
202 198
     }
203 199
 
@@ -207,8 +203,7 @@  discard block
 block discarded – undo
207 203
 
208 204
      * @return array of attachments
209 205
      */
210
-    protected function getAttachments()
211
-    {
206
+    protected function getAttachments() {
212 207
         $attachments = array();
213 208
 
214 209
         $xPath = 'mets:fileSec/mets:fileGrp[@USE="' . $this->conf['fileGrpDownload'] . '"]/mets:file';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
         // Flexform wins over TS
55 55
         $dpfTSconfig = $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_dpf.'];
56 56
         if (is_array($dpfTSconfig['settings.'])) {
57
-            \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, true, false);
57
+            \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($dpfTSconfig['settings.'], $this->conf, TRUE, FALSE);
58 58
             $this->conf = $dpfTSconfig['settings.'];
59 59
         }
60 60
         // Turn cache on.
61
-        $this->setCache(true);
61
+        $this->setCache(TRUE);
62 62
         // Load current document.
63 63
         $this->loadDocument();
64
-        if ($this->doc === null) {
64
+        if ($this->doc === NULL) {
65 65
             // Quit without doing anything if required variables are not set.
66 66
             return $content;
67 67
         } else {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                             'useCacheHash'     => 0,
154 154
                             'parameter'        => $this->conf['apiPid'],
155 155
                             'additionalParams' => '&tx_dpf[qid]=' . $this->doc->recordId . '&tx_dpf[action]=attachment&tx_dpf[attachment]=' . $attachment['ID'],
156
-                            'forceAbsoluteUrl' => true,
156
+                            'forceAbsoluteUrl' => TRUE,
157 157
                         );
158 158
                         $outArray['citation_pdf_url'][] = $this->cObj->typoLink_URL($conf);
159 159
                     }
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/DataCiteViewHelper.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $dataCite = $this->uriBuilder
54 54
             ->reset()
55 55
             ->setTargetPageUid($apiPid)
56
-            ->setArguments(array( 'tx_dpf' => $row))
56
+            ->setArguments(array ('tx_dpf' => $row))
57 57
             ->setCreateAbsoluteUri(true)
58 58
             ->setUseCacheHash(FALSE)
59 59
             ->buildFrontendUri();
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
 use TYPO3\CMS\Core\Utility\MathUtility;
18 18
 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper
19 19
 
20
-class DataCiteViewHelper extends AbstractViewHelper
21
-{
20
+class DataCiteViewHelper extends AbstractViewHelper {
22 21
     /**
23 22
      * @var \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder
24 23
      * @TYPO3\CMS\Extbase\Annotation\Inject
@@ -48,8 +47,7 @@  discard block
 block discarded – undo
48 47
      * @param  string $class
49 48
      * @return string html output
50 49
      */
51
-    protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class)
52
-    {
50
+    protected function getViewIcon($row, $pageUid, $apiPid, $insideText, $class) {
53 51
         $dataCite = $this->uriBuilder
54 52
             ->reset()
55 53
             ->setTargetPageUid($apiPid)
@@ -64,8 +62,7 @@  discard block
 block discarded – undo
64 62
         return $icon;
65 63
     }
66 64
 
67
-    public function initializeArguments()
68
-    {
65
+    public function initializeArguments() {
69 66
         parent::initializeArguments();
70 67
 
71 68
         $this->registerArgument('arguments', 'array', '', true);
@@ -80,8 +77,7 @@  discard block
 block discarded – undo
80 77
      *
81 78
      * @return string the rendered record list
82 79
      */
83
-    public function render()
84
-    {
80
+    public function render() {
85 81
         $arguments = $this->arguments['arguments'];
86 82
         $pageUid = $this->arguments['pageUid'];
87 83
         $apiPid = $this->arguments['apiPid'];
Please login to merge, or discard this patch.
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      *
39 39
      * @var bool
40 40
      */
41
-    protected $escapeOutput = false;
41
+    protected $escapeOutput = FALSE;
42 42
 
43 43
     /**
44 44
      * Returns the View Icon with link
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
             ->reset()
55 55
             ->setTargetPageUid($apiPid)
56 56
             ->setArguments(array( 'tx_dpf' => $row))
57
-            ->setCreateAbsoluteUri(true)
57
+            ->setCreateAbsoluteUri(TRUE)
58 58
             ->setUseCacheHash(FALSE)
59 59
             ->buildFrontendUri();
60 60
 
61
-        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = null);
61
+        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.datacite', 'dpf', $arguments = NULL);
62 62
         $icon  = '<a href="' . $dataCite . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
63 63
 
64 64
         return $icon;
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
     {
69 69
         parent::initializeArguments();
70 70
 
71
-        $this->registerArgument('arguments', 'array', '', true);
72
-        $this->registerArgument('pageUid', 'int', '', true);
73
-        $this->registerArgument('apiPid', 'int', '', true);
74
-        $this->registerArgument('class', 'string', '', true);
71
+        $this->registerArgument('arguments', 'array', '', TRUE);
72
+        $this->registerArgument('pageUid', 'int', '', TRUE);
73
+        $this->registerArgument('apiPid', 'int', '', TRUE);
74
+        $this->registerArgument('class', 'string', '', TRUE);
75 75
     }
76 76
 
77 77
     /**
Please login to merge, or discard this patch.
Classes/ViewHelpers/Link/PreviewViewHelper.php 4 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class)
82 82
     {
83 83
 
84
-       $previewMets = $this->uriBuilder
84
+        $previewMets = $this->uriBuilder
85 85
             ->reset()
86 86
             ->setTargetPageUid($apiPid)
87 87
             ->setArguments(array( 'tx_dpf' => $row))
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
        $previewMets = $this->uriBuilder
85 85
             ->reset()
86 86
             ->setTargetPageUid($apiPid)
87
-            ->setArguments(array( 'tx_dpf' => $row))
87
+            ->setArguments(array ('tx_dpf' => $row))
88 88
             ->setCreateAbsoluteUri(true)
89 89
             ->setUseCacheHash(FALSE)
90 90
             //->setNoCache(TRUE)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
             ->setUseCacheHash(TRUE)
97 97
             //->setNoCache(TRUE)
98 98
             ->setArguments(
99
-                array( 'tx_dlf' => array(
99
+                array ('tx_dlf' => array (
100 100
                         'id' => urldecode($previewMets),
101 101
                     )
102 102
                 )
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             ->buildFrontendUri();
106 106
 
107 107
         $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
108
-        $icon = '<a href="'. $additionalGetVars . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
108
+        $icon = '<a href="' . $additionalGetVars . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
109 109
 
110 110
         return $icon;
111 111
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@  discard block
 block discarded – undo
18 18
 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
19 19
 use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
20 20
 
21
-class PreviewViewHelper extends AbstractViewHelper
22
-{
21
+class PreviewViewHelper extends AbstractViewHelper {
23 22
     /**
24 23
      * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
25 24
      * @TYPO3\CMS\Extbase\Annotation\Inject
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
      * @param  string $class
79 78
      * @return string html output
80 79
      */
81
-    protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class)
82
-    {
80
+    protected function getViewIcon(array $row, $pageUid, $apiPid, $insideText, $class) {
83 81
 
84 82
        $previewMets = $this->uriBuilder
85 83
             ->reset()
@@ -111,8 +109,7 @@  discard block
 block discarded – undo
111 109
 
112 110
     }
113 111
 
114
-    public function initializeArguments()
115
-    {
112
+    public function initializeArguments() {
116 113
         parent::initializeArguments();
117 114
 
118 115
         $this->registerArgument('arguments', 'array', '', true);
@@ -127,8 +124,7 @@  discard block
 block discarded – undo
127 124
      *
128 125
      * @return string the rendered record list
129 126
      */
130
-    public function render()
131
-    {
127
+    public function render() {
132 128
         $arguments = $this->arguments['arguments'];
133 129
         $pageUid = $this->arguments['pageUid'];
134 130
         $apiPid = $this->arguments['apiPid'];
Please login to merge, or discard this patch.
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      *
53 53
      * @var bool
54 54
      */
55
-    protected $escapeOutput = false;
55
+    protected $escapeOutput = FALSE;
56 56
 
57 57
 
58 58
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             ->reset()
86 86
             ->setTargetPageUid($apiPid)
87 87
             ->setArguments(array( 'tx_dpf' => $row))
88
-            ->setCreateAbsoluteUri(true)
88
+            ->setCreateAbsoluteUri(TRUE)
89 89
             ->setUseCacheHash(FALSE)
90 90
             //->setNoCache(TRUE)
91 91
             ->buildFrontendUri();
@@ -101,10 +101,10 @@  discard block
 block discarded – undo
101 101
                     )
102 102
                 )
103 103
             )
104
-            ->setCreateAbsoluteUri(true)
104
+            ->setCreateAbsoluteUri(TRUE)
105 105
             ->buildFrontendUri();
106 106
 
107
-        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = null);
107
+        $title = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('manager.tooltip.preview', 'dpf', $arguments = NULL);
108 108
         $icon = '<a href="'. $additionalGetVars . '" data-toggle="tooltip" class="' . $class . '" title="' . $title . '">' . $insideText . '</a>';
109 109
 
110 110
         return $icon;
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
     {
116 116
         parent::initializeArguments();
117 117
 
118
-        $this->registerArgument('arguments', 'array', '', true);
119
-        $this->registerArgument('pageUid', 'int', '', true);
120
-        $this->registerArgument('apiPid', 'int', '', true);
121
-        $this->registerArgument('class', 'string', '', true);
118
+        $this->registerArgument('arguments', 'array', '', TRUE);
119
+        $this->registerArgument('pageUid', 'int', '', TRUE);
120
+        $this->registerArgument('apiPid', 'int', '', TRUE);
121
+        $this->registerArgument('class', 'string', '', TRUE);
122 122
     }
123 123
 
124 124
     /**
Please login to merge, or discard this patch.
Classes/Domain/Workflow/DocumentWorkflow.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
                         );
219 219
                     } else {
220 220
                         $definitionBuilder->addTransition(
221
-                             new Transition($transitionName, $fromState, $transition["to"])
221
+                                new Transition($transitionName, $fromState, $transition["to"])
222 222
                         );
223 223
                     }
224 224
                 }
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -34,30 +34,30 @@
 block discarded – undo
34 34
     const REMOTE_STATE_INACTIVE     = "INACTIVE";
35 35
     const REMOTE_STATE_DELETED      = "DELETED";
36 36
 
37
-    const STATE_NONE_NONE            = self::LOCAL_STATE_NONE.':'.self::REMOTE_STATE_NONE;
37
+    const STATE_NONE_NONE            = self::LOCAL_STATE_NONE . ':' . self::REMOTE_STATE_NONE;
38 38
 
39 39
     // New
40
-    const STATE_NEW_NONE             = self::LOCAL_STATE_NEW.':'.self::REMOTE_STATE_NONE;
40
+    const STATE_NEW_NONE             = self::LOCAL_STATE_NEW . ':' . self::REMOTE_STATE_NONE;
41 41
 
42 42
     // Registered
43
-    const STATE_REGISTERED_NONE      = self::LOCAL_STATE_REGISTERED.':'.self::REMOTE_STATE_NONE;
43
+    const STATE_REGISTERED_NONE      = self::LOCAL_STATE_REGISTERED . ':' . self::REMOTE_STATE_NONE;
44 44
 
45 45
     // In progress
46
-    const STATE_IN_PROGRESS_NONE     = self::LOCAL_STATE_IN_PROGRESS.':'.self::REMOTE_STATE_NONE;
47
-    const STATE_IN_PROGRESS_ACTIVE   = self::LOCAL_STATE_IN_PROGRESS.":".self::REMOTE_STATE_ACTIVE;
48
-    const STATE_IN_PROGRESS_INACTIVE = self::LOCAL_STATE_IN_PROGRESS.":".self::REMOTE_STATE_INACTIVE;
49
-    const STATE_IN_PROGRESS_DELETED  = self::LOCAL_STATE_IN_PROGRESS.":".self::REMOTE_STATE_DELETED;
46
+    const STATE_IN_PROGRESS_NONE     = self::LOCAL_STATE_IN_PROGRESS . ':' . self::REMOTE_STATE_NONE;
47
+    const STATE_IN_PROGRESS_ACTIVE   = self::LOCAL_STATE_IN_PROGRESS . ":" . self::REMOTE_STATE_ACTIVE;
48
+    const STATE_IN_PROGRESS_INACTIVE = self::LOCAL_STATE_IN_PROGRESS . ":" . self::REMOTE_STATE_INACTIVE;
49
+    const STATE_IN_PROGRESS_DELETED  = self::LOCAL_STATE_IN_PROGRESS . ":" . self::REMOTE_STATE_DELETED;
50 50
 
51 51
     // Active
52
-    const STATE_NONE_ACTIVE          = self::LOCAL_STATE_NONE.':'.self::REMOTE_STATE_ACTIVE;
52
+    const STATE_NONE_ACTIVE          = self::LOCAL_STATE_NONE . ':' . self::REMOTE_STATE_ACTIVE;
53 53
 
54 54
     // Postponed
55
-    const STATE_POSTPONED_NONE       = self::LOCAL_STATE_POSTPONED.':'.self::REMOTE_STATE_NONE;
56
-    const STATE_NONE_INACTIVE        = self::LOCAL_STATE_NONE.':'.self::REMOTE_STATE_INACTIVE;
55
+    const STATE_POSTPONED_NONE       = self::LOCAL_STATE_POSTPONED . ':' . self::REMOTE_STATE_NONE;
56
+    const STATE_NONE_INACTIVE        = self::LOCAL_STATE_NONE . ':' . self::REMOTE_STATE_INACTIVE;
57 57
 
58 58
     // Discarded
59
-    const STATE_DISCARDED_NONE       = self::LOCAL_STATE_DISCARDED.':'.self::REMOTE_STATE_NONE;
60
-    const STATE_NONE_DELETED         = self::LOCAL_STATE_NONE.':'.self::REMOTE_STATE_DELETED;
59
+    const STATE_DISCARDED_NONE       = self::LOCAL_STATE_DISCARDED . ':' . self::REMOTE_STATE_NONE;
60
+    const STATE_NONE_DELETED         = self::LOCAL_STATE_NONE . ':' . self::REMOTE_STATE_DELETED;
61 61
 
62 62
     const TRANSITION_CREATE              = "CREATE_TRANSITION";
63 63
     const TRANSITION_CREATE_REGISTER     = "CREATE_REGISTER_TRANSITION";
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
 use Symfony\Component\Workflow\Workflow;
21 21
 use Symfony\Component\Workflow\Registry;
22 22
 
23
-class DocumentWorkflow
24
-{
23
+class DocumentWorkflow {
25 24
     const LOCAL_STATE_NONE          = 'NONE';
26 25
     const LOCAL_STATE_NEW           = 'NEW';
27 26
     const LOCAL_STATE_REGISTERED    = 'REGISTERED';
@@ -264,8 +263,7 @@  discard block
 block discarded – undo
264 263
         ]
265 264
     ];
266 265
     
267
-    public static function getWorkflow()
268
-    {
266
+    public static function getWorkflow() {
269 267
         $definitionBuilder = new DefinitionBuilder();
270 268
 
271 269
         $definitionBuilder->addPlaces(self::PLACES);
@@ -297,8 +295,7 @@  discard block
 block discarded – undo
297 295
         return $localState . ':' . $remoteState;
298 296
     }
299 297
 
300
-    public static function getAliasStateByLocalOrRepositoryState($state)
301
-    {
298
+    public static function getAliasStateByLocalOrRepositoryState($state) {
302 299
         // FIXME: Information hiding. Future note: Fedora 3 implementation knowledge should be hidden in separate class module.
303 300
 
304 301
         // A,I and D are the states returned by a repository search.
Please login to merge, or discard this patch.
Classes/Domain/Repository/MetadataPageRepository.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 MetadataPages
19 19
  */
20
-class MetadataPageRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository
21
-{
20
+class MetadataPageRepository extends \EWW\Dpf\Domain\Repository\AbstractRepository {
22 21
 
23 22
 }
Please login to merge, or discard this patch.