Completed
Push — master ( 4c14c6...4ad177 )
by Mathias
25s queued 15s
created
module/Jobs/src/Entity/Decorator/JsonLdProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             'hiringOrganization' => [
87 87
                 '@type' => 'Organization',
88 88
                 'name' => $organizationName,
89
-                'logo' => $logo ? rtrim($this->options['server_url'], '/') . $logo : '',
89
+                'logo' => $logo ? rtrim($this->options['server_url'], '/').$logo : '',
90 90
             ],
91 91
             'jobLocation' => $this->getLocations($this->job->getLocations()),
92 92
             'employmentType' => $this->job->getClassifications()->getEmploymentTypes()->getValues(),
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     private function getLogo() {
105 105
         $organization = $this->job->getOrganization();
106 106
 
107
-        $organizationLogo = ($organization && $organization->getImage())? $organization->getImage()->getUri() : $this->job->getLogoRef();
107
+        $organizationLogo = ($organization && $organization->getImage()) ? $organization->getImage()->getUri() : $this->job->getLogoRef();
108 108
         return $organizationLogo;
109 109
     }
110 110
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     private function getLocations($locations)
119 119
     {
120
-        $array=[];
120
+        $array = [];
121 121
         foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
122 122
             array_push(
123 123
                 $array,
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                     '@type' => 'Place',
126 126
                     'address' => [
127 127
                         '@type' => 'PostalAddress',
128
-                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
128
+                        'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(),
129 129
                         'postalCode' => $location->getPostalCode(),
130 130
                         'addressLocality' => $location->getCity(),
131 131
                         'addressCountry' => $location->getCountry(),
@@ -149,9 +149,9 @@  discard block
 block discarded – undo
149 149
         $html = $values->getHtml();
150 150
 
151 151
         if ($html) {
152
-            $description=sprintf("%s", $values->getHtml() );
152
+            $description = sprintf("%s", $values->getHtml());
153 153
         } else {
154
-            $description=sprintf(
154
+            $description = sprintf(
155 155
                 "<p>%s</p>".
156 156
                 "<h1>%s</h1>".
157 157
                 "<h3>Requirements</h3><p>%s</p>".
Please login to merge, or discard this patch.
module/Jobs/src/View/Helper/JsonLd.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
         );
65 65
 
66 66
         return '<script type="application/ld+json">'
67
-               . $jsonLdProvider->toJsonLd()
68
-               . '</script>';
67
+                . $jsonLdProvider->toJsonLd()
68
+                . '</script>';
69 69
     }
70 70
 
71 71
     /**
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/JsonLdTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /** @var string|JsonLd */
37 37
     private $target = JsonLd::class;
38 38
 
39
-    private $inheritance = [ AbstractHelper::class ];
39
+    private $inheritance = [AbstractHelper::class];
40 40
 
41 41
     public function propertiesProvider()
42 42
     {
Please login to merge, or discard this patch.