Completed
Push — master ( 29af84...9c6b4e )
by judicael
04:46 queued 01:09
created
bundles/ext/facebook/base_facebook.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -98,11 +98,11 @@  discard block
 block discarded – undo
98 98
    * @return string The string representation of the error
99 99
    */
100 100
   public function __toString() {
101
-    $str = $this->getType() . ': ';
101
+    $str = $this->getType().': ';
102 102
     if ($this->code != 0) {
103
-      $str .= $this->code . ': ';
103
+      $str .= $this->code.': ';
104 104
     }
105
-    return $str . $this->message;
105
+    return $str.$this->message;
106 106
   }
107 107
 }
108 108
 
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
       if (array_key_exists('user_id', $signed_request)) {
531 531
         $user = $signed_request['user_id'];
532 532
 
533
-        if($user != $this->getPersistentData('user_id')){
533
+        if ($user != $this->getPersistentData('user_id')) {
534 534
           $this->clearAllPersistentData();
535 535
         }
536 536
 
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
    * @param array $params Provide custom parameters
577 577
    * @return string The URL for the login flow
578 578
    */
579
-  public function getLoginUrl($params=array()) {
579
+  public function getLoginUrl($params = array()) {
580 580
     $this->establishCSRFTokenState();
581 581
     $currentUrl = $this->getCurrentUrl();
582 582
 
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
    * @param array $params Provide custom parameters
606 606
    * @return string The URL for the logout flow
607 607
    */
608
-  public function getLogoutUrl($params=array()) {
608
+  public function getLogoutUrl($params = array()) {
609 609
     return $this->getUrl(
610 610
       'www',
611 611
       'logout.php',
@@ -627,7 +627,7 @@  discard block
 block discarded – undo
627 627
    * @param array $params Provide custom parameters
628 628
    * @return string The URL for the logout flow
629 629
    */
630
-  public function getLoginStatusUrl($params=array()) {
630
+  public function getLoginStatusUrl($params = array()) {
631 631
     return $this->getUrl(
632 632
       'www',
633 633
       'extern/login_status.php',
@@ -937,7 +937,7 @@  discard block
 block discarded – undo
937 937
    *
938 938
    * @return string The response text
939 939
    */
940
-  protected function makeRequest($url, $params, $ch=null) {
940
+  protected function makeRequest($url, $params, $ch = null) {
941 941
     if (!$ch) {
942 942
       $ch = curl_init();
943 943
     }
@@ -967,7 +967,7 @@  discard block
 block discarded – undo
967 967
       self::errorLog('Invalid or no certificate authority found, '.
968 968
                      'using bundled information');
969 969
       curl_setopt($ch, CURLOPT_CAINFO,
970
-                  dirname(__FILE__) . '/fb_ca_chain_bundle.crt');
970
+                  dirname(__FILE__).'/fb_ca_chain_bundle.crt');
971 971
       $result = curl_exec($ch);
972 972
     }
973 973
 
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
 
1021 1021
     if (strtoupper($data['algorithm']) !== self::SIGNED_REQUEST_ALGORITHM) {
1022 1022
       self::errorLog(
1023
-        'Unknown algorithm. Expected ' . self::SIGNED_REQUEST_ALGORITHM);
1023
+        'Unknown algorithm. Expected '.self::SIGNED_REQUEST_ALGORITHM);
1024 1024
       return null;
1025 1025
     }
1026 1026
 
@@ -1044,7 +1044,7 @@  discard block
 block discarded – undo
1044 1044
   protected function makeSignedRequest($data) {
1045 1045
     if (!is_array($data)) {
1046 1046
       throw new InvalidArgumentException(
1047
-        'makeSignedRequest expects an array. Got: ' . print_r($data, true));
1047
+        'makeSignedRequest expects an array. Got: '.print_r($data, true));
1048 1048
     }
1049 1049
     $data['algorithm'] = self::SIGNED_REQUEST_ALGORITHM;
1050 1050
     $data['issued_at'] = time();
@@ -1141,7 +1141,7 @@  discard block
 block discarded – undo
1141 1141
    *
1142 1142
    * @return string The URL for the given parameters
1143 1143
    */
1144
-  protected function getUrl($name, $path='', $params=array()) {
1144
+  protected function getUrl($name, $path = '', $params = array()) {
1145 1145
     $url = self::$DOMAIN_MAP[$name];
1146 1146
     if ($path) {
1147 1147
       if ($path[0] === '/') {
@@ -1150,7 +1150,7 @@  discard block
 block discarded – undo
1150 1150
       $url .= $path;
1151 1151
     }
1152 1152
     if ($params) {
1153
-      $url .= '?' . http_build_query($params, null, '&');
1153
+      $url .= '?'.http_build_query($params, null, '&');
1154 1154
     }
1155 1155
 
1156 1156
     return $url;
@@ -1206,7 +1206,7 @@  discard block
 block discarded – undo
1206 1206
    * @return string The current URL
1207 1207
    */
1208 1208
   protected function getCurrentUrl() {
1209
-    $protocol = $this->getHttpProtocol() . '://';
1209
+    $protocol = $this->getHttpProtocol().'://';
1210 1210
     $host = $this->getHttpHost();
1211 1211
     $currentUrl = $protocol.$host.$_SERVER['REQUEST_URI'];
1212 1212
     $parts = parse_url($currentUrl);
@@ -1232,10 +1232,10 @@  discard block
 block discarded – undo
1232 1232
       isset($parts['port']) &&
1233 1233
       (($protocol === 'http://' && $parts['port'] !== 80) ||
1234 1234
        ($protocol === 'https://' && $parts['port'] !== 443))
1235
-      ? ':' . $parts['port'] : '';
1235
+      ? ':'.$parts['port'] : '';
1236 1236
 
1237 1237
     // rebuild
1238
-    return $protocol . $parts['host'] . $port . $parts['path'] . $query;
1238
+    return $protocol.$parts['host'].$port.$parts['path'].$query;
1239 1239
   }
1240 1240
 
1241 1241
   /**
Please login to merge, or discard this patch.
bundles/ext/facebook/facebook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
   }
148 148
 
149 149
   protected function getSharedSessionCookieName() {
150
-    return self::FBSS_COOKIE_NAME . '_' . $this->getAppId();
150
+    return self::FBSS_COOKIE_NAME.'_'.$this->getAppId();
151 151
   }
152 152
 
153 153
   protected function constructSessionVariableName($key) {
Please login to merge, or discard this patch.
bundles/tests/Demo/app/Controller/Exemple1Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
                 $this->assertTrue(false);
62 62
             }
63 63
         }
64
-        catch(\Exception $e) {
64
+        catch (\Exception $e) {
65 65
             $this->assertTrue(false);
66 66
         }
67 67
 
Please login to merge, or discard this patch.
bundles/lib/Ldap.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
     public function getGroups() : array
81 81
     {
82
-        $rSearch = ldap_search( $this->_rConnect , $this->_sBase , "objectclass=group" , array("cn") );
82
+        $rSearch = ldap_search($this->_rConnect, $this->_sBase, "objectclass=group", array("cn"));
83 83
         $aEntries = ldap_get_entries($this->_rConnect, $rSearch);
84 84
         $aGroups = array();
85 85
 
86
-        for ( $i = 0 ; $i < $aEntries["count"] ; $i++ ) {
86
+        for ($i = 0; $i < $aEntries["count"]; $i++) {
87 87
             
88 88
             $aGroups[] = utf8_encode($aEntries[$i]["dn"]);
89 89
         }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 		    
192 192
 			$aResultSet[$i] = array_intersect_key($aEntries[$i], $aMask);
193 193
 
194
-			foreach($aResultSet[$i] as &$aValues) {
194
+			foreach ($aResultSet[$i] as &$aValues) {
195 195
 			    
196 196
 				unset($aValues['count']);
197 197
 			}
Please login to merge, or discard this patch.
bundles/lib/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	    $ImageChoisie = imagecreatefromjpeg($_FILES['ImageNews']['tmp_name']);
53 53
         $TailleImageChoisie = getimagesize($_FILES['ImageNews']['tmp_name']);
54 54
 
55
-        $rNewImage = imagecreatetruecolor($iWidth , $iHeight);
55
+        $rNewImage = imagecreatetruecolor($iWidth, $iHeight);
56 56
 
57 57
         if ($bKeepDimension === false) {
58 58
         
@@ -89,6 +89,6 @@  discard block
 block discarded – undo
89 89
         $NomImageExploitable = time();
90 90
       
91 91
         header('Content-Type: image/jpeg');
92
-        imagejpeg($rNewImage , null, 100);
92
+        imagejpeg($rNewImage, null, 100);
93 93
 	}
94 94
 }
Please login to merge, or discard this patch.
bundles/lib/Cache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 	 * @param  int $iTimeout expiration of cache
92 92
 	 * @return bool
93 93
 	 */
94
-	public static function get(string $sName, int &$iFlags = null, int $iTimeout = 0) : bool
94
+	public static function get(string $sName, int&$iFlags = null, int $iTimeout = 0) : bool
95 95
 	{
96 96
 		return self::_getCacheObject()->get($sName, $iFlags, $iTimeout);
97 97
 	}
Please login to merge, or discard this patch.
bundles/lib/Asset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	    $aJavascript = func_get_args();
45 45
 	    $aReturns = array();
46 46
 	    
47
-	    foreach($aJavascript as $aJsCombination) {
47
+	    foreach ($aJavascript as $aJsCombination) {
48 48
 	        
49 49
 	        $sJsPath = $sDefaultPath;
50 50
 	        
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	    $aCss = func_get_args();
80 80
 	    $aReturns = array();
81 81
 	    
82
-	    foreach($aCss as $aCssCombination) {
82
+	    foreach ($aCss as $aCssCombination) {
83 83
 	        
84 84
 	        $sCssPath = $sDefaultPath;
85 85
 	        
Please login to merge, or discard this patch.
bundles/lib/Request.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 
196 196
 	        $aSeparatePut = explode('&', $sData);
197 197
 	        
198
-	        foreach($aSeparatePut as $sOne) {
198
+	        foreach ($aSeparatePut as $sOne) {
199 199
 	            
200 200
 	            $aOnePut = explode('=', $sOne);
201 201
 	            $aPut[$aOnePut[0]] = $aOnePut[1];
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
 	 */
215 215
 	public static function setStatus($iCode)
216 216
 	{
217
-		if ($iCode === 200) { header('HTTP/1.1 200 Ok');  }
218
-		else if ($iCode === 201) { header('HTTP/1.1 201 Created');  }
219
-		else if ($iCode === 204) { header("HTTP/1.0 204 No Content");  }
217
+		if ($iCode === 200) { header('HTTP/1.1 200 Ok'); }
218
+		else if ($iCode === 201) { header('HTTP/1.1 201 Created'); }
219
+		else if ($iCode === 204) { header("HTTP/1.0 204 No Content"); }
220 220
 		else if ($iCode === 403) { header('HTTP/1.1 403 Forbidden'); }
221 221
 		else if ($iCode === 404) { header('HTTP/1.1 404 Not Found'); }
222 222
 	}
Please login to merge, or discard this patch.
bundles/lib/Cache/CacheInterface.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
 	 * @param  int $iFlags flags
50 50
 	 * @param  int $iTimeout expiration of cache
51 51
 	 */
52
-	public function get(string $sName, int &$iFlags = null, int $iTimeout = 0);
52
+	public function get(string $sName, int&$iFlags = null, int $iTimeout = 0);
53 53
 
54 54
 	/**
55 55
 	 * delete a value
Please login to merge, or discard this patch.