Skip to content

Commit

Permalink
remove excessive whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarkie committed Sep 17, 2014
1 parent aeee33c commit ac269ab
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions cfstatsd.cfc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!---
<!---
Copyright (c) 2011-2012 Matthew Walker
Permission is hereby granted, free of charge, to any person obtaining a copy
Expand All @@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--->

<!---
<!---
cfstatsd is a ColdFusion client for StatsD (https://github.com/etsy/statsd)
More info on StatsD:
Expand Down Expand Up @@ -62,7 +62,7 @@ Cheers!
<cfargument name="port" type="numeric" required="false" default="8125" />

<cfset this.host = arguments.host />
<cfset this.port = arguments.port />
<cfset this.port = arguments.port />

<cfset this._channel = createObject('java','java.nio.channels.DatagramChannel').open() />
<cfset _host = createObject('java','java.net.InetAddress').getByName(this.host) />
Expand All @@ -76,7 +76,7 @@ Cheers!
<cfargument name="key" type="string" required="true" />
<cfargument name="magnitude" type="numeric" required="false" default="1" />
<cfargument name="sampleRate" type="numeric" required="false" default="1" />

<cfreturn incrementMulti(arguments.magnitude, arguments.sampleRate, arguments.key) />
</cffunction>

Expand All @@ -85,7 +85,7 @@ Cheers!
<cfargument name="magnitude" type="numeric" required="true" />
<cfargument name="sampleRate" type="numeric" required="true" />
<cfargument name="keys" type="any" required="true" />

<!--- Treat non-named arguments as java-style varargs arguments (ex. String... stats) --->
<cfset namedArgumentCount = 3 />
<cfset keysArray = ArrayNew(1) />
Expand All @@ -101,7 +101,7 @@ Cheers!
</cfloop>
</cfif>
<cfelse>
<cfthrow type="InvalidArgumentTypeException"
<cfthrow type="InvalidArgumentTypeException"
message="The keys argument passed to the incrementMulti method is not an array or one or more strings." />
</cfif>

Expand All @@ -118,7 +118,7 @@ Cheers!
<cfargument name="key" type="string" required="true" />
<cfargument name="magnitude" type="numeric" required="false" default="1" />
<cfargument name="sampleRate" type="numeric" required="false" default="1" />

<cfreturn decrementMulti(arguments.magnitude, arguments.sampleRate, arguments.key) />
</cffunction>

Expand All @@ -127,7 +127,7 @@ Cheers!
<cfargument name="magnitude" type="numeric" required="true" />
<cfargument name="sampleRate" type="numeric" required="true" />
<cfargument name="keys" type="any" required="true" />

<!--- Treat non-named arguments as java-style varargs arguments (ex. String... stats) --->
<cfset namedArgumentCount = 3 />
<cfset keysArray = ArrayNew(1) />
Expand All @@ -143,7 +143,7 @@ Cheers!
</cfloop>
</cfif>
<cfelse>
<cfthrow type="InvalidArgumentTypeException"
<cfthrow type="InvalidArgumentTypeException"
message="The keys argument passed to the decrementMulti method is not an array or one or more strings." />
</cfif>

Expand Down Expand Up @@ -175,7 +175,7 @@ Cheers!
<cffunction name="send" access="private" returntype="boolean" output="no">
<cfargument name="sampleRate" type="numeric" required="true" />
<cfargument name="stats" type="any" required="true" />

<!--- Treat non-named arguments as java-style varargs arguments (ex. String... stats) --->
<cfset namedArgumentCount = 2 />
<cfset statsArray = ArrayNew(1) />
Expand All @@ -191,7 +191,7 @@ Cheers!
</cfloop>
</cfif>
<cfelse>
<cfthrow type="InvalidArgumentTypeException"
<cfthrow type="InvalidArgumentTypeException"
message="The stats argument passed to the send method is not an array or one or more strings." />
</cfif>

Expand Down Expand Up @@ -236,7 +236,7 @@ Cheers!

<cfcatch type="Any">
<cflog text="cfstatsd: Could not send stat #arguments.stat# to host #this.host#:#this.port#" type="Warning" log="Application" />
</cfcatch>
</cfcatch>
</cftry>

<cfreturn false />
Expand Down

0 comments on commit ac269ab

Please sign in to comment.