Completed
Push — master ( 85e358...cf3219 )
by Rakesh
04:24 queued 10s
created
appconfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,11 +6,11 @@
 block discarded – undo
6 6
 require_once('lib/Facebook/Authentication/AccessToken.php');
7 7
 require_once('lib/Facebook/HttpClients/FacebookCurl.php');
8 8
 require_once('lib/Facebook/HttpClients/FacebookCurlHttpClient.php');
9
-require_once('lib/Facebook/Helpers/FacebookRedirectLoginHelper.php' );
10
-require_once('lib/Facebook/FacebookRequest.php' );
11
-require_once('lib/Facebook/FacebookResponse.php' );
12
-require_once('lib/Facebook/Exceptions/FacebookSDKException.php' );
13
-require_once('lib/Facebook/Exceptions/FacebookAuthorizationException.php' );
9
+require_once('lib/Facebook/Helpers/FacebookRedirectLoginHelper.php');
10
+require_once('lib/Facebook/FacebookRequest.php');
11
+require_once('lib/Facebook/FacebookResponse.php');
12
+require_once('lib/Facebook/Exceptions/FacebookSDKException.php');
13
+require_once('lib/Facebook/Exceptions/FacebookAuthorizationException.php');
14 14
 
15 15
     $appId = '359690587983062'; // Facebook App id 589129311570125 589129311570125
16 16
     $appSecret = 'ee50a6453ab0da99c80521144f8baefe'; //92f90e5dff5c6bdc2da0281631ec0446  538cd04f971479ff14dc409df2fbcf3b
Please login to merge, or discard this patch.
fb-callback.php 1 patch
Spacing   +2 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 session_start();
10 10
 require_once 'appconfig.php';
11 11
 $fb = new Facebook\Facebook([
12
-<<<<<<< HEAD
12
+<< << <<< HEAD
13 13
   'app_id' => $appId, // variable with Facebook App ID
14 14
   'app_secret' => $appSecret,
15 15
   'default_graph_version' => 'v3.3',
@@ -75,9 +75,4 @@  discard block
 block discarded – undo
75 75
     var_dump($accessToken->getValue());
76 76
 }
77 77
 
78
-$_SESSION['fb_access_token'] = (string)$accessToken;
79
-
80
-header('Location: member.php');
81
-?>
82
-</body>
83
-</html>
84 78
\ No newline at end of file
79
+$_SESSION['fb_access_token'] = (string)$accessToken
85 80
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Zend/Xml/Security.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         // Load XML with network access disabled (LIBXML_NONET)
59 59
         // error disabled with @ for PHP-FPM scenario
60
-        set_error_handler(function ($errno, $errstr) {
60
+        set_error_handler(function($errno, $errstr) {
61 61
             if (substr_count($errstr, 'DOMDocument::loadXML()') > 0) {
62 62
                 return true;
63 63
             }
Please login to merge, or discard this patch.
lib/Zend/Gdata.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *                                    useObjectMapping() function.
122 122
      */
123 123
     public static function import($uri, $client = null,
124
-        $className='Zend_Gdata_Feed', $useObjectMapping = true)
124
+        $className = 'Zend_Gdata_Feed', $useObjectMapping = true)
125 125
     {
126 126
         $app = new Zend_Gdata($client);
127 127
         $requestData = $app->decodeRequest('GET', $uri);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      *                                    by passing false to the
148 148
      *                                    useObjectMapping() function.
149 149
      */
150
-    public function getFeed($location, $className='Zend_Gdata_Feed')
150
+    public function getFeed($location, $className = 'Zend_Gdata_Feed')
151 151
     {
152 152
 	
153 153
         if (is_string($location)) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      *                                     by passing false to the
175 175
      *                                     useObjectMapping() function.
176 176
      */
177
-    public function getEntry($location, $className='Zend_Gdata_Entry')
177
+    public function getEntry($location, $className = 'Zend_Gdata_Entry')
178 178
     {
179 179
         if (is_string($location)) {
180 180
             $uri = $location;
Please login to merge, or discard this patch.
lib/Zend/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
         $schemeHandler = new $className($scheme, $schemeSpecific);
144 144
 
145
-        if (! $schemeHandler instanceof Zend_Uri) {
145
+        if (!$schemeHandler instanceof Zend_Uri) {
146 146
             require_once 'Zend/Uri/Exception.php';
147 147
             throw new Zend_Uri_Exception("\"$className\" is not an instance of Zend_Uri");
148 148
         }
Please login to merge, or discard this patch.
lib/Zend/Loader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
         if ('Zend_Loader' != $class) {
261 261
             self::loadClass($class);
262 262
             $methods = get_class_methods($class);
263
-            if (!in_array('autoload', (array) $methods)) {
263
+            if (!in_array('autoload', (array)$methods)) {
264 264
                 require_once 'Zend/Exception.php';
265 265
                 throw new Zend_Exception("The class \"$class\" does not have an autoload() method");
266 266
             }
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         if ($once) {
313 313
             return include_once $filespec;
314 314
         } else {
315
-            return include $filespec ;
315
+            return include $filespec;
316 316
         }
317 317
     }
318 318
 
Please login to merge, or discard this patch.
lib/Zend/Exception.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
     public function __construct($msg = '', $code = 0, Exception $previous = null)
44 44
     {
45 45
         if (version_compare(PHP_VERSION, '5.3.0', '<')) {
46
-            parent::__construct($msg, (int) $code);
46
+            parent::__construct($msg, (int)$code);
47 47
             $this->_previous = $previous;
48 48
         } else {
49
-            parent::__construct($msg, (int) $code, $previous);
49
+            parent::__construct($msg, (int)$code, $previous);
50 50
         }
51 51
     }
52 52
 
Please login to merge, or discard this patch.
lib/Zend/Uri/Http.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -494,7 +494,7 @@  discard block
 block discarded – undo
494 494
         }
495 495
 
496 496
         // Check the port against the allowed values
497
-        return ctype_digit((string) $port) and 1 <= $port and $port <= 65535;
497
+        return ctype_digit((string)$port) and 1 <= $port and $port <= 65535;
498 498
     }
499 499
 
500 500
     /**
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
             throw new Zend_Uri_Exception('Internal error: path validation failed');
555 555
         }
556 556
 
557
-        return (boolean) $status;
557
+        return (boolean)$status;
558 558
     }
559 559
 
560 560
     /**
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
             $query = http_build_query($query, '', '&');
685 685
         } else {
686 686
             // If it is a string, make sure it is valid. If not parse and encode it
687
-            $query = (string) $query;
687
+            $query = (string)$query;
688 688
             if ($this->validateQuery($query) === false) {
689 689
                 parse_str($query, $queryArray);
690 690
                 $query = http_build_query($queryArray, '', '&');
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
             throw new Zend_Uri_Exception('Internal error: fragment validation failed');
741 741
         }
742 742
 
743
-        return (boolean) $status;
743
+        return (boolean)$status;
744 744
     }
745 745
 
746 746
     /**
Please login to merge, or discard this patch.
lib/Zend/Gdata/Query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 
396 396
     public function __get($name)
397 397
     {
398
-        $method = 'get'.ucfirst($name);
398
+        $method = 'get' . ucfirst($name);
399 399
         if (method_exists($this, $method)) {
400 400
             return call_user_func(array(&$this, $method));
401 401
         } else {
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 
407 407
     public function __set($name, $val)
408 408
     {
409
-        $method = 'set'.ucfirst($name);
409
+        $method = 'set' . ucfirst($name);
410 410
         if (method_exists($this, $method)) {
411 411
             return call_user_func(array(&$this, $method), $val);
412 412
         } else {
Please login to merge, or discard this patch.