Permalink
Browse files

Remove whitespace [Gun.io WhitespaceBot]

  • Loading branch information...
1 parent e6f59ba commit 8537309e07213086f5ba93dcfd8eba1eb4d8b735 Gun.io Whitespace Robot committed Oct 29, 2011
View
@@ -0,0 +1,20 @@
+# Compiled source #
+###################
+*.com
+*.class
+*.dll
+*.exe
+*.o
+*.so
+*.pyc
+
+# Logs and databases #
+######################
+*.log
+
+# OS generated files #
+######################
+.DS_Store*
+ehthumbs.db
+Icon?
+Thumbs.db
View
@@ -9,7 +9,7 @@ tools like mongoDB or couchDB and traditional relational database systems
like MySQL. It offers the best of both worlds: SQL and no-SQL. You work
with no-SQL if you interact with objects will you simply turn the switch
and work with SQL if you want to do some typical database tasks like
-searching or quikly grabbing something out of the data store with
+searching or quikly grabbing something out of the data store with
specially crafted SQL. RedBean also has excellent performance because it
can freeze the database schema which means it no longer scans schemas.
@@ -29,7 +29,7 @@ How we store a book object with RedBean:
$book->author = "Santa Claus";
$book->title = "Secrets of Christmas";
$id = R::store( $book );
-
+
Yep, it's that simple.
View
@@ -1,7 +1,7 @@
<?php
/**
* Adapter Interface
- *
+ *
* @file RedBean/Adapter.php
* @description Describes the API for a RedBean Database Adapter.
* @author Gabor de Mooij
@@ -246,7 +246,7 @@ public function getDatabase() {
/**
* Return latest error message.
- *
+ *
* @return string $message most recent error message
*/
public function getErrorMsg() {
@@ -37,7 +37,7 @@ class RedBean_AssociationManager extends RedBean_Observable {
/**
* Constructor
- *
+ *
* @param RedBean_ToolBox $tools toolbox
*/
public function __construct( RedBean_ToolBox $tools ) {
@@ -131,7 +131,7 @@ protected function associateBeans(RedBean_OODBBean $bean1, RedBean_OODBBean $bea
))) throw $e;
}
}
-
+
/**
* Returns all ids of beans of type $type that are related to $bean. If the
* $getLinks parameter is set to boolean TRUE this method will return the ids
@@ -291,7 +291,7 @@ public function clearRelations(RedBean_OODBBean $bean, $type) {
)) throw $e;
}
}
-
+
/**
* Given two beans this function returns TRUE if they are associated using a
* many-to-many association, FALSE otherwise.
View
@@ -39,7 +39,7 @@ private function resp($result=null, $id=null, $errorCode="-32603",$errorMessage=
$response = array(
"jsonrpc"=>"2.0",
);
-
+
if ($id) {
$response["id"] = $id;
}
@@ -103,7 +103,7 @@ public function handleJSONRequest( $jsonString ) {
//Collect Bean and Action
$beanType = $method[0];
$action = $method[1];
-
+
//May not contain anything other than ALPHA NUMERIC chars and _
if (preg_match("/\W/",$beanType)) return $this->resp(null, $id, -32600,"Invalid Bean Type String");
if (preg_match("/\W/",$action)) return $this->resp(null, $id, -32600,"Invalid Action String");
@@ -2,7 +2,7 @@
/**
* RedBean Bean Helper
* @file RedBean/BeanHelperFacade.php
- * @description
+ * @description
*
* @author Gabor de Mooij
* @license BSD
View
@@ -29,7 +29,7 @@ class RedBean_Cooker {
* To load a bean (for association):
*
* array( "theaddress"=> array("type"=>"address","id"=>2) )
- *
+ *
* - Loads a bean of type address with ID 2
*
* Now to associate this bean in your form:
@@ -90,10 +90,10 @@ public static function load($post, RedBean_ToolBox $toolbox) {
}
//do we need to modify this bean?
foreach($rawBean as $field=>$value){
- if (!empty($value))
+ if (!empty($value))
$bean->$field = $value;
elseif (!self::$dontSetEmptyValues)
- $bean->$field = $value;
+ $bean->$field = $value;
}
$can[$key]=$bean;
if (!isset($sorted[$type])) $sorted[$type]=array();
@@ -109,7 +109,7 @@ public static function load($post, RedBean_ToolBox $toolbox) {
if (isset($can[$keys[0]])) $bean1 = $can[$keys[0]]; else {
$loader = explode(":",$keys[0]);
$bean1 = RedBean_Facade::load( $loader[0], $loader[1] );
- }
+ }
$bean2 = $can[$keys[1]];
$pairs[] = array( $bean1, $bean2 );
}
@@ -124,7 +124,7 @@ public static function load($post, RedBean_ToolBox $toolbox) {
/**
* Sets the toolbox to be used by graph()
- *
+ *
* @param RedBean_Toolbox $toolbox toolbox
* @return void
*/
@@ -10,22 +10,22 @@
* @license BSD
*/
class RedBean_DefaultBeanFormatter implements RedBean_IBeanFormatter {
-
+
/**
* Holds the prefix to be used for tables.
- * @var string
+ * @var string
*/
protected $tablePrefixStr = '';
-
+
/**
* Sets the prefix to be used for tables
- *
- * @param string $tablePrefixStr prefix string for tables
+ *
+ * @param string $tablePrefixStr prefix string for tables
*/
public function setPrefix($prefix) {
$this->tablePrefixStr = preg_replace('/\W/','',$prefix);
}
-
+
/**
* Formats a table
*
@@ -36,15 +36,15 @@ public function formatBeanTable( $type ){
}
/**
* Formats an ID
- *
+ *
* @param string $type type
*/
public function formatBeanID( $type ){
return 'id';
}
/**
* Returns the alias for a type
- *
+ *
* @param $type aliased type
*
* @return string $type type
@@ -77,7 +77,7 @@ class RedBean_Driver_PDO implements RedBean_Driver {
/**
*
* @var boolean
- *
+ *
* Whether we are currently connected or not.
* This flag is being used to delay the connection until necessary.
* Delaying connections is a good practice to speed up scripts that
@@ -168,7 +168,7 @@ public function connect() {
*
* @param PDOStatement $s PDO Statement instance
* @param array $aValues values that need to get bound to the statement
- *
+ *
* @return void
*/
protected function bindParams($s,$aValues) {
@@ -192,15 +192,15 @@ protected function bindParams($s,$aValues) {
elseif (!$this->flagUseStringOnlyBinding && RedBean_QueryWriter_AQueryWriter::canBeTreatedAsInt($value) && $value < 2147483648) {
$s->bindParam($key,$value,PDO::PARAM_INT);
}
- else {
+ else {
$s->bindParam($key,$value,PDO::PARAM_STR);
}
}
}
}
-
+
/**
* Runs a query and fetches results as a multi dimensional array.
*
@@ -509,7 +509,7 @@ public function getDatabaseVersion() {
/**
* Returns the underlying PHP PDO instance.
- *
+ *
* @return PDO $pdo PDO instance used by PDO wrapper
*/
public function getPDO() {
@@ -1,7 +1,7 @@
<?php
/**
* RedBean Exception Base
- *
+ *
* @file RedBean/Exception.php
* @description Represents the base class
* for RedBean Exceptions
@@ -1,7 +1,7 @@
<?php
/**
* RedBean Exception SQL
- *
+ *
* @file RedBean/Exception/SQL.php
* @description Represents a generic database exception independent of the
* underlying driver.
@@ -23,7 +23,7 @@ class RedBean_Exception_SQL extends Exception {
/**
* Returns an ANSI-92 compliant SQL state.
- *
+ *
* @return string $state ANSI state code
*/
public function getSQLState() {
@@ -33,7 +33,7 @@ public function getSQLState() {
/**
* @todo parse state to verify valid ANSI92!
* Stores ANSI-92 compliant SQL state.
- *
+ *
* @param string $sqlState code
*/
public function setSQLState( $sqlState ) {
@@ -1,8 +1,8 @@
-<?php
+<?php
/**
* Exception Security.
* Part of the RedBean Exceptions Mechanism.
- *
+ *
* @file RedBean/Exception
* @description Represents a subtype in the RedBean Exception System.
* @author Gabor de Mooij
Oops, something went wrong.

0 comments on commit 8537309

Please sign in to comment.