Passed
Pull Request — master (#123)
by
unknown
07:53 queued 02:59
created
Classes/Api/Orcid/Client.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
  *
27 27
  * @access public
28 28
  **/
29
-class Client
30
-{
29
+class Client {
31 30
     /**
32 31
      * @var string constant for API hostname
33 32
      **/
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
      *
79 78
      * @return void
80 79
      **/
81
-    public function __construct(string $orcid, RequestFactory $requestFactory)
82
-    {
80
+    public function __construct(string $orcid, RequestFactory $requestFactory) {
83 81
         $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class);
84 82
         $this->orcid = $orcid;
85 83
         $this->requestFactory = $requestFactory;
@@ -105,8 +103,7 @@  discard block
 block discarded – undo
105 103
      *
106 104
      * @return object|bool
107 105
      **/
108
-    public function getData()
109
-    {
106
+    public function getData() {
110 107
         $url = $this->getApiEndpoint();
111 108
         try {
112 109
             $response = $this->requestFactory->request($url);
Please login to merge, or discard this patch.
Classes/Api/Orcid/Profile.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
  *
27 27
  * @access public
28 28
  **/
29
-class Profile
30
-{
29
+class Profile {
31 30
     /**
32 31
      * @access protected
33 32
      * @var Logger This holds the logger
@@ -55,8 +54,7 @@  discard block
 block discarded – undo
55 54
      *
56 55
      * @return void
57 56
      **/
58
-    public function __construct(string $orcid)
59
-    {
57
+    public function __construct(string $orcid) {
60 58
         $this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(static::class);
61 59
         $this->client = new Client($orcid, GeneralUtility::makeInstance(RequestFactory::class));
62 60
     }
@@ -68,8 +66,7 @@  discard block
 block discarded – undo
68 66
      *
69 67
      * @return array|false
70 68
      **/
71
-    public function getData()
72
-    {
69
+    public function getData() {
73 70
         $this->getRaw('person');
74 71
         if ($this->raw !== false && !empty($this->raw)) {
75 72
             $data = [];
@@ -90,8 +87,7 @@  discard block
 block discarded – undo
90 87
      *
91 88
      * @return string|false
92 89
      **/
93
-    public function getAddress()
94
-    {
90
+    public function getAddress() {
95 91
         $this->getRaw('address');
96 92
         if ($this->raw !== false && !empty($this->raw)) {
97 93
             $this->raw->registerXPathNamespace('address', 'http://www.orcid.org/ns/address');
@@ -109,8 +105,7 @@  discard block
 block discarded – undo
109 105
      *
110 106
      * @return string|false
111 107
      **/
112
-    public function getEmail()
113
-    {
108
+    public function getEmail() {
114 109
         $this->getRaw('email');
115 110
         if ($this->raw !== false && !empty($this->raw)) {
116 111
             $this->raw->registerXPathNamespace('email', 'http://www.orcid.org/ns/email');
@@ -128,8 +123,7 @@  discard block
 block discarded – undo
128 123
      *
129 124
      * @return string|false
130 125
      **/
131
-    public function getFullName()
132
-    {
126
+    public function getFullName() {
133 127
         $this->getRaw('personal-details');
134 128
         if ($this->raw !== false && !empty($this->raw)) {
135 129
             $this->raw->registerXPathNamespace('personal-details', 'http://www.orcid.org/ns/personal-details');
Please login to merge, or discard this patch.
Classes/ViewHelpers/StdWrapViewHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
  *
24 24
  * @access public
25 25
  */
26
-class StdWrapViewHelper extends AbstractViewHelper
27
-{
26
+class StdWrapViewHelper extends AbstractViewHelper {
28 27
     /**
29 28
      * @access protected
30 29
      * @var bool
Please login to merge, or discard this patch.
Classes/ViewHelpers/MetadataWrapVariableViewHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@
 block discarded – undo
39 39
  *
40 40
  * @access public
41 41
  */
42
-class MetadataWrapVariableViewHelper extends AbstractViewHelper
43
-{
42
+class MetadataWrapVariableViewHelper extends AbstractViewHelper {
44 43
     /**
45 44
      * @access public
46 45
      *
Please login to merge, or discard this patch.
Classes/ViewHelpers/JsFooterViewHelper.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
  *
26 26
  * @access public
27 27
  */
28
-class JsFooterViewHelper extends AbstractViewHelper
29
-{
28
+class JsFooterViewHelper extends AbstractViewHelper {
30 29
     /**
31 30
      * Initialize arguments.
32 31
      *
Please login to merge, or discard this patch.
Classes/Common/SolrPaginator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
 use Kitodo\Dlf\Common\Solr\SolrSearch;
16 16
 use TYPO3\CMS\Core\Pagination\AbstractPaginator;
17 17
 
18
-class SolrPaginator extends AbstractPaginator
19
-{
18
+class SolrPaginator extends AbstractPaginator {
20 19
     /**
21 20
      * @var SolrSearch
22 21
      */
Please login to merge, or discard this patch.
Classes/Common/KitodoFlashMessageRenderer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
  *
28 28
  * @access public
29 29
  */
30
-class KitodoFlashMessageRenderer implements FlashMessageRendererInterface
31
-{
30
+class KitodoFlashMessageRenderer implements FlashMessageRendererInterface {
32 31
     /**
33 32
      * @var array The message severity class names
34 33
      */
Please login to merge, or discard this patch.
Classes/Common/IiifUrlReader.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
  *
26 26
  * @access public
27 27
  */
28
-class IiifUrlReader implements UrlReaderInterface
29
-{
28
+class IiifUrlReader implements UrlReaderInterface {
30 29
     /**
31 30
      * @access protected
32 31
      * @var IiifUrlReader Singleton instance of the class
@@ -36,8 +35,7 @@  discard block
 block discarded – undo
36 35
     /**
37 36
      * @see UrlReaderInterface::getContent()
38 37
      */
39
-    public function getContent($url)
40
-    {
38
+    public function getContent($url) {
41 39
         $fileContents = GeneralUtility::getUrl($url);
42 40
         if ($fileContents !== false) {
43 41
             return $fileContents;
Please login to merge, or discard this patch.
Classes/Common/Solr/SearchResult/Page.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * @access public
22 22
  */
23
-class Page
24
-{
23
+class Page {
25 24
 
26 25
     /**
27 26
      * @access private
@@ -57,8 +56,7 @@  discard block
 block discarded – undo
57 56
      *
58 57
      * @return void
59 58
      */
60
-    public function __construct(int $id, array $page)
61
-    {
59
+    public function __construct(int $id, array $page) {
62 60
         $this->id = $id;
63 61
         $this->name = $page['id'];
64 62
         $this->width = $page['width'];
Please login to merge, or discard this patch.