Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Jobs/src/Form/Hydrator/TemplateLabelHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         $object = parent::hydrate($data, $object);
44 44
         /* @var \Organizations\Entity\Template  $template */
45
-        $template=$object->getOrganization()->getTemplate();
45
+        $template = $object->getOrganization()->getTemplate();
46 46
         if (isset($data['description-label-requirements'])) {
47 47
             $template->setLabelRequirements($data['description-label-requirements']);
48 48
         }
Please login to merge, or discard this patch.
module/Jobs/src/Form/JobboardSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
                 ),
83 83
                 'attributes' => [
84 84
                     'value'            => '10', // default distance
85
-                    'data-searchbox'   => -1,  // hide the search box
85
+                    'data-searchbox'   => -1, // hide the search box
86 86
                     'data-allowclear'  => 'false', // allow to clear a selected value
87 87
                     'data-placeholder' => /*@translate*/ 'Distance',
88 88
                     'data-width'       => '100%',
Please login to merge, or discard this patch.
module/Jobs/src/Acl/CreateAssertion.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 class CreateAssertion extends AbstractEventManagerAwareAssertion
26 26
 {
27 27
     protected $identifiers = array(
28
-         'Jobs/Acl/Assertions',
29
-         'Jobs/Acl/Assertion/Create',
28
+            'Jobs/Acl/Assertions',
29
+            'Jobs/Acl/Assertion/Create',
30 30
     );
31 31
 
32 32
     protected function preAssert(
Please login to merge, or discard this patch.
module/Jobs/src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function getConfig()
40 40
     {
41
-        return ModuleConfigLoader::load(__DIR__ . '/../config');
41
+        return ModuleConfigLoader::load(__DIR__.'/../config');
42 42
     }
43 43
 
44 44
     public function onBootstrap(MvcEvent $e)
Please login to merge, or discard this patch.
module/Jobs/src/Auth/Dependency/ListListener.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) /* @var $job \Jobs\Entity\Job */
64 64
         {
65 65
             $title = $job->getTitle() ?: $view->translate('untitled');
66
-            $title .= ' ('. $view->dateFormat($job->getDateCreated(), 'short', 'none') . ')';
66
+            $title .= ' ('.$view->dateFormat($job->getDateCreated(), 'short', 'none').')';
67 67
             $url = $view->url('lang/jobs/manage', ['action' => 'edit'], [
68 68
                 'query' => [
69 69
                     'id' => $job->getId()
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,9 +60,11 @@
 block discarded – undo
60 60
     {
61 61
         $items = [];
62 62
         
63
-        foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) /* @var $job \Jobs\Entity\Job */
63
+        foreach ($this->repository->getUserJobs($user->getId(), $limit) as $job) {
64
+            /* @var $job \Jobs\Entity\Job */
64 65
         {
65 66
             $title = $job->getTitle() ?: $view->translate('untitled');
67
+        }
66 68
             $title .= ' ('. $view->dateFormat($job->getDateCreated(), 'short', 'none') . ')';
67 69
             $url = $view->url('lang/jobs/manage', ['action' => 'edit'], [
68 70
                 'query' => [
Please login to merge, or discard this patch.
module/Jobs/src/View/Helper/JobUrl.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,10 +114,10 @@
 block discarded – undo
114 114
         } else {
115 115
             $result = sprintf(
116 116
                 '<a href="%s" rel="%s" %s>%s</a>',
117
-                              $url,
118
-                              $options['rel'],
119
-                              $options['target']?"target=" . $options['target']:"",
120
-                              strip_tags($jobEntity->getTitle())
117
+                                $url,
118
+                                $options['rel'],
119
+                                $options['target']?"target=" . $options['target']:"",
120
+                                strip_tags($jobEntity->getTitle())
121 121
             );
122 122
         }
123 123
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function __invoke(Job $jobEntity, $options = [], $urlParams = [])
69 69
     {
70
-        $options= array_merge($this->options, $options);
70
+        $options = array_merge($this->options, $options);
71 71
         $paramsHelper = $this->paramsHelper;
72 72
         $urlHelper = $this->urlHelper;
73 73
         $serverUrlHelper = $this->serverUrlHelper;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             );
90 90
         } else {
91 91
             $query = [
92
-                'subscriberUri' => $serverUrlHelper([]) . '/subscriber/' . 1,
92
+                'subscriberUri' => $serverUrlHelper([]).'/subscriber/'.1,
93 93
                 'id' => $jobEntity->getId()
94 94
             ];
95 95
             if ($jobEntity instanceof JobSnapshot) {
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 '<a href="%s" rel="%s" %s>%s</a>',
117 117
                               $url,
118 118
                               $options['rel'],
119
-                              $options['target']?"target=" . $options['target']:"",
119
+                              $options['target'] ? "target=".$options['target'] : "",
120 120
                               strip_tags($jobEntity->getTitle())
121 121
             );
122 122
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     {
132 132
         foreach ($options as $key=>$val) {
133 133
             if (array_key_exists($this->options, $key)) {
134
-                $this->options[$key]=$val;
134
+                $this->options[$key] = $val;
135 135
             }
136 136
         }
137 137
     }
Please login to merge, or discard this patch.
module/Jobs/src/View/Helper/AdminEditLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,6 +65,6 @@
 block discarded – undo
65 65
                 'admin' => 1,
66 66
             ]],
67 67
             true
68
-        ) . '&return=' . $this->returnUrl;
68
+        ).'&return='.$this->returnUrl;
69 69
     }
70 70
 }
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
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
         $jsonLdProvider = new JsonLdProvider($job);
51 51
 
52 52
         return '<script type="application/ld+json">'
53
-               . $jsonLdProvider->toJsonLd()
54
-               . '</script>';
53
+                . $jsonLdProvider->toJsonLd()
54
+                . '</script>';
55 55
     }
56 56
 
57 57
     /**
Please login to merge, or discard this patch.
module/Jobs/src/View/Helper/ApplyButtons.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         $currentTemplate = $view->viewModel()
76 76
             ->getCurrent()
77 77
             ->getTemplate();
78
-        $partial = dirname($currentTemplate) . '/' . $options['partial'];
78
+        $partial = dirname($currentTemplate).'/'.$options['partial'];
79 79
         
80 80
         if (!$options['oneClickOnly'] && $data['uri']) {
81 81
             $variables['default'] = [
Please login to merge, or discard this patch.