lib/middlewares/imageProcessorMiddleware.js
function fetchStyle(id) {
    for (var i = 0; i < styles.length; i++)
      if (styles[i].id === id) return styles[i];
  }
function fetchStyle(id) {
    for (var i = 0; i < styles.length; i++)
      if (styles[i].id === id) return styles[i];
  }
function fetchStyle ( id ) { for ( var i = 0 ; i < styles . length ; i ++ ) if ( styles [ i ] . id === id ) return styles [ i ] ; }
Fetches a style by its id from the list of styles.

@param {String} id The id of the style to fetch
@return {Object} The style description object
Fetches a style by its id from the list of styles .