Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whitespace cleanup for psr-2 compliance

  • Loading branch information...
commit 51b2cd1de4030e3bbc1d41e9bc7bce05a64c28f9 1 parent 9813631
@jeremiahsmall jeremiahsmall authored
View
2  module/Application/Module.php
@@ -32,7 +32,7 @@ public function getAutoloaderConfig()
),
);
}
-
+
public function getServiceConfig()
{
/**
View
42 module/Application/config/module.config.php
@@ -77,12 +77,12 @@
'service_manager' => array(
/**
* Notes on ServiceManager config from http://akrabat.com/zend-framework-2/zendservicemanager-configuration-keys/
- * Within the service_manager array, there are a set of nested arrays which are generally used to configure
- * how you want a given class to be instantiated. the names of these sub-arrays are hardcoded, so you just
+ * Within the service_manager array, there are a set of nested arrays which are generally used to configure
+ * how you want a given class to be instantiated. the names of these sub-arrays are hardcoded, so you just
* need to learn their names and the difference between them:
*/
'factories' => array(
- /**
+ /**
* The factories node defines callbacks that return an instantiated class. This is for cases where you need
* to configure the instance of the object. The callback can be a class that implements
* Zend\ServiceManager\FactoryInterface as in the first example for the simple_fm adapter below, or
@@ -101,12 +101,12 @@
$simpleFMAdapter = $sm->get('simple_fm');
return new \Application\Gateway\Task($sm, $entity, $simpleFMAdapter);
},
-
-
+
+
),
'invokables' => array(
-// /**
-// * A string which is the name of a class to be instantiated. The ServiceManager will instantiate the
+// /**
+// * A string which is the name of a class to be instantiated. The ServiceManager will instantiate the
// * class for you when needed.
// * For example:
// */
@@ -116,16 +116,16 @@
// 'zfcuser_user' => 'User\Service\User'
),
'services' => array(
-// /**
-// * An instance of a class. This is used to register already instantiated objects with the ServiceManager.
+// /**
+// * An instance of a class. This is used to register already instantiated objects with the ServiceManager.
// * For example:
// */
// 'rob' => $rob, // $rob is already instantiated
),
'aliases' => array(
// /**
-// * Another name for a class. Generally, you see this used within a module so that the module uses it's
-// * own alias name and then the user of the module can configure exactly which class that alias name is
+// * Another name for a class. Generally, you see this used within a module so that the module uses it's
+// * own alias name and then the user of the module can configure exactly which class that alias name is
// * to be.
// * For example:
// */
@@ -133,9 +133,9 @@
// 'mymodule_zend_db_adapter' => 'Zend\Db\Adapter\Adapter',
),
'initializers' => array(
-// /**
+// /**
// * A callback that is executed every time the ServiceManager creates a new instance of a class. These are
-// * usually used to inject an object into the new class instance if that class implements a particular
+// * usually used to inject an object into the new class instance if that class implements a particular
// * interface.
// * For example:
// */
@@ -145,20 +145,20 @@
// }
// }
// /**
-// * In the case, the initialiser checks if $instance implements AuthorizeAwareInterface and if it injects
-// * the Authorize service into the instance ready for use. Another really common use-case is injecting a
+// * In the case, the initialiser checks if $instance implements AuthorizeAwareInterface and if it injects
+// * the Authorize service into the instance ready for use. Another really common use-case is injecting a
// * database adapter and Zend Framework supplies Zend\Db\Adapter\AdapterAwareInterface for this case.
// */
),
'abstract_factories' => array(
// /**
// * There is also the abstract_factories key, but this is rarely used in most apps.
-// *
-// * A factory instance that can create multiple services based on the name supplied to the factory. This is
-// * used to enable ServiceManager to fallback to another Service Locator system if it can cannot locate the
-// * required class from within its own configuration. As an example, you could write an abstract factory
-// * that proxies to Symfony's DependencyInjection component. Items within this sub-key can be either a
-// * classname string or an instance of the factory itself
+// *
+// * A factory instance that can create multiple services based on the name supplied to the factory. This is
+// * used to enable ServiceManager to fallback to another Service Locator system if it can cannot locate the
+// * required class from within its own configuration. As an example, you could write an abstract factory
+// * that proxies to Symfony's DependencyInjection component. Items within this sub-key can be either a
+// * classname string or an instance of the factory itself
// * All abstract factories must implement Zend\ServiceManager\AbstractFactoryInterface.
// * For example:
// */
View
14 module/Application/src/Application/Entity/Project.php
@@ -12,14 +12,14 @@
class Project extends AbstractEntity
{
-
+
/**
* Writable Fields
*/
protected $projectName;
protected $description;
protected $tag;
-
+
/**
* Read-only Fields
*/
@@ -41,7 +41,7 @@ public function __construct($simpleFMAdapterRow = array())
$this->tasks = new ArrayCollection();
parent::__construct($simpleFMAdapterRow);
}
-
+
/**
* @param array $simpleFMAdapterRow
* @see \Soliant\SimpleFM\ZF2\Entity\AbstractEntity::unserialize()
@@ -61,13 +61,13 @@ public function unserialize()
$this->unserializeField('daysElapsed', 'Days Elapsed');
$this->unserializeField('statusOnScreen', 'Status on Screen');
$this->unserializeField('createdBy', 'Created By');
-
+
if (!empty($this->simpleFMAdapterRow["Tasks"]["rows"])){
foreach ($this->simpleFMAdapterRow["Tasks"]["rows"] as $row){
$this->tasks->add(new Task($row));
}
}
-
+
return $this;
}
@@ -218,8 +218,8 @@ public static function getDefaultControllerRouteSegment()
return 'project';
}
-
-
+
+
}
View
14 module/Application/src/Application/Entity/Task.php
@@ -12,14 +12,14 @@
class Task extends AbstractEntity
{
-
+
/**
* Writable Fields
*/
protected $taskName;
protected $description;
protected $tag;
-
+
/**
* Read-only Fields
*/
@@ -50,7 +50,7 @@ public function __construct($simpleFMAdapterRow = array())
{
parent::__construct($simpleFMAdapterRow);
}
-
+
/**
* @param array $simpleFMAdapterRow
* @see \Soliant\SimpleFM\ZF2\Entity\AbstractEntity::unserialize()
@@ -77,11 +77,11 @@ public function unserialize()
$this->unserializeField('personnelName', 'PERSONNEL NAME MATCH FIELD');
$this->unserializeField('personnelEmail', 'Personnel::Email');
$this->unserializeField('personnelPhone', 'Personnel::Phone');
-
+
if (!empty($this->simpleFMAdapterRow["Projects"]["rows"])){
$this->project = new Project($this->simpleFMAdapterRow["Projects"]["rows"][0]);
}
-
+
return $this;
}
@@ -113,7 +113,7 @@ public function getTaskName ()
{
return $this->taskName;
}
-
+
/**
* @param field_type $taskName
* @return \Application\Entity\Task
@@ -159,7 +159,7 @@ public function setTag ($tag)
$this->tag = $tag;
return $this;
}
-
+
/**
* @return the $startDate
*/
View
8 module/Application/src/Application/Gateway/Project.php
@@ -14,15 +14,15 @@ class Project extends AbstractGateway
{
public function helloWorld() {
-
+
$project = $this->find(7676);
-
+
$project->setProjectName('Launch web site ' . $project->getModid())
->setDescription('myDescription')
->setTag('myTag');
-
+
return $this->edit($project);
-
+
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.