Completed
Pull Request — develop (#434)
by Carsten
06:27
created
module/Auth/src/Auth/Entity/SocialProfiles/LinkedIn.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $return = array();
38 38
         if (isset($data['start-date'])) {
39
-            $return['startDate'] = $data['start-date']['year'] . '-' . $data['start-date']['month'] . '-' . $data['start-date']['day'];
39
+            $return['startDate'] = $data['start-date']['year'].'-'.$data['start-date']['month'].'-'.$data['start-date']['day'];
40 40
         }
41 41
         if (isset($data['end-date'])) {
42
-            $return['endDate'] = $data['end-date']['year'] . '-' . $data['end-date']['month'] . '-' . $data['end-date']['day'];
42
+            $return['endDate'] = $data['end-date']['year'].'-'.$data['end-date']['month'].'-'.$data['end-date']['day'];
43 43
         }
44 44
         if (isset($data['school-name'])) {
45 45
             $return['organizationName'] = $data['school-name'];
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
             $data = $data['positions'][0];
57 57
 
58 58
             if (isset($data['start-date'])) {
59
-                $return['startDate'] = $data['start-date']['year'] . '-' . $data['start-date']['month'] . '-' . $data['start-date']['day'];
59
+                $return['startDate'] = $data['start-date']['year'].'-'.$data['start-date']['month'].'-'.$data['start-date']['day'];
60 60
             }
61 61
             if (isset($data['end-date'])) {
62
-                $return['endDate'] = $data['end-date']['year'] . '-' . $data['end-date']['month'] . '-' . $data['end-date']['day'];
62
+                $return['endDate'] = $data['end-date']['year'].'-'.$data['end-date']['month'].'-'.$data['end-date']['day'];
63 63
             } elseif (isset($data['is-current']) && 'true' == $data['is-current']) {
64 64
                 $return['currentIndicator'] = true;
65 65
             }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Entity/SocialProfiles/AbstractProfile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -223,13 +223,13 @@  discard block
 block discarded – undo
223 223
         $collection = new ArrayCollection();
224 224
         $key        = $this->config[$type]['key'];
225 225
         $hydrator   = $this->getHydrator($type);
226
-        $filter     = 'filter' . rtrim($type, 's');
226
+        $filter     = 'filter'.rtrim($type, 's');
227 227
         $entity     = $this->getEntity($type);
228 228
         $dataArray  = $this->getData($key);
229 229
         
230 230
         if ($dataArray) {
231 231
             foreach ($dataArray as $data) {
232
-                $data    = $this->$filter($data);
232
+                $data = $this->$filter($data);
233 233
                 if (!count($data)) {
234 234
                     continue;
235 235
                 }
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     {
285 285
         $entity = isset($this->config[$type]['entity'])
286 286
                 ? $this->config[$type]['entity']
287
-                : '\Cv\Entity\\'. ucfirst(rtrim($type, 's'));
287
+                : '\Cv\Entity\\'.ucfirst(rtrim($type, 's'));
288 288
         
289 289
         if (is_string($entity)) {
290 290
             $this->config[$type]['entity'] = $entity = new $entity();
Please login to merge, or discard this patch.
module/Auth/src/Auth/Filter/LoginFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
         if (!$loginSuffixResponseCollection->isEmpty()) {
46 46
             $suffix = $loginSuffixResponseCollection->last();
47 47
         }
48
-        return $value . $suffix;
48
+        return $value.$suffix;
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Filter/StripQueryParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
         
45 45
         parse_str($query, $queryParams);
46 46
         $queryParams = array_diff_key($queryParams, array_flip($stripParams));
47
-        return $uri . (empty($queryParams) ? '' : '?' . http_build_query($queryParams));
47
+        return $uri.(empty($queryParams) ? '' : '?'.http_build_query($queryParams));
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
module/Install/src/Listener/LanguageSetter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,13 +79,13 @@
 block discarded – undo
79 79
 
80 80
         /* Set locale */
81 81
         $translator = $e->getApplication()->getServiceManager()->get('mvctranslator');
82
-        $locale     = $lang . '_' . strtoupper($lang);
82
+        $locale     = $lang.'_'.strtoupper($lang);
83 83
 
84 84
         setlocale(
85 85
             LC_ALL,
86 86
             array(
87
-                            $locale . ".utf8",
88
-                            $locale . ".iso88591",
87
+                            $locale.".utf8",
88
+                            $locale.".iso88591",
89 89
                             $locale,
90 90
                             substr($locale, 0, 2),
91 91
                             'de_DE.utf8',
Please login to merge, or discard this patch.
module/Install/src/Controller/Plugin/YawikConfigCreator.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
         // Create a file with the class/file map.
94 94
         // Stupid syntax highlighters make separating < from PHP declaration necessary
95 95
         $content = '<' . "?php\n"
96
-                   . "\n"
97
-                   . 'return ' . var_export($config, true) . ';';
96
+                    . "\n"
97
+                    . 'return ' . var_export($config, true) . ';';
98 98
 
99 99
         // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op
100 100
         $content = str_replace("\\'", "'", $content);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,9 +92,9 @@  discard block
 block discarded – undo
92 92
 
93 93
         // Create a file with the class/file map.
94 94
         // Stupid syntax highlighters make separating < from PHP declaration necessary
95
-        $content = '<' . "?php\n"
95
+        $content = '<'."?php\n"
96 96
                    . "\n"
97
-                   . 'return ' . var_export($config, true) . ';';
97
+                   . 'return '.var_export($config, true).';';
98 98
 
99 99
         // Fix \' strings from injected DIRECTORY_SEPARATOR usage in iterator_apply op
100 100
         $content = str_replace("\\'", "'", $content);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         $content = str_replace('array (', 'array(', $content);
108 108
 
109 109
         // Make the file end by EOL
110
-        $content = rtrim($content, "\n") . "\n";
110
+        $content = rtrim($content, "\n")."\n";
111 111
 
112 112
         return $content;
113 113
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/Attachment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     public function getUri()
35 35
     {
36
-        return "/file/Applications.Attachment/" . $this->id . "/" .urlencode($this->name);
36
+        return "/file/Applications.Attachment/".$this->id."/".urlencode($this->name);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/Status.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
 
51 51
     public function __construct($status = self::INCOMING)
52 52
     {
53
-        $constant = 'self::' . strtoupper($status);
53
+        $constant = 'self::'.strtoupper($status);
54 54
         if (!defined($constant)) {
55
-            throw new \DomainException('Unknown status: ' . $status);
55
+            throw new \DomainException('Unknown status: '.$status);
56 56
         }
57
-        $this->name=constant($constant);
58
-        $this->order=$this->getOrder();
57
+        $this->name = constant($constant);
58
+        $this->order = $this->getOrder();
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/Attributes.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function init()
26 26
     {
27 27
         $this->setIsDisableCapable(false)
28
-             ->setIsDisableElementsCapable(false)
29
-             ->setAttribute('data-submit-on', 'checkbox');
28
+                ->setIsDisableElementsCapable(false)
29
+                ->setAttribute('data-submit-on', 'checkbox');
30 30
 
31 31
         $this->add(
32 32
             array(
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 'route' => 'lang/content',
55 55
                 'params' => array(
56 56
                     'view' => 'applications-privacy-policy'
57
-                 )
57
+                    )
58 58
             ),
59 59
             'attributes' => array(
60 60
                 'data-validate' => 'acceptedPrivacyPolicy',
Please login to merge, or discard this patch.