Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Feb 10, 2015
1 parent 570778d commit 5763476
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 34 deletions.
1 change: 0 additions & 1 deletion src/Exception/FirebaseException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase\Exception;

use Ivory\HttpAdapter\HttpAdapterException;
Expand Down
3 changes: 1 addition & 2 deletions src/Exception/PermissionDeniedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase\Exception;

class PermissionDeniedException extends FirebaseException
{

}
5 changes: 1 addition & 4 deletions src/Firebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Ivory\HttpAdapter\CurlHttpAdapter;
Expand Down Expand Up @@ -192,15 +191,13 @@ private function getResultFromResponse(ResponseInterface $response)
$result = $this->cleanupData($result);
}



return $result;
}

/**
* Removes empty values from the dataset.
*
* @param array $data
* @param array $data
* @return array
*/
private function cleanupData(array $data)
Expand Down
11 changes: 5 additions & 6 deletions src/FirebaseInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Kreait\Firebase\Exception\FirebaseException;
Expand All @@ -16,20 +15,20 @@ interface FirebaseInterface extends LoggerAwareInterface, ReferenceProviderInter
/**
* Returns the data of the given location.
*
* @param string $location The location.
* @param string $location The location.
*
* @throws FirebaseException When the location is not available.
*
* @return array The returned data.
* @return array The returned data.
*/
public function get($location);

/**
* Queries the given location.
*
* @param string $location The location.
* @param Query $query The query.
* @return array The data.
* @param string $location The location.
* @param Query $query The query.
* @return array The data.
*/
public function query($location, Query $query);

Expand Down
1 change: 0 additions & 1 deletion src/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Psr\Log\LoggerAwareTrait;
Expand Down
3 changes: 1 addition & 2 deletions src/ReferenceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Psr\Log\LoggerAwareInterface;
Expand All @@ -22,7 +21,7 @@ public function getData();
/**
* Queries the Reference.
*
* @param Query $query The query.
* @param Query $query The query.
* @return array The data.
*/
public function query(Query $query);
Expand Down
1 change: 0 additions & 1 deletion src/ReferenceProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

interface ReferenceProviderInterface
Expand Down
1 change: 0 additions & 1 deletion src/Restrictions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Kreait\Firebase\Exception\FirebaseException;
Expand Down
1 change: 0 additions & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Kreait\Firebase\Exception\FirebaseException;
Expand Down
1 change: 0 additions & 1 deletion tests/FirebaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Ivory\HttpAdapter\Configuration;
Expand Down
4 changes: 2 additions & 2 deletions tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

use Ivory\HttpAdapter\CurlHttpAdapter;
Expand Down Expand Up @@ -56,7 +56,7 @@ protected function setUp()
$this->recordingMode = (int) getenv('FIREBASE_TEST_RECORDING_MODE');

$r = new \ReflectionClass($this);
$this->fixturesDir = __DIR__ . '/fixtures/' . $r->getShortName();
$this->fixturesDir = __DIR__.'/fixtures/'.$r->getShortName();

$this->setHttpAdapter();
}
Expand Down
10 changes: 5 additions & 5 deletions tests/QueryIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

class QueryIntegrationTest extends IntegrationTest
Expand All @@ -32,10 +32,10 @@ protected function setUpQueryData()
$this->recorder->insertTape(__FUNCTION__);
$this->recorder->startRecording();

$this->firebase->set(['first_name' => 'd', 'height' => 1, '.priority' => 2], $this->baseLocation . '/d');
$this->firebase->set(['first_name' => 'b', 'height' => 3, '.priority' => 4], $this->baseLocation . '/b');
$this->firebase->set(['first_name' => 'c', 'height' => 2, '.priority' => 1], $this->baseLocation . '/c');
$this->firebase->set(['first_name' => 'a', 'height' => 4, '.priority' => 3], $this->baseLocation . '/a');
$this->firebase->set(['first_name' => 'd', 'height' => 1, '.priority' => 2], $this->baseLocation.'/d');
$this->firebase->set(['first_name' => 'b', 'height' => 3, '.priority' => 4], $this->baseLocation.'/b');
$this->firebase->set(['first_name' => 'c', 'height' => 2, '.priority' => 1], $this->baseLocation.'/c');
$this->firebase->set(['first_name' => 'a', 'height' => 4, '.priority' => 3], $this->baseLocation.'/a');

$this->recorder->stopRecording();
$this->recorder->eject();
Expand Down
2 changes: 1 addition & 1 deletion tests/QueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

class QueryTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/ReferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

class ReferenceTest extends \PHPUnit_Framework_TestCase
Expand Down
1 change: 0 additions & 1 deletion tests/UtilsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

namespace Kreait\Firebase;

class UtilsTest extends \PHPUnit_Framework_TestCase
Expand Down
3 changes: 1 addition & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/

$loader = require __DIR__."/../vendor/autoload.php";

Dotenv::load(__DIR__);
Dotenv::load(__DIR__);
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ }
{ }

0 comments on commit 5763476

Please sign in to comment.