Completed
Push — master ( 4be9ff...7521c2 )
by Marc
02:19
created
core/components/Mail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 $this->_mailer->isSMTP();
145 145
                 $this->_mailer->SMTPSecure = $this->smtpSecure;
146 146
                 $this->_mailer->Host = $this->host;
147
-                $this->_mailer->SMTPAuth= $this->smtpAuth;
147
+                $this->_mailer->SMTPAuth = $this->smtpAuth;
148 148
                 $this->_mailer->Username = $this->username;
149 149
                 $this->_mailer->Password = $this->password;
150 150
                 $this->_mailer->Port = $this->port;
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                         return true;
483 483
                     } else {
484 484
                         $data = [$this->host, $this->port, $this->smtpSecure, $this->username];
485
-                        throw new Exception('Authentication failed ('.implode(',', $data).'): '.$smtp->getLastReply() . PHP_EOL . print_r($smtp->getError(), true));
485
+                        throw new Exception('Authentication failed ('.implode(',', $data).'): '.$smtp->getLastReply().PHP_EOL.print_r($smtp->getError(), true));
486 486
                     }
487 487
                 } else {
488 488
                     throw new Exception('HELO failed: '.$smtp->getLastReply());
Please login to merge, or discard this patch.
core/web/WebsiteLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function setHref($href)
54 54
     {
55 55
         if (StringHelper::startsWith($href, '//')) {
56
-            $this->_href = Url::base(true) . str_replace('//', '/', $href);
56
+            $this->_href = Url::base(true).str_replace('//', '/', $href);
57 57
         } else {
58 58
             $this->_href = Url::ensureHttp($href);
59 59
         }
Please login to merge, or discard this patch.
core/web/EmailLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     public function getHref()
51 51
     {
52
-        return empty($this->getEmail()) ?: 'mailto:' . $this->getEmail();
52
+        return empty($this->getEmail()) ?: 'mailto:'.$this->getEmail();
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.
core/web/jsonld/Person.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         return $this->_givenName;
33 33
     }
34 34
     
35
-    private $_familyName ;
35
+    private $_familyName;
36 36
     
37 37
     public function setFamilyName($familyName)
38 38
     {
Please login to merge, or discard this patch.
core/web/JsonLd.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
     protected static function registerView()
139 139
     {
140 140
         if (self::$_view === null) {
141
-            Yii::$app->view->on(View::EVENT_BEGIN_BODY, function ($event) {
142
-                echo '<script type="application/ld+json">' . Json::encode($event->sender->params) . '</script>';
141
+            Yii::$app->view->on(View::EVENT_BEGIN_BODY, function($event) {
142
+                echo '<script type="application/ld+json">'.Json::encode($event->sender->params).'</script>';
143 143
             });
144 144
                     
145 145
             self::$_view = true;
Please login to merge, or discard this patch.
core/traits/RestBehaviorsTrait.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
  */
31 31
 trait RestBehaviorsTrait
32 32
 {
33
-	/**
34
-	 * @var boolean Whether CORS is enabled or not.
35
-	 */
36
-	public $enableCors = false;
33
+    /**
34
+     * @var boolean Whether CORS is enabled or not.
35
+     */
36
+    public $enableCors = false;
37 37
 	
38 38
     /**
39 39
      * Whether the rest controller is protected or not.
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
             ];
89 89
             
90 90
             if ($this->enableCors) {
91
-            	$behaviors['authenticator']['except'] = ['options'];
91
+                $behaviors['authenticator']['except'] = ['options'];
92 92
             }
93 93
         }
94 94
         
95 95
         if ($this->enableCors) {
96
-        	$behaviors['cors'] = Cors::class;
96
+            $behaviors['cors'] = Cors::class;
97 97
         }
98 98
 
99 99
         $behaviors['contentNegotiator'] = [
Please login to merge, or discard this patch.