Completed
Push — master ( cad261...f6dfc7 )
by Hugo
02:38
created
app/library/DisplayedMessage.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -10,6 +10,10 @@
 block discarded – undo
10 10
 	private $timerInterval;
11 11
 	private $dismissable;
12 12
 	private $visible;
13
+
14
+	/**
15
+	 * @param string $content
16
+	 */
13 17
 	public function DisplayedMessage($content,$type="success",$timerInterval=0,$dismissable=true,$visible=true){
14 18
 		$this->content=$content;
15 19
 		$this->type=$type;
Please login to merge, or discard this patch.
app/config/services.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * The URL component is used to generate all kind of urls in the application
22 22
  */
23
-$di->set('url', function () use ($config) {
23
+$di->set('url', function() use ($config) {
24 24
     $url = new UrlResolver();
25 25
     $url->setBaseUri($config->application->baseUri);
26 26
 
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 /**
31 31
  * Setting up the view component
32 32
  */
33
-$di->set('view', function () use ($config) {
33
+$di->set('view', function() use ($config) {
34 34
 
35 35
     $view = new View();
36 36
 
37 37
     $view->setViewsDir($config->application->viewsDir);
38 38
 
39 39
     $view->registerEngines(array(
40
-        '.volt' => function ($view, $di) use ($config) {
40
+        '.volt' => function($view, $di) use ($config) {
41 41
 
42 42
             $volt = new VoltEngine($view, $di);
43 43
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 /**
58 58
  * Database connection is created based in the parameters defined in the configuration file
59 59
  */
60
-$di->set('db', function () use ($config) {
60
+$di->set('db', function() use ($config) {
61 61
     return new DbAdapter(array(
62 62
         'host' => $config->database->host,
63 63
         'username' => $config->database->username,
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 });
71 71
 
72 72
 
73
-$di->set('baseUrl', function () use ($config) {
73
+$di->set('baseUrl', function() use ($config) {
74 74
     $baseUrl = $config->application->baseUri;
75 75
     return $baseUrl;
76 76
 });
@@ -78,34 +78,34 @@  discard block
 block discarded – undo
78 78
 /**
79 79
  * If the configuration specify the use of metadata adapter use it or use memory otherwise
80 80
  */
81
-$di->set('modelsMetadata', function () {
81
+$di->set('modelsMetadata', function() {
82 82
     return new MetaDataAdapter();
83 83
 });
84 84
 
85 85
 /**
86 86
  * Start the session the first time some component request the session service
87 87
  */
88
-$di->set('session', function () {
88
+$di->set('session', function() {
89 89
     $session = new SessionAdapter();
90 90
     $session->start();
91 91
 
92 92
     return $session;
93 93
 });
94 94
 
95
-$di->set("jquery", function () {
95
+$di->set("jquery", function() {
96 96
     $jquery = new JsUtils(array("driver" => "Jquery"));
97 97
     $jquery->bootstrap(new Bootstrap());
98 98
     //$jquery->ui(new Ajax\JqueryUI());//optional for JQuery UI
99 99
     return $jquery;
100 100
 });
101 101
 
102
-$di->set('dispatcher', function () {
102
+$di->set('dispatcher', function() {
103 103
 
104 104
     // Create an event manager
105 105
     $eventsManager = new EventsManager();
106 106
 
107 107
     // Attach a listener for type "dispatch"
108
-    $eventsManager->attach("dispatch", function ($event, $dispatcher) {
108
+    $eventsManager->attach("dispatch", function($event, $dispatcher) {
109 109
         // ...
110 110
     });
111 111
 
Please login to merge, or discard this patch.
app/controllers/IndexController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,10 +6,10 @@
 block discarded – undo
6 6
     protected $title;
7 7
     protected $controller;
8 8
 
9
-    public function initialize(){
9
+    public function initialize() {
10 10
         $this->model = "Index";
11 11
         $this->title = "Accueil";
12
-        $this->controller= "Index";
12
+        $this->controller = "Index";
13 13
     }
14 14
 
15 15
     public function indexAction()
Please login to merge, or discard this patch.
app/controllers/MessagesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,10 @@
 block discarded – undo
3 3
 class MessagesController extends ControllerBase
4 4
 {
5 5
 
6
-    public function initialize(){
6
+    public function initialize() {
7 7
         $this->model = "Message";
8 8
         $this->title = "Messages";
9
-        $this->controller= "Messages";
9
+        $this->controller = "Messages";
10 10
 
11 11
     }
12 12
 }
Please login to merge, or discard this patch.
app/models/User.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         return $this;
100 100
     }
101 101
 
102
-    public function setImage($image){
102
+    public function setImage($image) {
103 103
         $this->image = $image;
104 104
         return $this;
105 105
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         return $this->mail;
125 125
     }
126 126
 
127
-    public function getImage(){
127
+    public function getImage() {
128 128
         return $this->image;
129 129
     }
130 130
     /**
@@ -167,13 +167,13 @@  discard block
 block discarded – undo
167 167
         $this->hasMany('id', 'Usecase', 'idDev', array('alias' => 'Usecases'));
168 168
     }
169 169
 
170
-    public function toString(){
171
-        return $this->identite."(".$this->mail.")";
170
+    public function toString() {
171
+        return $this->identite . "(" . $this->mail . ")";
172 172
     }
173 173
 
174 174
     //Return a string containing the principal content of the model
175
-    public function getPrincipal(){
176
-        return "Identité : ".$this->identite." <br/> Email : ".$this->mail;
175
+    public function getPrincipal() {
176
+        return "Identité : " . $this->identite . " <br/> Email : " . $this->mail;
177 177
     }
178 178
 
179 179
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,6 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * Method to set the value of field role
91 91
      *
92
-     * @param string $role
93 92
      * @return $this
94 93
      */
95 94
     public function setIdTypeUser($idTypeUser)
@@ -150,7 +149,7 @@  discard block
 block discarded – undo
150 149
     /**
151 150
      * Returns the value of field role
152 151
      *
153
-     * @return string
152
+     * @return integer
154 153
      */
155 154
     public function getIdTypeUser()
156 155
     {
Please login to merge, or discard this patch.
app/models/Projet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -300,9 +300,9 @@
 block discarded – undo
300 300
         $img = $this->getImage();
301 301
         $type = getImageSize($img); // [] if you don't have exif you could use getImageSize()
302 302
         $allowedTypes = array(
303
-            1,  // [] gif
304
-            2,  // [] jpg
305
-            3,  // [] png
303
+            1, // [] gif
304
+            2, // [] jpg
305
+            3, // [] png
306 306
             6   // [] bmp
307 307
         );
308 308
         if (!in_array($type, $allowedTypes)) {
Please login to merge, or discard this patch.
app/models/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@
 block discarded – undo
249 249
         return parent::findFirst($parameters);
250 250
     }
251 251
 
252
-    public function toString(){
252
+    public function toString() {
253 253
         return $this->content;
254 254
     }
255 255
 
Please login to merge, or discard this patch.
app/models/TypeUser.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Method to set the value of field objet
33 33
      *
34
-     * @param string $objet
35 34
      * @return $this
36 35
      */
37 36
     public function setLibelle($libelle)
@@ -94,7 +93,7 @@  discard block
 block discarded – undo
94 93
     /**
95 94
      * Allows to query the first record that match the specified conditions
96 95
      *
97
-     * @param mixed $parameters
96
+     * @param string $parameters
98 97
      * @return TypeUser
99 98
      */
100 99
     public static function findFirst($parameters = null)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     }
103 103
     
104 104
     public function toString() {
105
-    	return $this->libelle;
105
+     return $this->libelle;
106 106
     }
107 107
 
108 108
 }
Please login to merge, or discard this patch.
app/models/Operation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     }
103 103
     
104 104
     public function toString() {
105
-    	return $this->operation;
105
+     return $this->operation;
106 106
     }
107 107
 
108 108
 }
Please login to merge, or discard this patch.